|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.hadoop.ConfigHelper
public class ConfigHelper
Constructor Summary | |
---|---|
ConfigHelper()
|
Method Summary | |
---|---|
static org.apache.cassandra.thrift.Cassandra.Client |
createConnection(java.lang.String host,
java.lang.Integer port,
boolean framed)
|
static org.apache.cassandra.thrift.Cassandra.Client |
getClientFromAddressList(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getInitialAddress(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getInputColumnFamily(org.apache.hadoop.conf.Configuration conf)
|
static org.apache.cassandra.thrift.KeyRange |
getInputKeyRange(org.apache.hadoop.conf.Configuration conf)
may be null if unset |
static java.lang.String |
getInputKeyspace(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getInputKeyspacePassword(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getInputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
|
static org.apache.cassandra.thrift.SlicePredicate |
getInputSlicePredicate(org.apache.hadoop.conf.Configuration conf)
|
static int |
getInputSplitSize(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getOutputColumnFamily(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getOutputKeyspace(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getOutputKeyspacePassword(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getOutputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
|
static IPartitioner |
getPartitioner(org.apache.hadoop.conf.Configuration conf)
|
static int |
getRangeBatchSize(org.apache.hadoop.conf.Configuration conf)
The number of rows to request with each get range slices request. |
static java.lang.String |
getRawInputSlicePredicate(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
|
static int |
getRpcPort(org.apache.hadoop.conf.Configuration conf)
|
static java.lang.String |
getWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
|
static void |
setInitialAddress(org.apache.hadoop.conf.Configuration conf,
java.lang.String address)
|
static void |
setInputColumnFamily(org.apache.hadoop.conf.Configuration conf,
java.lang.String keyspace,
java.lang.String columnFamily)
Set the keyspace and column family for the input of this job. |
static void |
setInputRange(org.apache.hadoop.conf.Configuration conf,
java.lang.String startToken,
java.lang.String endToken)
Set the KeyRange to limit the rows. |
static void |
setInputSlicePredicate(org.apache.hadoop.conf.Configuration conf,
org.apache.cassandra.thrift.SlicePredicate predicate)
Set the predicate that determines what columns will be selected from each row. |
static void |
setInputSplitSize(org.apache.hadoop.conf.Configuration conf,
int splitsize)
Set the size of the input split. |
static void |
setOutputColumnFamily(org.apache.hadoop.conf.Configuration conf,
java.lang.String keyspace,
java.lang.String columnFamily)
Set the keyspace and column family for the output of this job. |
static void |
setPartitioner(org.apache.hadoop.conf.Configuration conf,
java.lang.String classname)
|
static void |
setRangeBatchSize(org.apache.hadoop.conf.Configuration conf,
int batchsize)
The number of rows to request with each get range slices request. |
static void |
setRpcPort(org.apache.hadoop.conf.Configuration conf,
java.lang.String port)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigHelper()
Method Detail |
---|
public static void setInputColumnFamily(org.apache.hadoop.conf.Configuration conf, java.lang.String keyspace, java.lang.String columnFamily)
conf
- Job configuration you are about to runkeyspace
- columnFamily
- public static void setOutputColumnFamily(org.apache.hadoop.conf.Configuration conf, java.lang.String keyspace, java.lang.String columnFamily)
conf
- Job configuration you are about to runkeyspace
- columnFamily
- public static void setRangeBatchSize(org.apache.hadoop.conf.Configuration conf, int batchsize)
conf
- Job configuration you are about to runbatchsize
- Number of rows to request each timepublic static int getRangeBatchSize(org.apache.hadoop.conf.Configuration conf)
conf
- Job configuration you are about to run
public static void setInputSplitSize(org.apache.hadoop.conf.Configuration conf, int splitsize)
conf
- Job configuration you are about to runsplitsize
- Size of the input splitpublic static int getInputSplitSize(org.apache.hadoop.conf.Configuration conf)
public static void setInputSlicePredicate(org.apache.hadoop.conf.Configuration conf, org.apache.cassandra.thrift.SlicePredicate predicate)
conf
- Job configuration you are about to runpredicate
- public static org.apache.cassandra.thrift.SlicePredicate getInputSlicePredicate(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getRawInputSlicePredicate(org.apache.hadoop.conf.Configuration conf)
public static void setInputRange(org.apache.hadoop.conf.Configuration conf, java.lang.String startToken, java.lang.String endToken)
conf
- Job configuration you are about to runpublic static org.apache.cassandra.thrift.KeyRange getInputKeyRange(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getInputKeyspace(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputKeyspace(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getInputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getInputKeyspacePassword(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputKeyspacePassword(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getInputColumnFamily(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputColumnFamily(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
public static int getRpcPort(org.apache.hadoop.conf.Configuration conf)
public static void setRpcPort(org.apache.hadoop.conf.Configuration conf, java.lang.String port)
public static java.lang.String getInitialAddress(org.apache.hadoop.conf.Configuration conf)
public static void setInitialAddress(org.apache.hadoop.conf.Configuration conf, java.lang.String address)
public static void setPartitioner(org.apache.hadoop.conf.Configuration conf, java.lang.String classname)
public static IPartitioner getPartitioner(org.apache.hadoop.conf.Configuration conf)
public static org.apache.cassandra.thrift.Cassandra.Client getClientFromAddressList(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOException
public static org.apache.cassandra.thrift.Cassandra.Client createConnection(java.lang.String host, java.lang.Integer port, boolean framed) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |