public abstract class AbstractSSTableIterator extends java.lang.Object implements UnfilteredRowIterator
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSSTableIterator.IndexState |
protected class |
AbstractSSTableIterator.Reader |
Modifier and Type | Field and Description |
---|---|
protected ColumnFilter |
columns |
protected DeserializationHelper |
helper |
protected FileHandle |
ifile |
protected DecoratedKey |
key |
protected TableMetadata |
metadata |
protected DeletionTime |
partitionLevelDeletion |
protected AbstractSSTableIterator.Reader |
reader |
protected Slices |
slices |
protected SSTableReader |
sstable |
protected Row |
staticRow |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSSTableIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
RowIndexEntry indexEntry,
Slices slices,
ColumnFilter columnFilter,
FileHandle ifile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
RegularAndStaticColumns |
columns()
A subset of the columns for the (static and regular) rows returned by this iterator.
|
protected abstract AbstractSSTableIterator.Reader |
createReaderInternal(RowIndexEntry indexEntry,
FileDataInput file,
boolean shouldCloseFile) |
protected abstract boolean |
hasMoreSlices()
Checks if there are more slice to process.
|
boolean |
hasNext() |
TableMetadata |
metadata()
The metadata for the table this iterator on.
|
Unfiltered |
next() |
protected abstract int |
nextSliceIndex()
Returns the index of the next slice to process.
|
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() |
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
isReverseOrder
protected final SSTableReader sstable
protected final TableMetadata metadata
protected final DecoratedKey key
protected final DeletionTime partitionLevelDeletion
protected final ColumnFilter columns
protected final DeserializationHelper helper
protected final Row staticRow
protected final AbstractSSTableIterator.Reader reader
protected final FileHandle ifile
protected final Slices slices
protected AbstractSSTableIterator(SSTableReader sstable, FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, Slices slices, ColumnFilter columnFilter, FileHandle ifile)
protected abstract int nextSliceIndex()
protected abstract boolean hasMoreSlices()
true
if there are more slice to process, false
otherwise.protected abstract AbstractSSTableIterator.Reader createReaderInternal(RowIndexEntry indexEntry, FileDataInput file, boolean shouldCloseFile)
public TableMetadata metadata()
BaseRowIterator
metadata
in interface BaseRowIterator<Unfiltered>
public RegularAndStaticColumns 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 void remove()
remove
in interface java.util.Iterator<Unfiltered>
public void close()
close
in interface java.lang.AutoCloseable
close
in interface CloseableIterator<Unfiltered>
Copyright © 2009- The Apache Software Foundation