Class CassandraStreamReader.StreamDeserializer
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<Unfiltered>
-
- org.apache.cassandra.db.streaming.CassandraStreamReader.StreamDeserializer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.Iterator<Unfiltered>
,BaseRowIterator<Unfiltered>
,UnfilteredRowIterator
,CloseableIterator<Unfiltered>
- Enclosing class:
- CassandraStreamReader
public static class CassandraStreamReader.StreamDeserializer extends com.google.common.collect.UnmodifiableIterator<Unfiltered> implements UnfilteredRowIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected SSTableSimpleIterator
iterator
protected DecoratedKey
key
protected DeletionTime
partitionLevelDeletion
protected Row
staticRow
-
Constructor Summary
Constructors Constructor Description StreamDeserializer(TableMetadata metadata, DataInputPlus in, Version version, SerializationHeader header, StreamSession session, SSTableMultiWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForExceptions()
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 benull
).EncodingStats
stats()
Return "statistics" about what is returned by this iterator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.rows.UnfilteredRowIterator
isEmpty
-
-
-
-
Field Detail
-
key
protected DecoratedKey key
-
partitionLevelDeletion
protected DeletionTime partitionLevelDeletion
-
iterator
protected SSTableSimpleIterator iterator
-
staticRow
protected Row staticRow
-
-
Constructor Detail
-
StreamDeserializer
public StreamDeserializer(TableMetadata metadata, DataInputPlus in, Version version, SerializationHeader header, StreamSession session, SSTableMultiWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
newPartition
public UnfilteredRowIterator newPartition() throws java.io.IOException
- Throws:
java.io.IOException
-
readKey
protected void readKey() throws java.io.IOException
- Throws:
java.io.IOException
-
readPartition
protected void readPartition() throws java.io.IOException
- Throws:
java.io.IOException
-
metadata
public TableMetadata metadata()
Description copied from interface:BaseRowIterator
The metadata for the table this iterator on.- Specified by:
metadata
in interfaceBaseRowIterator<Unfiltered>
-
columns
public RegularAndStaticColumns columns()
Description copied from interface:BaseRowIterator
A subset of the columns for the (static and regular) rows returned by this iterator. Every row returned by this iterator must guarantee that it has only those columns.- Specified by:
columns
in interfaceBaseRowIterator<Unfiltered>
-
isReverseOrder
public boolean isReverseOrder()
Description copied from interface:BaseRowIterator
Whether or not the rows returned by this iterator are in reversed clustering order.- Specified by:
isReverseOrder
in interfaceBaseRowIterator<Unfiltered>
-
partitionKey
public DecoratedKey partitionKey()
Description copied from interface:BaseRowIterator
The partition key of the partition this in an iterator over.- Specified by:
partitionKey
in interfaceBaseRowIterator<Unfiltered>
-
partitionLevelDeletion
public DeletionTime partitionLevelDeletion()
Description copied from interface:UnfilteredRowIterator
The partition level deletion for the partition this iterate over.- Specified by:
partitionLevelDeletion
in interfaceUnfilteredRowIterator
-
staticRow
public Row staticRow()
Description copied from interface:BaseRowIterator
The static part corresponding to this partition (this can be an empty row but cannot benull
).- Specified by:
staticRow
in interfaceBaseRowIterator<Unfiltered>
-
stats
public EncodingStats stats()
Description copied from interface:UnfilteredRowIterator
Return "statistics" about what is returned by this iterator. Those are used for performance reasons (for delta-encoding for instance) and code should not expect those to be exact.- Specified by:
stats
in interfaceUnfilteredRowIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Unfiltered>
-
next
public Unfiltered next()
- Specified by:
next
in interfacejava.util.Iterator<Unfiltered>
-
checkForExceptions
public void checkForExceptions() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<Unfiltered>
-
-