Class CassandraStreamManager
java.lang.Object
org.apache.cassandra.db.streaming.CassandraStreamManager
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind) Returns a collection ofOutgoingStreams that contains the data selected by the given replicas, pendingRepair, and preview.createStreamReceiver(StreamSession session, int totalStreams) Creates aStreamReceiverfor the given session, expecting the given number of streamsprepareIncomingStream(StreamSession session, StreamMessageHeader header) Creates anIncomingStreamfor the given header
-
Constructor Details
-
CassandraStreamManager
-
-
Method Details
-
prepareIncomingStream
Description copied from interface:TableStreamManagerCreates anIncomingStreamfor the given header- Specified by:
prepareIncomingStreamin interfaceTableStreamManager
-
createStreamReceiver
Description copied from interface:TableStreamManagerCreates aStreamReceiverfor the given session, expecting the given number of streams- Specified by:
createStreamReceiverin interfaceTableStreamManager
-
createOutgoingStreams
public 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
-