public interface ICassandraDeepJobConfig<T> extends IDeepJobConfig<T,ICassandraDeepJobConfig<T>>
| Modifier and Type | Method and Description |
|---|---|
ICassandraDeepJobConfig<T> |
batchSize(int batchSize)
Sets the batch size used to write to Cassandra.
|
ICassandraDeepJobConfig<T> |
bisectFactor(int bisectFactor)
Sets the token range bisect factor.
|
ICassandraDeepJobConfig<T> |
columnFamily(String columnFamily)
Sets the cassandra CF from which data will be read from.
|
ICassandraDeepJobConfig<T> |
cqlPort(Integer port)
Sets cassandra host rpcPort.
|
ICassandraDeepJobConfig<T> |
createTableOnWrite(Boolean createTableOnWrite)
Whether or not to create the output column family on write.
. |
int |
getBatchSize()
Returns the batch size used for writing objects to the underying Cassandra datastore.
|
int |
getBisectFactor() |
String |
getColumnFamily()
Returns the name of the configured column family.
|
Integer |
getCqlPort()
CQL port where the remote Cassandra cluster is listening to.
|
Boolean |
getIsWriteConfig()
Returns whether this configuration config is suitable for writing out data to the datastore.
|
String |
getKeyspace()
Returns the name of the keyspace.
|
String |
getPartitionerClassName()
Returns the partitioner class name.
|
String |
getReadConsistencyLevel()
Returns the configured read consistency level.
|
Integer |
getRpcPort()
RPC port where the remote Cassandra cluster is listening to.
|
com.datastax.driver.core.Session |
getSession()
Returns the session opened to the cassandra server.
|
String |
getTable()
Returns the name of the configured column family.
|
String |
getWriteConsistencyLevel()
Returns the configured write consistency level.
|
Boolean |
isCreateTableOnWrite()
Returns whether or not in this configuration object we specify to automatically create
the output column family.
|
ICassandraDeepJobConfig<T> |
keyspace(String keyspace)
Sets Cassandra Keyspace.
|
ICassandraDeepJobConfig<T> |
partitioner(String partitionerClassName)
Let's the user specify an alternative partitioner class.
|
ICassandraDeepJobConfig<T> |
readConsistencyLevel(String level)
Sets read consistency level.
|
ICassandraDeepJobConfig<T> |
rpcPort(Integer port)
Sets cassandra host rpcPort.
|
ICassandraDeepJobConfig<T> |
session(com.datastax.driver.core.Session session)
Sets the session to use.
|
ICassandraDeepJobConfig<T> |
table(String table)
Sets the underlying datastore table or collection from which data will be read from.
|
ICassandraDeepJobConfig<T> |
writeConsistencyLevel(String level)
Sets write consistency level.
|
columnDefinitions, filterByField, getAdditionalFilters, getEntityClass, getHost, getInputColumns, getPageSize, getPassword, getUsername, host, initialize, inputColumns, pageSize, password, usernameString getPartitionerClassName()
ICassandraDeepJobConfig<T> partitioner(String partitionerClassName)
partitionerClassName - the partitioner class name.com.datastax.driver.core.Session getSession()
String getKeyspace()
Integer getRpcPort()
Integer getCqlPort()
ICassandraDeepJobConfig<T> keyspace(String keyspace)
keyspace - the keyspace to use.ICassandraDeepJobConfig<T> rpcPort(Integer port)
port - the thrift port number.ICassandraDeepJobConfig<T> cqlPort(Integer port)
port - the cql port number.ICassandraDeepJobConfig<T> readConsistencyLevel(String level)
ConsistencyLevel.ConsistencyLevel.LOCAL_ONE.level - the read consistency level to use.ICassandraDeepJobConfig<T> writeConsistencyLevel(String level)
ConsistencyLevel.ConsistencyLevel.LOCAL_ONE.level - the write consistency level to use.String getReadConsistencyLevel()
String getWriteConsistencyLevel()
ICassandraDeepJobConfig<T> bisectFactor(int bisectFactor)
bisectFactor - the bisect factor to use.int getBisectFactor()
ICassandraDeepJobConfig<T> table(String table)
table - the table name.String getTable()
ICassandraDeepJobConfig<T> columnFamily(String columnFamily)
columnFamily - the table name data will be fetched from.Boolean getIsWriteConfig()
ICassandraDeepJobConfig<T> batchSize(int batchSize)
int getBatchSize()
Boolean isCreateTableOnWrite()
ICassandraDeepJobConfig<T> createTableOnWrite(Boolean createTableOnWrite)
createTableOnWrite - a boolean that tells this configuration obj to create missing tables on write.String getColumnFamily()
ICassandraDeepJobConfig<T> session(com.datastax.driver.core.Session session)
session - the session to use.Copyright © 2014. All rights reserved.