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 ofOutgoingStreams that contains the data selected by the given replicas, pendingRepair, and preview.StreamReceivercreateStreamReceiver(StreamSession session, int totalStreams)Creates aStreamReceiverfor the given session, expecting the given number of streamsIncomingStreamprepareIncomingStream(StreamSession session, StreamMessageHeader header)Creates anIncomingStreamfor the given header
-
-
-
Constructor Detail
-
CassandraStreamManager
public CassandraStreamManager(ColumnFamilyStore cfs)
-
-
Method Detail
-
prepareIncomingStream
public IncomingStream prepareIncomingStream(StreamSession session, StreamMessageHeader header)
Description copied from interface:TableStreamManagerCreates anIncomingStreamfor the given header- Specified by:
prepareIncomingStreamin interfaceTableStreamManager
-
createStreamReceiver
public StreamReceiver createStreamReceiver(StreamSession session, int totalStreams)
Description copied from interface:TableStreamManagerCreates aStreamReceiverfor the given session, expecting the given number of streams- Specified by:
createStreamReceiverin interfaceTableStreamManager
-
createOutgoingStreams
public java.util.Collection<OutgoingStream> createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind)
Description copied from interface:TableStreamManagerReturns a collection ofOutgoingStreams 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:
createOutgoingStreamsin interfaceTableStreamManager
-
-