public class OutputConfigurator extends ConfiguratorBase
Modifier and Type | Class and Description |
---|---|
static class |
OutputConfigurator.Features
Configuration keys for various features.
|
static class |
OutputConfigurator.WriteOpts
Configuration keys for
BatchWriter . |
ConfiguratorBase.ClientOpts, ConfiguratorBase.GeneralOpts
Constructor and Description |
---|
OutputConfigurator() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
canCreateTables(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Determines whether tables are permitted to be created as needed.
|
static BatchWriterConfig |
getBatchWriterOptions(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Gets the
BatchWriterConfig settings that were stored with ClientInfo |
static String |
getDefaultTableName(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Gets the default table name from the configuration.
|
static Boolean |
getSimulationMode(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Determines whether this feature is enabled.
|
static void |
setCreateTables(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Sets the directive to create new tables, as necessary.
|
static void |
setDefaultTableName(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String tableName)
Sets the default table name to use if one emits a null in place of a table name for a given
mutation.
|
static void |
setSimulationMode(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Sets the directive to use simulation mode for this job.
|
createClient, enumToConfKey, enumToConfKey, getClientProperties, getVisibilityCacheSize, isClientConfigured, setClientProperties, setVisibilityCacheSize
public static void setDefaultTableName(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String tableName)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuretableName
- the table to use when the tablename is null in the write callpublic static String getDefaultTableName(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuresetDefaultTableName(Class, Configuration, String)
public static BatchWriterConfig getBatchWriterOptions(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
BatchWriterConfig
settings that were stored with ClientInfopublic static void setCreateTables(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
By default, this feature is disabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwisepublic static Boolean canCreateTables(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuresetCreateTables(Class, Configuration, boolean)
public static void setSimulationMode(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
By default, this feature is disabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwisepublic static Boolean getSimulationMode(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuresetSimulationMode(Class, Configuration, boolean)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.