public class SSTableReversedIterator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
org.apache.cassandra.db.columniterator.AbstractSSTableIterator.IndexState |
Modifier and Type | Field and Description |
---|---|
protected ColumnFilter |
columns |
protected SerializationHelper |
helper |
protected DecoratedKey |
key |
protected DeletionTime |
partitionLevelDeletion |
protected org.apache.cassandra.db.columniterator.AbstractSSTableIterator.Reader |
reader |
protected SSTableReader |
sstable |
protected Row |
staticRow |
Constructor and Description |
---|
SSTableReversedIterator(SSTableReader sstable,
DecoratedKey key,
ColumnFilter columns,
boolean isForThrift) |
SSTableReversedIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
RowIndexEntry indexEntry,
ColumnFilter columns,
boolean isForThrift) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PartitionColumns |
columns()
A subset of the columns for the (static and regular) rows returned by this iterator.
|
protected org.apache.cassandra.db.columniterator.AbstractSSTableIterator.Reader |
createReader(RowIndexEntry indexEntry,
FileDataInput file,
boolean shouldCloseFile) |
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.
|
Unfiltered |
next() |
DecoratedKey |
partitionKey()
The partition key of the partition this in an iterator over.
|
DeletionTime |
partitionLevelDeletion()
The partition level deletion for the partition this iterate over.
|
void |
remove() |
java.util.Iterator<Unfiltered> |
slice(Slice slice)
Move forward (resp.
|
Row |
staticRow()
The static part corresponding to this partition (this can be an empty
row but cannot be
null ). |
EncodingStats |
stats()
Return "statistics" about what is returned by this iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty
protected final SSTableReader sstable
protected final DecoratedKey key
protected final DeletionTime partitionLevelDeletion
protected final ColumnFilter columns
protected final SerializationHelper helper
protected final Row staticRow
protected final org.apache.cassandra.db.columniterator.AbstractSSTableIterator.Reader reader
public SSTableReversedIterator(SSTableReader sstable, DecoratedKey key, ColumnFilter columns, boolean isForThrift)
public SSTableReversedIterator(SSTableReader sstable, FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, ColumnFilter columns, boolean isForThrift)
protected org.apache.cassandra.db.columniterator.AbstractSSTableIterator.Reader createReader(RowIndexEntry indexEntry, FileDataInput file, boolean shouldCloseFile)
public boolean isReverseOrder()
BaseRowIterator
public CFMetaData metadata()
BaseRowIterator
metadata
in interface BaseRowIterator<Unfiltered>
public PartitionColumns columns()
BaseRowIterator
columns
in interface BaseRowIterator<Unfiltered>
public DecoratedKey partitionKey()
BaseRowIterator
partitionKey
in interface BaseRowIterator<Unfiltered>
public DeletionTime partitionLevelDeletion()
UnfilteredRowIterator
partitionLevelDeletion
in interface UnfilteredRowIterator
public Row staticRow()
BaseRowIterator
null
).staticRow
in interface BaseRowIterator<Unfiltered>
public EncodingStats stats()
UnfilteredRowIterator
stats
in interface UnfilteredRowIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator<Unfiltered>
public Unfiltered next()
next
in interface java.util.Iterator<Unfiltered>
public java.util.Iterator<Unfiltered> slice(Slice slice)
SliceableUnfilteredRowIterator
slice
.
Please note that successive calls to slice
are allowed provided the
slice are non overlapping and are passed in clustering (resp. reverse clustering) order.
However, slice
is allowed to leave the iterator in an unknown state and there
is no guarantee over what a call to hasNext
or next
will yield after
a call to slice
. In other words, for a given iterator, you should either use
slice
or hasNext/next
but not both.
slice
in interface SliceableUnfilteredRowIterator
public void remove()
remove
in interface java.util.Iterator<Unfiltered>
public void close()
close
in interface java.lang.AutoCloseable
close
in interface CloseableIterator<Unfiltered>
Copyright © 2017 The Apache Software Foundation