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.ConnectorInfo, ConfiguratorBase.GeneralOpts, ConfiguratorBase.InstanceOpts| 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. |
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 |
setBatchWriterOptions(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
BatchWriterConfig bwConfig)
Sets the configuration for for the job's
BatchWriter instances. |
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.
|
enumToConfKey, getInstance, getLogLevel, getPrincipal, getToken, getTokenClass, isConnectorInfoSet, setConnectorInfo, setLogLevel, setMockInstance, setZooKeeperInstancepublic 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 void setBatchWriterOptions(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, BatchWriterConfig bwConfig)
BatchWriter instances. If not set, a new BatchWriterConfig, with sensible built-in defaults is
used. Setting the configuration multiple times overwrites any previous configuration.implementingClass - the class whose name will be used as a prefix for the property configuration keyconf - the Hadoop configuration object to configurebwConfig - the configuration for the BatchWriterpublic static BatchWriterConfig getBatchWriterOptions(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
BatchWriterConfig settings.implementingClass - the class whose name will be used as a prefix for the property configuration keyconf - the Hadoop configuration object to configuresetBatchWriterOptions(Class, Configuration, BatchWriterConfig)public 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-2016 The Apache Software Foundation. All Rights Reserved.