Class CassandraStreamManager
- java.lang.Object
-
- org.apache.cassandra.db.streaming.CassandraStreamManager
-
- All Implemented Interfaces:
TableStreamManager
public class CassandraStreamManager extends java.lang.Object implements TableStreamManager
Implements the streaming interface for the native cassandra storage engine. Handles the streaming a one or more section of one of more sstables to and from a specific remote node. The sending side performs a block-level transfer of the source stream, while the receiver must deserilaize that data stream into an partitions and rows, and then write that out as an sstable.
-
-
Constructor Summary
Constructors Constructor Description CassandraStreamManager(ColumnFamilyStore cfs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<OutgoingStream>
createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind)
Returns a collection ofOutgoingStream
s that contains the data selected by the given replicas, pendingRepair, and preview.StreamReceiver
createStreamReceiver(StreamSession session, int totalStreams)
Creates aStreamReceiver
for the given session, expecting the given number of streamsIncomingStream
prepareIncomingStream(StreamSession session, StreamMessageHeader header)
Creates anIncomingStream
for the given header
-
-
-
Constructor Detail
-
CassandraStreamManager
public CassandraStreamManager(ColumnFamilyStore cfs)
-
-
Method Detail
-
prepareIncomingStream
public IncomingStream prepareIncomingStream(StreamSession session, StreamMessageHeader header)
Description copied from interface:TableStreamManager
Creates anIncomingStream
for the given header- Specified by:
prepareIncomingStream
in interfaceTableStreamManager
-
createStreamReceiver
public StreamReceiver createStreamReceiver(StreamSession session, int totalStreams)
Description copied from interface:TableStreamManager
Creates aStreamReceiver
for the given session, expecting the given number of streams- Specified by:
createStreamReceiver
in interfaceTableStreamManager
-
createOutgoingStreams
public java.util.Collection<OutgoingStream> createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind)
Description copied from interface:TableStreamManager
Returns a collection ofOutgoingStream
s that contains the data selected by the given replicas, pendingRepair, and preview. There aren't any requirements on how data is divided between the outgoing streams- Specified by:
createOutgoingStreams
in interfaceTableStreamManager
-
-