public class CassandraOutgoingFile extends java.lang.Object implements OutgoingStream
Modifier and Type | Field and Description |
---|---|
static java.util.List<Component> |
STREAM_COMPONENTS |
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) |
static ComponentManifest |
getComponentManifest(SSTableReader sstable) |
int |
getManifestSize() |
java.lang.String |
getName() |
int |
getNumFiles() |
java.util.UUID |
getPendingRepair() |
Ref<SSTableReader> |
getRef() |
long |
getRepairedAt() |
long |
getSize() |
TableId |
getTableId() |
int |
hashCode() |
java.lang.String |
toString() |
void |
write(StreamSession session,
DataOutputStreamPlus out,
int version)
Write the streams data into the socket
|
public static final java.util.List<Component> STREAM_COMPONENTS
public CassandraOutgoingFile(StreamOperation operation, Ref<SSTableReader> ref, java.util.List<SSTableReader.PartitionPositionBounds> sections, java.util.List<Range<Token>> normalizedRanges, long estimatedKeys)
public static ComponentManifest getComponentManifest(SSTableReader sstable)
public static CassandraOutgoingFile fromStream(OutgoingStream stream)
public Ref<SSTableReader> getRef()
public java.lang.String getName()
getName
in interface OutgoingStream
public long getSize()
getSize
in interface OutgoingStream
public TableId getTableId()
getTableId
in interface OutgoingStream
public int getNumFiles()
getNumFiles
in interface OutgoingStream
public long getRepairedAt()
getRepairedAt
in interface OutgoingStream
public java.util.UUID getPendingRepair()
getPendingRepair
in interface OutgoingStream
public int getManifestSize()
public void write(StreamSession session, DataOutputStreamPlus out, int version) throws java.io.IOException
OutgoingStream
write
in interface OutgoingStream
java.io.IOException
public boolean computeShouldStreamEntireSSTables()
public boolean contained(java.util.List<SSTableReader.PartitionPositionBounds> sections, SSTableReader sstable)
public void finish()
OutgoingStream
finish
in interface OutgoingStream
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2020 The Apache Software Foundation