Package org.apache.cassandra.io.sstable
Class SSTableLoader.Client
java.lang.Object
org.apache.cassandra.io.sstable.SSTableLoader.Client
- Direct Known Subclasses:
NativeSSTableLoaderClient
- Enclosing class:
- SSTableLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRangeForEndpoint(Range<Token> range, InetAddressAndPort endpoint) Provides connection factory.abstract TableMetadataRefgetTableMetadata(String tableName) Validate thatkeyspaceis an existing keyspace andcfNameone of its existing column family.abstract voidInitialize the client.voidvoidstop()Stop the client.
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
init
Initialize the client. Perform any step necessary so that after the call to the this method: * partitioner is initialized * getEndpointToRangesMap() returns a correct map This method is guaranteed to be called before any other method of a client. -
stop
public void stop()Stop the client. -
getConnectionFactory
Provides connection factory. By default, it uses DefaultConnectionFactory.- Returns:
- StreamConnectionFactory to use
-
getTableMetadata
Validate thatkeyspaceis an existing keyspace andcfNameone of its existing column family. -
setTableMetadata
-
getEndpointToRangesMap
-
addRangeForEndpoint
-