T - the generic type associated to this configuration object.public interface IDeepJobConfig<T,S extends IDeepJobConfig> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Map<String,Cell> |
columnDefinitions()
Fetches table metadata from the underlying datastore and generates a Map
Cell containing column's metadata. |
S |
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.
|
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.
|
int |
getPageSize()
Returns the maximum number of rows that will be retrieved when fetching data pages from Cassandra.
|
String |
getPassword()
Returns the password needed to authenticate
to the remote datastore cluster.
|
String |
getUsername()
Returns the username used to authenticate to the cassandra server.
|
S |
host(String hostname)
Sets the datastore hostname
|
S |
initialize()
Initialized the current configuration object.
|
S |
inputColumns(String... columns)
Defines a projection over the CF columns.
|
S |
pageSize(int pageSize)
Sets the number of rows to retrieve for each page of data fetched from Cassandra.
Defaults to 1000 rows. |
S |
password(String password)
Sets the password to use to login to Cassandra.
|
S |
username(String username)
/**
Sets the username to use to login to Cassandra.
|
String getPassword()
Map<String,Cell> columnDefinitions()
Cell containing column's metadata.S 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.S pageSize(int pageSize)
pageSize - the number of rows per pageClass<T> getEntityClass()
String getHost()
String[] getInputColumns()
String getUsername()
S host(String hostname)
hostname - the cassandra server endpoint.S initialize()
S inputColumns(String... columns)
columns - list of columns we want to retrieve from the datastore.S password(String password)
S username(String username)
Map<String,Serializable> getAdditionalFilters()
int getPageSize()
Copyright © 2014. All rights reserved.