Class BaseRows<R extends Unfiltered,I extends BaseRowIterator<? extends Unfiltered>>
java.lang.Object
org.apache.cassandra.db.transform.BaseRows<R,I>
- All Implemented Interfaces:
AutoCloseable,Iterator<R>,BaseRowIterator<R>,CloseableIterator<R>
- Direct Known Subclasses:
FilteredRows
public abstract class BaseRows<R extends Unfiltered,I extends BaseRowIterator<? extends Unfiltered>>
extends Object
implements BaseRowIterator<R>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.cassandra.db.transform.Stack.MoreContentsHolder[]static final Transformation[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UnfilteredapplyOne(Unfiltered value, Transformation transformation) apply the relevant method from the transformation to the value.final voidclose()columns()A subset of the columns for the (static and regular) rows returned by this iterator.protected final booleanfinal booleanhasNext()booleanWhether or not the rows returned by this iterator are in reversed clustering order.metadata()The metadata for the table this iterator on.final Rnext()The partition key of the partition this in an iterator over.protected ThrowablerunOnClose(int length) run the corresponding runOnClose method for the first length transformations.The static part corresponding to this partition (this can be an empty row but cannot benull).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.rows.BaseRowIterator
isEmptyMethods inherited from interface org.apache.cassandra.utils.CloseableIterator
closeMethods inherited from interface java.util.Iterator
forEachRemaining, next, remove
-
Field Details
-
EMPTY_TRANSFORMATIONS
-
EMPTY_MORE_CONTENTS_HOLDERS
public static final org.apache.cassandra.db.transform.Stack.MoreContentsHolder[] EMPTY_MORE_CONTENTS_HOLDERS
-
-
Constructor Details
-
BaseRows
-
-
Method Details
-
metadata
Description copied from interface:BaseRowIteratorThe metadata for the table this iterator on.- Specified by:
metadatain interfaceBaseRowIterator<R extends 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<R extends 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<R extends Unfiltered>
-
partitionKey
Description copied from interface:BaseRowIteratorThe partition key of the partition this in an iterator over.- Specified by:
partitionKeyin interfaceBaseRowIterator<R extends Unfiltered>
-
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<R extends Unfiltered>
-
runOnClose
run the corresponding runOnClose method for the first length transformations. used in hasMoreContents to close the methods preceding the MoreContents -
applyOne
apply the relevant method from the transformation to the value. used in hasMoreContents to apply the functions that follow the MoreContents -
hasNext
public final boolean hasNext()- Specified by:
hasNextin interfaceIterator<R extends Unfiltered>
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
next
-
hasMoreContents
protected final boolean hasMoreContents()
-