Package org.apache.cassandra.db.rows
Class AbstractUnfilteredRowIterator
java.lang.Object
org.apache.cassandra.utils.AbstractIterator<Unfiltered>
org.apache.cassandra.db.rows.AbstractUnfilteredRowIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<Unfiltered>,AutoCloseable,Iterator<Unfiltered>,BaseRowIterator<Unfiltered>,UnfilteredRowIterator,CloseableIterator<Unfiltered>
- Direct Known Subclasses:
RowAndDeletionMergeIterator
public abstract class AbstractUnfilteredRowIterator
extends AbstractIterator<Unfiltered>
implements UnfilteredRowIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RegularAndStaticColumnsprotected final booleanprotected final TableMetadataprotected final DecoratedKeyprotected final DeletionTimeprotected final Rowprotected final EncodingStats -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUnfilteredRowIterator(TableMetadata metadata, DecoratedKey partitionKey, DeletionTime partitionLevelDeletion, RegularAndStaticColumns columns, Row staticRow, boolean isReverseOrder, EncodingStats stats) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()columns()A subset of the columns for the (static and regular) rows returned by this iterator.booleanWhether or not the rows returned by this iterator are in reversed clustering order.metadata()The metadata for the table this iterator on.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 org.apache.cassandra.utils.AbstractIterator
computeNext, endOfData, hasNext, next, peek, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNextMethods inherited from interface org.apache.cassandra.db.rows.UnfilteredRowIterator
isEmpty
-
Field Details
-
metadata
-
partitionKey
-
partitionLevelDeletion
-
columns
-
staticRow
-
isReverseOrder
protected final boolean isReverseOrder -
stats
-
-
Constructor Details
-
AbstractUnfilteredRowIterator
protected AbstractUnfilteredRowIterator(TableMetadata metadata, DecoratedKey partitionKey, DeletionTime partitionLevelDeletion, RegularAndStaticColumns columns, Row staticRow, boolean isReverseOrder, EncodingStats stats)
-
-
Method Details
-
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>
-
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
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<Unfiltered>- Overrides:
closein classAbstractIterator<Unfiltered>
-