Package org.apache.cassandra.io.sstable
Class SSTableIdentityIterator
java.lang.Object
org.apache.cassandra.io.sstable.SSTableIdentityIterator
- All Implemented Interfaces:
AutoCloseable,Comparable<SSTableIdentityIterator>,Iterator<Unfiltered>,BaseRowIterator<Unfiltered>,UnfilteredRowIterator,CloseableIterator<Unfiltered>
public class SSTableIdentityIterator
extends Object
implements Comparable<SSTableIdentityIterator>, UnfilteredRowIterator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSSTableIdentityIterator(SSTableReader sstable, DecoratedKey key, DeletionTime partitionLevelDeletion, String filename, SSTableSimpleIterator iterator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()columns()A subset of the columns for the (static and regular) rows returned by this iterator.intstatic SSTableIdentityIteratorcreate(SSTableReader sstable, FileDataInput dfile, boolean tombstoneOnly) static SSTableIdentityIteratorcreate(SSTableReader sstable, FileDataInput dfile, long dataPosition, DecoratedKey key, boolean tombstoneOnly) static SSTableIdentityIteratorcreate(SSTableReader sstable, RandomAccessReader file, DecoratedKey key) protected Unfilteredvoidexhaust()Called to advance to the next partition and make sure that we process all outstanding rows if user did not do so.getPath()booleanhasNext()booleanisClosed()booleanWhether or not the rows returned by this iterator are in reversed clustering order.metadata()The metadata for the table this iterator on.next()The partition key of the partition this in an iterator over.The partition level deletion for the partition this iterate over.The static part corresponding to this partition (this can be an empty row but cannot benull).stats()Return "statistics" about what is returned by this iterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.cassandra.db.rows.UnfilteredRowIterator
isEmpty
-
Field Details
-
iterator
-
-
Constructor Details
-
SSTableIdentityIterator
public SSTableIdentityIterator(SSTableReader sstable, DecoratedKey key, DeletionTime partitionLevelDeletion, String filename, SSTableSimpleIterator iterator) throws IOException - Throws:
IOException
-
-
Method Details
-
create
public static SSTableIdentityIterator create(SSTableReader sstable, RandomAccessReader file, DecoratedKey key) -
create
public static SSTableIdentityIterator create(SSTableReader sstable, FileDataInput dfile, long dataPosition, DecoratedKey key, boolean tombstoneOnly) -
create
public static SSTableIdentityIterator create(SSTableReader sstable, FileDataInput dfile, boolean tombstoneOnly) -
metadata
Description copied from interface:BaseRowIteratorThe metadata for the table this iterator on.- Specified by:
metadatain interfaceBaseRowIterator<Unfiltered>
-
columns
Description copied from interface:BaseRowIteratorA subset of the columns for the (static and regular) rows returned by this iterator. Every row returned by this iterator must guarantee that it has only those columns.- Specified by:
columnsin interfaceBaseRowIterator<Unfiltered>
-
isReverseOrder
public boolean isReverseOrder()Description copied from interface:BaseRowIteratorWhether or not the rows returned by this iterator are in reversed clustering order.- Specified by:
isReverseOrderin interfaceBaseRowIterator<Unfiltered>
-
partitionKey
Description copied from interface:BaseRowIteratorThe partition key of the partition this in an iterator over.- Specified by:
partitionKeyin interfaceBaseRowIterator<Unfiltered>
-
partitionLevelDeletion
Description copied from interface:UnfilteredRowIteratorThe partition level deletion for the partition this iterate over.- Specified by:
partitionLevelDeletionin interfaceUnfilteredRowIterator
-
staticRow
Description copied from interface:BaseRowIteratorThe static part corresponding to this partition (this can be an empty row but cannot benull).- Specified by:
staticRowin interfaceBaseRowIterator<Unfiltered>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<Unfiltered>
-
next
- Specified by:
nextin interfaceIterator<Unfiltered>
-
doCompute
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<Unfiltered>
-
isClosed
public boolean isClosed() -
exhaust
public void exhaust()Called to advance to the next partition and make sure that we process all outstanding rows if user did not do so. Unlike next() and hasNext(), this can and will be called after the iterator is closed. -
getPath
-
stats
Description copied from interface:UnfilteredRowIteratorReturn "statistics" about what is returned by this iterator. Those are used for performance reasons (for delta-encoding for instance) and code should not expect those to be exact.- Specified by:
statsin interfaceUnfilteredRowIterator
-
compareTo
- Specified by:
compareToin interfaceComparable<SSTableIdentityIterator>
-