Class BasePartitions<R extends BaseRowIterator<?>,I extends BasePartitionIterator<? extends BaseRowIterator<?>>>
java.lang.Object
org.apache.cassandra.db.transform.BasePartitions<R,I>
- All Implemented Interfaces:
AutoCloseable,Iterator<R>,BasePartitionIterator<R>,CloseableIterator<R>
- Direct Known Subclasses:
FilteredPartitions
public abstract class BasePartitions<R extends BaseRowIterator<?>,I extends BasePartitionIterator<? extends BaseRowIterator<?>>>
extends Object
implements BasePartitionIterator<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 BaseRowIterator<?>applyOne(BaseRowIterator<?> value, Transformation transformation) apply the relevant method from the transformation to the value.final voidclose()protected final booleanfinal booleanhasNext()final Rnext()protected ThrowablerunOnClose(int length) run the corresponding runOnClose method for the first length transformations.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.partitions.BasePartitionIterator
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
-
BasePartitions
-
-
Method Details
-
applyOne
apply the relevant method from the transformation to the value. used in hasMoreContents to apply the functions that follow the MoreContents -
runOnClose
run the corresponding runOnClose method for the first length transformations. used in hasMoreContents to close the methods preceding the MoreContents -
hasNext
public final boolean hasNext()- Specified by:
hasNextin interfaceIterator<R extends BaseRowIterator<?>>
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
next
-
hasMoreContents
protected final boolean hasMoreContents()
-