public class StreamReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamReader.StreamDeserializer |
Modifier and Type | Field and Description |
---|---|
protected java.util.UUID |
cfId |
protected long |
estimatedKeys |
protected int |
fileSeqNum |
protected SSTableFormat.Type |
format |
protected SerializationHeader.Component |
header |
protected Version |
inputVersion |
protected long |
repairedAt |
protected java.util.Collection<Pair<java.lang.Long,java.lang.Long>> |
sections |
protected StreamSession |
session |
protected int |
sstableLevel |
Constructor and Description |
---|
StreamReader(FileMessageHeader header,
StreamSession session) |
Modifier and Type | Method and Description |
---|---|
protected SSTableMultiWriter |
createWriter(ColumnFamilyStore cfs,
long totalSize,
long repairedAt,
SSTableFormat.Type format) |
protected SerializationHeader |
getHeader(CFMetaData metadata) |
SSTableMultiWriter |
read(java.nio.channels.ReadableByteChannel channel) |
protected long |
totalSize() |
protected void |
writePartition(StreamReader.StreamDeserializer deserializer,
SSTableMultiWriter writer) |
protected final java.util.UUID cfId
protected final long estimatedKeys
protected final java.util.Collection<Pair<java.lang.Long,java.lang.Long>> sections
protected final StreamSession session
protected final Version inputVersion
protected final long repairedAt
protected final SSTableFormat.Type format
protected final int sstableLevel
protected final SerializationHeader.Component header
protected final int fileSeqNum
public StreamReader(FileMessageHeader header, StreamSession session)
public SSTableMultiWriter read(java.nio.channels.ReadableByteChannel channel) throws java.io.IOException
channel
- where this reads data fromjava.io.IOException
- if reading the remote sstable fails. Will throw an RTE if local write fails.protected SerializationHeader getHeader(CFMetaData metadata)
protected SSTableMultiWriter createWriter(ColumnFamilyStore cfs, long totalSize, long repairedAt, SSTableFormat.Type format) throws java.io.IOException
java.io.IOException
protected long totalSize()
protected void writePartition(StreamReader.StreamDeserializer deserializer, SSTableMultiWriter writer) throws java.io.IOException
java.io.IOException
Copyright © 2009- The Apache Software Foundation