|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase org.apache.accumulo.core.client.mapreduce.lib.impl.OutputConfigurator
public class OutputConfigurator
Nested Class Summary | |
---|---|
static class |
OutputConfigurator.Features
Configuration keys for various features. |
static class |
OutputConfigurator.WriteOpts
Configuration keys for BatchWriter . |
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase |
---|
ConfiguratorBase.ConnectorInfo, ConfiguratorBase.GeneralOpts, ConfiguratorBase.InstanceOpts, ConfiguratorBase.TokenSource |
Constructor Summary | |
---|---|
OutputConfigurator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase |
---|
enumToConfKey, enumToConfKey, getAuthenticationToken, getInstance, getLogLevel, getPrincipal, getTokenFromFile, getVisibilityCacheSize, isConnectorInfoSet, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setVisibilityCacheSize, setZooKeeperInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputConfigurator()
Method Detail |
---|
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 configure
setDefaultTableName(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 BatchWriter
public 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 configure
setBatchWriterOptions(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 configure
setCreateTables(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 configure
setSimulationMode(Class, Configuration, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |