public class CassandraOutgoingFile extends java.lang.Object implements OutgoingStream
| Constructor and Description |
|---|
CassandraOutgoingFile(StreamOperation operation,
Ref<SSTableReader> ref,
java.util.List<SSTableReader.PartitionPositionBounds> sections,
java.util.List<Range<Token>> normalizedRanges,
long estimatedKeys) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeShouldStreamEntireSSTables() |
boolean |
contained(java.util.List<SSTableReader.PartitionPositionBounds> sections,
SSTableReader sstable) |
boolean |
equals(java.lang.Object o) |
void |
finish()
Release any resources held by the stream
|
static CassandraOutgoingFile |
fromStream(OutgoingStream stream) |
long |
getEstimatedSize() |
java.lang.String |
getName() |
int |
getNumFiles() |
java.util.UUID |
getPendingRepair() |
Ref<SSTableReader> |
getRef() |
long |
getRepairedAt() |
TableId |
getTableId() |
int |
hashCode() |
java.lang.String |
toString() |
void |
write(StreamSession session,
DataOutputStreamPlus out,
int version)
Write the streams data into the socket
|
public CassandraOutgoingFile(StreamOperation operation, Ref<SSTableReader> ref, java.util.List<SSTableReader.PartitionPositionBounds> sections, java.util.List<Range<Token>> normalizedRanges, long estimatedKeys)
public static CassandraOutgoingFile fromStream(OutgoingStream stream)
public Ref<SSTableReader> getRef()
public java.lang.String getName()
getName in interface OutgoingStreampublic long getEstimatedSize()
getEstimatedSize in interface OutgoingStreampublic TableId getTableId()
getTableId in interface OutgoingStreampublic int getNumFiles()
getNumFiles in interface OutgoingStreampublic long getRepairedAt()
getRepairedAt in interface OutgoingStreampublic java.util.UUID getPendingRepair()
getPendingRepair in interface OutgoingStreampublic void write(StreamSession session, DataOutputStreamPlus out, int version) throws java.io.IOException
OutgoingStreamwrite in interface OutgoingStreamjava.io.IOExceptionpublic boolean computeShouldStreamEntireSSTables()
public boolean contained(java.util.List<SSTableReader.PartitionPositionBounds> sections, SSTableReader sstable)
public void finish()
OutgoingStreamfinish in interface OutgoingStreampublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2020 The Apache Software Foundation