org.apache.cassandra.db.columniterator
Class SSTableNamesIterator

java.lang.Object
  extended by com.google.common.collect.UnmodifiableIterator<T>
      extended by com.google.common.collect.AbstractIterator<IColumn>
          extended by org.apache.cassandra.db.columniterator.SimpleAbstractColumnIterator
              extended by org.apache.cassandra.db.columniterator.SSTableNamesIterator
All Implemented Interfaces:
java.util.Iterator<IColumn>, IColumnIterator

public class SSTableNamesIterator
extends SimpleAbstractColumnIterator
implements IColumnIterator


Field Summary
 java.util.SortedSet<java.nio.ByteBuffer> columns
           
 DecoratedKey key
           
 
Constructor Summary
SSTableNamesIterator(SSTableReader sstable, DecoratedKey key, java.util.SortedSet<java.nio.ByteBuffer> columns)
           
SSTableNamesIterator(SSTableReader sstable, FileDataInput file, DecoratedKey key, java.util.SortedSet<java.nio.ByteBuffer> columns)
           
 
Method Summary
protected  IColumn computeNext()
           
 ColumnFamily getColumnFamily()
          returns the CF of the column being iterated.
 DecoratedKey getKey()
           
 
Methods inherited from class org.apache.cassandra.db.columniterator.SimpleAbstractColumnIterator
close
 
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
 
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.db.columniterator.IColumnIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Field Detail

columns

public final java.util.SortedSet<java.nio.ByteBuffer> columns

key

public final DecoratedKey key
Constructor Detail

SSTableNamesIterator

public SSTableNamesIterator(SSTableReader sstable,
                            DecoratedKey key,
                            java.util.SortedSet<java.nio.ByteBuffer> columns)

SSTableNamesIterator

public SSTableNamesIterator(SSTableReader sstable,
                            FileDataInput file,
                            DecoratedKey key,
                            java.util.SortedSet<java.nio.ByteBuffer> columns)
Method Detail

getKey

public DecoratedKey getKey()
Specified by:
getKey in interface IColumnIterator
Returns:
the current row key

getColumnFamily

public ColumnFamily getColumnFamily()
Description copied from interface: IColumnIterator
returns the CF of the column being iterated. Do not modify the returned CF; clone first. This is guaranteed to be non-null and that the returned CF have the correct metadata (markedForDeleteAt and localDeletionTime). The full CF is however only guaranteed to be available after a call to next() or hasNext().

Specified by:
getColumnFamily in interface IColumnIterator

computeNext

protected IColumn computeNext()
Specified by:
computeNext in class com.google.common.collect.AbstractIterator<IColumn>


Copyright © 2011 The Apache Software Foundation