public abstract class GenericDeepJobConfig<T> extends Object implements ICassandraDeepJobConfig<T>, AutoCloseable
IDeepJobConfig.| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
isWriteConfig |
| Constructor and Description |
|---|
GenericDeepJobConfig() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityClassprotected Boolean isWriteConfig
public ICassandraDeepJobConfig<T> session(com.datastax.driver.core.Session session)
session in interface ICassandraDeepJobConfig<T>public com.datastax.driver.core.Session getSession()
getSession in interface ICassandraDeepJobConfig<T>public void close()
close in interface AutoCloseableprotected void checkInitialized()
DeepIllegalAccessException - if not initializedpublic com.datastax.driver.core.TableMetadata fetchTableMetadata()
public void createOutputTableIfNeeded(org.apache.spark.rdd.RDD<scala.Tuple2<Cells,Cells>> tupleRDD)
This is a very heavy operation since to obtain the schema we need to get at least one element of the output RDD.
tupleRDD - the pair RDD.public Map<String,Cell> columnDefinitions()
columnDefinitions in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> columnFamily(String columnFamily)
columnFamily in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> table(String table)
table in interface ICassandraDeepJobConfig<T>public String getColumnFamily()
getColumnFamily in interface ICassandraDeepJobConfig<T>public String getTable()
getTable in interface ICassandraDeepJobConfig<T>public String getHost()
getHost in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public String[] getInputColumns()
getInputColumns in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public String getKeyspace()
getKeyspace in interface ICassandraDeepJobConfig<T>public String getPartitionerClassName()
getPartitionerClassName in interface ICassandraDeepJobConfig<T>public String getPassword()
getPassword in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public Integer getRpcPort()
getRpcPort in interface ICassandraDeepJobConfig<T>public Integer getCqlPort()
getCqlPort in interface ICassandraDeepJobConfig<T>public String getUsername()
getUsername in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> host(String hostname)
host in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> initialize()
initialize in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> inputColumns(String... columns)
inputColumns in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> keyspace(String keyspace)
keyspace in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> bisectFactor(int bisectFactor)
bisectFactor in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> partitioner(String partitionerClassName)
partitioner in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> password(String password)
password in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> rpcPort(Integer port)
rpcPort in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> cqlPort(Integer port)
cqlPort in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> username(String username)
username in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> batchSize(int batchSize)
batchSize in interface ICassandraDeepJobConfig<T>public Boolean isCreateTableOnWrite()
isCreateTableOnWrite in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> createTableOnWrite(Boolean createTableOnWrite)
createTableOnWrite in interface ICassandraDeepJobConfig<T>public Map<String,Serializable> getAdditionalFilters()
getAdditionalFilters in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public int getPageSize()
getPageSize in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> filterByField(String filterColumnName, Serializable filterValue)
filterByField in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public ICassandraDeepJobConfig<T> pageSize(int pageSize)
pageSize in interface IDeepJobConfig<T,ICassandraDeepJobConfig<T>>public String getReadConsistencyLevel()
getReadConsistencyLevel in interface ICassandraDeepJobConfig<T>public String getWriteConsistencyLevel()
getWriteConsistencyLevel in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> readConsistencyLevel(String level)
readConsistencyLevel in interface ICassandraDeepJobConfig<T>public ICassandraDeepJobConfig<T> writeConsistencyLevel(String level)
writeConsistencyLevel in interface ICassandraDeepJobConfig<T>public int getBatchSize()
getBatchSize in interface ICassandraDeepJobConfig<T>public Boolean getIsWriteConfig()
getIsWriteConfig in interface ICassandraDeepJobConfig<T>public int getBisectFactor()
getBisectFactor in interface ICassandraDeepJobConfig<T>Copyright © 2014. All rights reserved.