T - the generic type associated to this configuration object.public interface IDeepJobConfig<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
IDeepJobConfig<T> |
batchSize(int batchSize)
Sets the batch size used to write to Cassandra.
|
IDeepJobConfig<T> |
bisectFactor(int bisectFactor)
Sets the token range bisect factor.
|
Map<String,Cell> |
columnDefinitions()
Fetches table metadata from Casandra and generates a Map
Cell containing column's metadata. |
IDeepJobConfig<T> |
columnFamily(String columnFamily)
Sets the cassandra CF from which data will be read from.
|
IDeepJobConfig<T> |
cqlPort(Integer port)
Sets cassandra host rpcPort.
|
IDeepJobConfig<T> |
createTableOnWrite(Boolean createTableOnWrite)
Whether or not to create the output column family on write.
. |
IDeepJobConfig<T> |
filterByField(String filterColumnName,
Serializable filterValue)
Adds a new filter for the Cassandra underlying datastore.
Once a new filter has been added, all subsequent queries generated to the underlying datastore will include the filter on the specified column called filterColumnName. |
Map<String,Serializable> |
getAdditionalFilters()
Returns the map of additional filters specified by the user.
|
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.
|
Class<T> |
getEntityClass()
Returns the underlying testentity class used to map the Cassandra
Column family.
|
String |
getHost()
Returns the hostname of the cassandra server.
|
String[] |
getInputColumns()
Returns the list of column names that will
be fetched from the underlying datastore.
|
Boolean |
getIsWriteConfig()
Returns whether this configuration config is suitable for writing out data to the datastore.
|
String |
getKeyspace()
Returns the name of the keyspace.
|
int |
getPageSize()
Returns the maximum number of rows that will be retrieved when fetching data pages from Cassandra.
|
String |
getPartitionerClassName()
Returns the partitioner class name.
|
String |
getPassword()
Returns the password needed to authenticate
to the remote cassandra cluster.
|
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 |
getUsername()
Returns the username used to authenticate to the cassandra server.
|
String |
getWriteConsistencyLevel()
Returns the configured write consistency level.
|
IDeepJobConfig<T> |
host(String hostname)
Sets the cassandra's hostname
|
IDeepJobConfig<T> |
initialize()
Initialized the current configuration object.
|
IDeepJobConfig<T> |
inputColumns(String... columns)
Defines a projection over the CF columns.
|
Boolean |
isCreateTableOnWrite()
Returns whether or not in this configuration object we specify to automatically create
the output column family.
|
IDeepJobConfig<T> |
keyspace(String keyspace)
Sets Cassandra Keyspace.
|
IDeepJobConfig<T> |
pageSize(int pageSize)
Sets the number of rows to retrieve for each page of data fetched from Cassandra.
Defaults to 1000 rows. |
IDeepJobConfig<T> |
partitioner(String partitionerClassName)
Let's the user specify an alternative partitioner class.
|
IDeepJobConfig<T> |
password(String password)
Sets the password to use to login to Cassandra.
|
IDeepJobConfig<T> |
readConsistencyLevel(String level)
Sets read consistency level.
|
IDeepJobConfig<T> |
rpcPort(Integer port)
Sets cassandra host rpcPort.
|
IDeepJobConfig<T> |
session(com.datastax.driver.core.Session session)
Sets the session to use.
|
IDeepJobConfig<T> |
table(String table)
Sets the cassandra CF from which data will be read from.
|
IDeepJobConfig<T> |
username(String username)
/**
Sets the username to use to login to Cassandra.
|
IDeepJobConfig<T> |
writeConsistencyLevel(String level)
Sets write consistency level.
|
com.datastax.driver.core.Session getSession()
IDeepJobConfig<T> session(com.datastax.driver.core.Session session)
session - the session to use.Map<String,Cell> columnDefinitions()
Cell containing column's metadata.IDeepJobConfig<T> table(String table)
table - the table name.IDeepJobConfig<T> columnFamily(String columnFamily)
columnFamily - the table name data will be fetched from.IDeepJobConfig<T> filterByField(String filterColumnName, Serializable filterValue)
filterColumnName - the name of the columns (as known by the datastore) to filter on.filterValue - the value of the filter to use. May be any expression, depends on the actual index implementation.DeepIndexNotFoundException - if the specified field has not been indexed in
Cassandra.DeepNoSuchFieldException - if the specified field is not a valid column in
Cassandra.IDeepJobConfig<T> pageSize(int pageSize)
pageSize - the number of rows per pageString getColumnFamily()
Class<T> getEntityClass()
String getHost()
String[] getInputColumns()
String getKeyspace()
String getPartitionerClassName()
String getPassword()
Integer getRpcPort()
Integer getCqlPort()
String getUsername()
IDeepJobConfig<T> host(String hostname)
hostname - the cassandra server endpoint.IDeepJobConfig<T> initialize()
IDeepJobConfig<T> inputColumns(String... columns)
columns - list of columns we want to retrieve from the datastore.IDeepJobConfig<T> keyspace(String keyspace)
keyspace - the keyspace to use.IDeepJobConfig<T> bisectFactor(int bisectFactor)
bisectFactor - the bisect factor to use.IDeepJobConfig<T> partitioner(String partitionerClassName)
partitionerClassName - the partitioner class name.IDeepJobConfig<T> password(String password)
IDeepJobConfig<T> rpcPort(Integer port)
port - the thrift port number.IDeepJobConfig<T> cqlPort(Integer port)
port - the cql port number.IDeepJobConfig<T> username(String username)
IDeepJobConfig<T> batchSize(int batchSize)
IDeepJobConfig<T> createTableOnWrite(Boolean createTableOnWrite)
createTableOnWrite - a boolean that tells this configuration obj to create missing tables on write.Boolean isCreateTableOnWrite()
String getReadConsistencyLevel()
String getWriteConsistencyLevel()
IDeepJobConfig<T> readConsistencyLevel(String level)
ConsistencyLevel.ConsistencyLevel.LOCAL_ONE.level - the read consistency level to use.IDeepJobConfig<T> writeConsistencyLevel(String level)
ConsistencyLevel.ConsistencyLevel.LOCAL_ONE.level - the write consistency level to use.String getTable()
int getBatchSize()
Map<String,Serializable> getAdditionalFilters()
int getPageSize()
Boolean getIsWriteConfig()
int getBisectFactor()
Copyright © 2014. All rights reserved.