public class CassandraStreamReader extends java.lang.Object implements IStreamReader
Modifier and Type | Class and Description |
---|---|
static class |
CassandraStreamReader.StreamDeserializer |
Modifier and Type | Field and Description |
---|---|
protected long |
estimatedKeys |
protected int |
fileSeqNum |
protected SSTableFormat.Type |
format |
protected SerializationHeader.Component |
header |
protected Version |
inputVersion |
protected java.util.UUID |
pendingRepair |
protected long |
repairedAt |
protected java.util.Collection<SSTableReader.PartitionPositionBounds> |
sections |
protected StreamSession |
session |
protected int |
sstableLevel |
protected TableId |
tableId |
Constructor and Description |
---|
CassandraStreamReader(StreamMessageHeader header,
CassandraStreamHeader streamHeader,
StreamSession session) |
Modifier and Type | Method and Description |
---|---|
protected SSTableMultiWriter |
createWriter(ColumnFamilyStore cfs,
long totalSize,
long repairedAt,
java.util.UUID pendingRepair,
SSTableFormat.Type format) |
protected SerializationHeader |
getHeader(TableMetadata metadata) |
SSTableMultiWriter |
read(DataInputPlus inputPlus) |
protected long |
totalSize() |
protected void |
writePartition(CassandraStreamReader.StreamDeserializer deserializer,
SSTableMultiWriter writer) |
protected final TableId tableId
protected final long estimatedKeys
protected final java.util.Collection<SSTableReader.PartitionPositionBounds> sections
protected final StreamSession session
protected final Version inputVersion
protected final long repairedAt
protected final java.util.UUID pendingRepair
protected final SSTableFormat.Type format
protected final int sstableLevel
protected final SerializationHeader.Component header
protected final int fileSeqNum
public CassandraStreamReader(StreamMessageHeader header, CassandraStreamHeader streamHeader, StreamSession session)
public SSTableMultiWriter read(DataInputPlus inputPlus) throws java.io.IOException
read
in interface IStreamReader
inputPlus
- where this reads data fromjava.io.IOException
- if reading the remote sstable fails. Will throw an RTE if local write fails.protected SerializationHeader getHeader(TableMetadata metadata) throws UnknownColumnException
UnknownColumnException
protected SSTableMultiWriter createWriter(ColumnFamilyStore cfs, long totalSize, long repairedAt, java.util.UUID pendingRepair, SSTableFormat.Type format) throws java.io.IOException
java.io.IOException
protected long totalSize()
protected void writePartition(CassandraStreamReader.StreamDeserializer deserializer, SSTableMultiWriter writer) throws java.io.IOException
java.io.IOException
Copyright © 2009-2021 The Apache Software Foundation