public abstract class BaseRows<R extends Unfiltered,I extends BaseRowIterator<? extends Unfiltered>> extends java.lang.Object implements BaseRowIterator<R>
Modifier and Type | Method and Description |
---|---|
protected Unfiltered |
applyOne(Unfiltered value,
Transformation transformation)
apply the relevant method from the transformation to the value.
|
void |
close() |
PartitionColumns |
columns()
A subset of the columns for the (static and regular) rows returned by this iterator.
|
protected boolean |
hasMoreContents() |
boolean |
hasNext() |
boolean |
isReverseOrder()
Whether or not the rows returned by this iterator are in reversed
clustering order.
|
CFMetaData |
metadata()
The metadata for the table this iterator on.
|
O |
next() |
DecoratedKey |
partitionKey()
The partition key of the partition this in an iterator over.
|
protected java.lang.Throwable |
runOnClose(int length)
run the corresponding runOnClose method for the first length transformations.
|
Row |
staticRow()
The static part corresponding to this partition (this can be an empty
row but cannot be
null ). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty
close
public BaseRows(I input)
public CFMetaData metadata()
BaseRowIterator
metadata
in interface BaseRowIterator<R extends Unfiltered>
public boolean isReverseOrder()
BaseRowIterator
isReverseOrder
in interface BaseRowIterator<R extends Unfiltered>
public PartitionColumns columns()
BaseRowIterator
columns
in interface BaseRowIterator<R extends Unfiltered>
public DecoratedKey partitionKey()
BaseRowIterator
partitionKey
in interface BaseRowIterator<R extends Unfiltered>
public Row staticRow()
BaseRowIterator
null
).staticRow
in interface BaseRowIterator<R extends Unfiltered>
protected java.lang.Throwable runOnClose(int length)
protected Unfiltered applyOne(Unfiltered value, Transformation transformation)
public final boolean hasNext()
hasNext
in interface java.util.Iterator<R extends Unfiltered>
public final void close()
close
in interface java.lang.AutoCloseable
public final O next()
next
in interface java.util.Iterator<O extends V>
protected final boolean hasMoreContents()
Copyright © 2018 The Apache Software Foundation