public class ConfigHelper extends Object
| Constructor and Description |
|---|
ConfigHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getInputColumnFamily(org.apache.hadoop.conf.Configuration conf) |
static String |
getInputInitialAddress(org.apache.hadoop.conf.Configuration conf) |
static Pair<String,String> |
getInputKeyRange(org.apache.hadoop.conf.Configuration conf)
The start and end token of the input key range as a pair.
|
static String |
getInputKeyspace(org.apache.hadoop.conf.Configuration conf) |
static String |
getInputPartitioner(org.apache.hadoop.conf.Configuration conf) |
static int |
getInputSplitSize(org.apache.hadoop.conf.Configuration conf) |
static int |
getInputSplitSizeInMb(org.apache.hadoop.conf.Configuration conf)
cassandra.input.split.size will be used if the value is undefined or negative.
|
static String |
getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf) |
static void |
setInputColumnFamily(org.apache.hadoop.conf.Configuration conf,
String keyspace,
String columnFamily,
boolean widerows)
Set the keyspace and column family for the input of this job.
|
static void |
setInputInitialAddress(org.apache.hadoop.conf.Configuration conf,
String address) |
public static void setInputColumnFamily(org.apache.hadoop.conf.Configuration conf,
String keyspace,
String columnFamily,
boolean widerows)
conf - Job configuration you are about to runkeyspace - columnFamily - widerows - public static int getInputSplitSize(org.apache.hadoop.conf.Configuration conf)
public static int getInputSplitSizeInMb(org.apache.hadoop.conf.Configuration conf)
conf - Job configuration you are about to runpublic static Pair<String,String> getInputKeyRange(org.apache.hadoop.conf.Configuration conf)
public static String getInputKeyspace(org.apache.hadoop.conf.Configuration conf)
public static String getInputColumnFamily(org.apache.hadoop.conf.Configuration conf)
public static String getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
public static String getInputInitialAddress(org.apache.hadoop.conf.Configuration conf)
public static void setInputInitialAddress(org.apache.hadoop.conf.Configuration conf,
String address)
public static String getInputPartitioner(org.apache.hadoop.conf.Configuration conf)
Copyright © 2012–2024. All rights reserved.