public static class CassandraStreamReader.StreamDeserializer extends com.google.common.collect.UnmodifiableIterator<Unfiltered> implements UnfilteredRowIterator
Modifier and Type | Field and Description |
---|---|
protected SSTableSimpleIterator |
iterator |
protected DecoratedKey |
key |
protected DeletionTime |
partitionLevelDeletion |
protected Row |
staticRow |
Constructor and Description |
---|
StreamDeserializer(TableMetadata metadata,
DataInputPlus in,
Version version,
SerializationHeader header,
StreamSession session,
SSTableMultiWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
checkForExceptions() |
void |
cleanup() |
void |
close() |
RegularAndStaticColumns |
columns()
A subset of the columns for the (static and regular) rows returned by this iterator.
|
boolean |
hasNext() |
boolean |
isReverseOrder()
Whether or not the rows returned by this iterator are in reversed
clustering order.
|
TableMetadata |
metadata()
The metadata for the table this iterator on.
|
UnfilteredRowIterator |
newPartition() |
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.
|
protected void |
readKey() |
protected void |
readPartition() |
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 DecoratedKey key
protected DeletionTime partitionLevelDeletion
protected SSTableSimpleIterator iterator
protected Row staticRow
public StreamDeserializer(TableMetadata metadata, DataInputPlus in, Version version, SerializationHeader header, StreamSession session, SSTableMultiWriter writer) throws java.io.IOException
java.io.IOException
public UnfilteredRowIterator newPartition() throws java.io.IOException
java.io.IOException
protected void readKey() throws java.io.IOException
java.io.IOException
protected void readPartition() throws java.io.IOException
java.io.IOException
public TableMetadata metadata()
BaseRowIterator
metadata
in interface BaseRowIterator<Unfiltered>
public RegularAndStaticColumns columns()
BaseRowIterator
columns
in interface BaseRowIterator<Unfiltered>
public boolean isReverseOrder()
BaseRowIterator
isReverseOrder
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 checkForExceptions() throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
close
in interface CloseableIterator<Unfiltered>
public void cleanup()
Copyright © 2009- The Apache Software Foundation