public abstract class GenericDeepJobConfig<T> extends Object implements IDeepJobConfig<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 IDeepJobConfig<T> session(com.datastax.driver.core.Session session)
session in interface IDeepJobConfig<T>public com.datastax.driver.core.Session getSession()
getSession in interface IDeepJobConfig<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>public IDeepJobConfig<T> columnFamily(String columnFamily)
columnFamily in interface IDeepJobConfig<T>public IDeepJobConfig<T> table(String table)
table in interface IDeepJobConfig<T>public String getColumnFamily()
getColumnFamily in interface IDeepJobConfig<T>public String getTable()
getTable in interface IDeepJobConfig<T>public String getHost()
getHost in interface IDeepJobConfig<T>public String[] getInputColumns()
getInputColumns in interface IDeepJobConfig<T>public String getKeyspace()
getKeyspace in interface IDeepJobConfig<T>public String getPartitionerClassName()
getPartitionerClassName in interface IDeepJobConfig<T>public String getPassword()
getPassword in interface IDeepJobConfig<T>public Integer getRpcPort()
getRpcPort in interface IDeepJobConfig<T>public Integer getCqlPort()
getCqlPort in interface IDeepJobConfig<T>public String getUsername()
getUsername in interface IDeepJobConfig<T>public IDeepJobConfig<T> host(String hostname)
host in interface IDeepJobConfig<T>public IDeepJobConfig<T> initialize()
initialize in interface IDeepJobConfig<T>public IDeepJobConfig<T> inputColumns(String... columns)
inputColumns in interface IDeepJobConfig<T>public IDeepJobConfig<T> keyspace(String keyspace)
keyspace in interface IDeepJobConfig<T>public IDeepJobConfig<T> bisectFactor(int bisectFactor)
bisectFactor in interface IDeepJobConfig<T>public IDeepJobConfig<T> partitioner(String partitionerClassName)
partitioner in interface IDeepJobConfig<T>public IDeepJobConfig<T> password(String password)
password in interface IDeepJobConfig<T>public IDeepJobConfig<T> rpcPort(Integer port)
rpcPort in interface IDeepJobConfig<T>public IDeepJobConfig<T> cqlPort(Integer port)
cqlPort in interface IDeepJobConfig<T>public IDeepJobConfig<T> username(String username)
username in interface IDeepJobConfig<T>public IDeepJobConfig<T> batchSize(int batchSize)
batchSize in interface IDeepJobConfig<T>public Boolean isCreateTableOnWrite()
isCreateTableOnWrite in interface IDeepJobConfig<T>public IDeepJobConfig<T> createTableOnWrite(Boolean createTableOnWrite)
createTableOnWrite in interface IDeepJobConfig<T>public Map<String,Serializable> getAdditionalFilters()
getAdditionalFilters in interface IDeepJobConfig<T>public int getPageSize()
getPageSize in interface IDeepJobConfig<T>public IDeepJobConfig<T> filterByField(String filterColumnName, Serializable filterValue)
filterByField in interface IDeepJobConfig<T>public IDeepJobConfig<T> pageSize(int pageSize)
pageSize in interface IDeepJobConfig<T>public String getReadConsistencyLevel()
getReadConsistencyLevel in interface IDeepJobConfig<T>public String getWriteConsistencyLevel()
getWriteConsistencyLevel in interface IDeepJobConfig<T>public IDeepJobConfig<T> readConsistencyLevel(String level)
readConsistencyLevel in interface IDeepJobConfig<T>public IDeepJobConfig<T> writeConsistencyLevel(String level)
writeConsistencyLevel in interface IDeepJobConfig<T>public int getBatchSize()
getBatchSize in interface IDeepJobConfig<T>public Boolean getIsWriteConfig()
getIsWriteConfig in interface IDeepJobConfig<T>public int getBisectFactor()
getBisectFactor in interface IDeepJobConfig<T>Copyright © 2014. All rights reserved.