public class StreamReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.UUID |
cfId |
protected Descriptor |
desc |
protected long |
estimatedKeys |
protected int |
fileSeqNum |
protected Descriptor.Version |
inputVersion |
protected long |
repairedAt |
protected java.util.Collection<Pair<java.lang.Long,java.lang.Long>> |
sections |
protected StreamSession |
session |
Constructor and Description |
---|
StreamReader(FileMessageHeader header,
StreamSession session) |
Modifier and Type | Method and Description |
---|---|
protected SSTableWriter |
createWriter(ColumnFamilyStore cfs,
long totalSize,
long repairedAt) |
protected void |
drain(java.io.InputStream dis,
long bytesRead) |
SSTableWriter |
read(java.nio.channels.ReadableByteChannel channel) |
protected long |
totalSize() |
protected void |
writeRow(DecoratedKey key,
SSTableWriter writer,
java.io.DataInput in,
ColumnFamilyStore cfs) |
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 Descriptor.Version inputVersion
protected final long repairedAt
protected final int fileSeqNum
protected Descriptor desc
public StreamReader(FileMessageHeader header, StreamSession session)
public SSTableWriter 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 SSTableWriter createWriter(ColumnFamilyStore cfs, long totalSize, long repairedAt) throws java.io.IOException
java.io.IOException
protected void drain(java.io.InputStream dis, long bytesRead) throws java.io.IOException
java.io.IOException
protected long totalSize()
protected void writeRow(DecoratedKey key, SSTableWriter writer, java.io.DataInput in, ColumnFamilyStore cfs) throws java.io.IOException
java.io.IOException
Copyright © 2016 The Apache Software Foundation