public class ConfigHelper
extends java.lang.Object
| Constructor and Description | 
|---|
| ConfigHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Cassandra.Client | createConnection(org.apache.hadoop.conf.Configuration conf,
                java.lang.String host,
                java.lang.Integer port) | 
| static Cassandra.Client | getClientFromInputAddressList(org.apache.hadoop.conf.Configuration conf) | 
| static Cassandra.Client | getClientFromOutputAddressList(org.apache.hadoop.conf.Configuration conf) | 
| static ITransportFactory | getClientTransportFactory(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getInputColumnFamily(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getInputInitialAddress(org.apache.hadoop.conf.Configuration conf) | 
| static boolean | getInputIsWide(org.apache.hadoop.conf.Configuration conf) | 
| static 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 IPartitioner | getInputPartitioner(org.apache.hadoop.conf.Configuration conf) | 
| static int | getInputRpcPort(org.apache.hadoop.conf.Configuration conf) | 
| static SlicePredicate | getInputSlicePredicate(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 java.lang.String | getOutputColumnFamily(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getOutputCompressionChunkLength(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getOutputCompressionClass(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getOutputInitialAddress(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 boolean | getOutputLocalDCOnly(org.apache.hadoop.conf.Configuration conf) | 
| static IPartitioner | getOutputPartitioner(org.apache.hadoop.conf.Configuration conf) | 
| static int | getOutputRpcPort(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 | getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf) | 
| static int | getThriftFramedTransportSize(org.apache.hadoop.conf.Configuration conf) | 
| static java.lang.String | getWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf) | 
| 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 | setInputColumnFamily(org.apache.hadoop.conf.Configuration conf,
                    java.lang.String keyspace,
                    java.lang.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,
                      java.lang.String address) | 
| static void | setInputKeyspacePassword(org.apache.hadoop.conf.Configuration conf,
                        java.lang.String password) | 
| static void | setInputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf,
                        java.lang.String username) | 
| static void | setInputKeyspaceUserNameAndPassword(org.apache.hadoop.conf.Configuration conf,
                                   java.lang.String username,
                                   java.lang.String password) | 
| static void | setInputPartitioner(org.apache.hadoop.conf.Configuration conf,
                   java.lang.String classname) | 
| static void | setInputRange(org.apache.hadoop.conf.Configuration conf,
             java.util.List<IndexExpression> filter)Set the KeyRange to limit the rows. | 
| 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 | setInputRange(org.apache.hadoop.conf.Configuration conf,
             java.lang.String startToken,
             java.lang.String endToken,
             java.util.List<IndexExpression> filter)Set the KeyRange to limit the rows. | 
| static void | setInputRpcPort(org.apache.hadoop.conf.Configuration conf,
               java.lang.String port) | 
| static void | setInputSlicePredicate(org.apache.hadoop.conf.Configuration conf,
                      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 | setInputSplitSizeInMb(org.apache.hadoop.conf.Configuration conf,
                     int splitSizeMb)Set the size of the input split. | 
| static void | setOutputColumnFamily(org.apache.hadoop.conf.Configuration conf,
                     java.lang.String columnFamily)Set the column family for the output of this job. | 
| static void | setOutputColumnFamily(org.apache.hadoop.conf.Configuration conf,
                     java.lang.String keyspace,
                     java.lang.String columnFamily)Set the column family for the output of this job. | 
| static void | setOutputCompressionChunkLength(org.apache.hadoop.conf.Configuration conf,
                               java.lang.String length) | 
| static void | setOutputCompressionClass(org.apache.hadoop.conf.Configuration conf,
                         java.lang.String classname) | 
| static void | setOutputInitialAddress(org.apache.hadoop.conf.Configuration conf,
                       java.lang.String address) | 
| static void | setOutputKeyspace(org.apache.hadoop.conf.Configuration conf,
                 java.lang.String keyspace)Set the keyspace for the output of this job. | 
| static void | setOutputKeyspacePassword(org.apache.hadoop.conf.Configuration conf,
                         java.lang.String password) | 
| static void | setOutputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf,
                         java.lang.String username) | 
| static void | setOutputKeyspaceUserNameAndPassword(org.apache.hadoop.conf.Configuration conf,
                                    java.lang.String username,
                                    java.lang.String password) | 
| static void | setOutputLocalDCOnly(org.apache.hadoop.conf.Configuration conf,
                    boolean localDCOnly) | 
| static void | setOutputPartitioner(org.apache.hadoop.conf.Configuration conf,
                    java.lang.String classname) | 
| static void | setOutputRpcPort(org.apache.hadoop.conf.Configuration conf,
                java.lang.String port) | 
| 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 | setReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf,
                       java.lang.String consistencyLevel) | 
| static void | setThriftFramedTransportSizeInMb(org.apache.hadoop.conf.Configuration conf,
                                int frameSizeInMB) | 
| static void | setWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf,
                        java.lang.String consistencyLevel) | 
public static void setInputColumnFamily(org.apache.hadoop.conf.Configuration conf,
                                        java.lang.String keyspace,
                                        java.lang.String columnFamily,
                                        boolean widerows)
conf - Job configuration you are about to runkeyspace - columnFamily - widerows - 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 setOutputKeyspace(org.apache.hadoop.conf.Configuration conf,
                                     java.lang.String keyspace)
conf - Job configuration you are about to runkeyspace - public static void setOutputColumnFamily(org.apache.hadoop.conf.Configuration conf,
                                         java.lang.String columnFamily)
conf - Job configuration you are about to runcolumnFamily - 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 runpublic static void setInputSplitSize(org.apache.hadoop.conf.Configuration conf,
                                     int splitsize)
conf - Job configuration you are about to runsplitsize - Number of partitions in the input splitpublic static int getInputSplitSize(org.apache.hadoop.conf.Configuration conf)
public static void setInputSplitSizeInMb(org.apache.hadoop.conf.Configuration conf,
                                         int splitSizeMb)
conf - Job configuration you are about to runsplitSizeMb - Input split size in MBpublic static int getInputSplitSizeInMb(org.apache.hadoop.conf.Configuration conf)
conf - Job configuration you are about to runpublic static void setInputSlicePredicate(org.apache.hadoop.conf.Configuration conf,
                                          SlicePredicate predicate)
conf - Job configuration you are about to runpredicate - public static SlicePredicate getInputSlicePredicate(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 void setInputRange(org.apache.hadoop.conf.Configuration conf,
                                 java.lang.String startToken,
                                 java.lang.String endToken,
                                 java.util.List<IndexExpression> filter)
conf - Job configuration you are about to runpublic static void setInputRange(org.apache.hadoop.conf.Configuration conf,
                                 java.util.List<IndexExpression> filter)
conf - Job configuration you are about to runpublic static 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 void setInputKeyspaceUserNameAndPassword(org.apache.hadoop.conf.Configuration conf,
                                                       java.lang.String username,
                                                       java.lang.String password)
public static void setInputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf,
                                            java.lang.String username)
public static java.lang.String getInputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
public static void setInputKeyspacePassword(org.apache.hadoop.conf.Configuration conf,
                                            java.lang.String password)
public static java.lang.String getInputKeyspacePassword(org.apache.hadoop.conf.Configuration conf)
public static void setOutputKeyspaceUserNameAndPassword(org.apache.hadoop.conf.Configuration conf,
                                                        java.lang.String username,
                                                        java.lang.String password)
public static void setOutputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf,
                                             java.lang.String username)
public static java.lang.String getOutputKeyspaceUserName(org.apache.hadoop.conf.Configuration conf)
public static void setOutputKeyspacePassword(org.apache.hadoop.conf.Configuration conf,
                                             java.lang.String password)
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 boolean getInputIsWide(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
public static void setReadConsistencyLevel(org.apache.hadoop.conf.Configuration conf,
                                           java.lang.String consistencyLevel)
public static java.lang.String getWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf)
public static void setWriteConsistencyLevel(org.apache.hadoop.conf.Configuration conf,
                                            java.lang.String consistencyLevel)
public static int getInputRpcPort(org.apache.hadoop.conf.Configuration conf)
public static void setInputRpcPort(org.apache.hadoop.conf.Configuration conf,
                                   java.lang.String port)
public static java.lang.String getInputInitialAddress(org.apache.hadoop.conf.Configuration conf)
public static void setInputInitialAddress(org.apache.hadoop.conf.Configuration conf,
                                          java.lang.String address)
public static void setInputPartitioner(org.apache.hadoop.conf.Configuration conf,
                                       java.lang.String classname)
public static IPartitioner getInputPartitioner(org.apache.hadoop.conf.Configuration conf)
public static int getOutputRpcPort(org.apache.hadoop.conf.Configuration conf)
public static void setOutputRpcPort(org.apache.hadoop.conf.Configuration conf,
                                    java.lang.String port)
public static java.lang.String getOutputInitialAddress(org.apache.hadoop.conf.Configuration conf)
public static void setOutputInitialAddress(org.apache.hadoop.conf.Configuration conf,
                                           java.lang.String address)
public static void setOutputPartitioner(org.apache.hadoop.conf.Configuration conf,
                                        java.lang.String classname)
public static IPartitioner getOutputPartitioner(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputCompressionClass(org.apache.hadoop.conf.Configuration conf)
public static java.lang.String getOutputCompressionChunkLength(org.apache.hadoop.conf.Configuration conf)
public static void setOutputCompressionClass(org.apache.hadoop.conf.Configuration conf,
                                             java.lang.String classname)
public static void setOutputCompressionChunkLength(org.apache.hadoop.conf.Configuration conf,
                                                   java.lang.String length)
public static void setThriftFramedTransportSizeInMb(org.apache.hadoop.conf.Configuration conf,
                                                    int frameSizeInMB)
public static int getThriftFramedTransportSize(org.apache.hadoop.conf.Configuration conf)
conf - The configuration to use.setThriftFramedTransportSizeInMb(Configuration, int) or default of 15MBpublic static boolean getOutputLocalDCOnly(org.apache.hadoop.conf.Configuration conf)
public static void setOutputLocalDCOnly(org.apache.hadoop.conf.Configuration conf,
                                        boolean localDCOnly)
public static Cassandra.Client getClientFromInputAddressList(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic static Cassandra.Client getClientFromOutputAddressList(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic static Cassandra.Client createConnection(org.apache.hadoop.conf.Configuration conf, java.lang.String host, java.lang.Integer port) throws java.io.IOException
java.io.IOExceptionpublic static ITransportFactory getClientTransportFactory(org.apache.hadoop.conf.Configuration conf)
Copyright © 2018 The Apache Software Foundation