Class OutputFormatBuilderImpl<T>
- java.lang.Object
-
- org.apache.accumulo.hadoopImpl.mapreduce.OutputFormatBuilderImpl<T>
-
- All Implemented Interfaces:
OutputFormatBuilder.ClientParams<T>
,OutputFormatBuilder.OutputOptions<T>
public class OutputFormatBuilderImpl<T> extends Object implements OutputFormatBuilder.ClientParams<T>, OutputFormatBuilder.OutputOptions<T>
-
-
Constructor Summary
Constructors Constructor Description OutputFormatBuilderImpl(Class<?> callingClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputFormatBuilder.OutputOptions<T>
clientProperties(Properties clientProperties)
Set the connection information needed to communicate with Accumulo in this job.OutputFormatBuilder.OutputOptions<T>
clientPropertiesPath(String clientPropsPath)
Set path to DFS location containing accumulo-client.properties file.OutputFormatBuilder.OutputOptions<T>
createTables(boolean value)
Enables the directive to create new tables, as necessary.OutputFormatBuilder.OutputOptions<T>
defaultTable(String tableName)
Sets the default table name to use if one emits a null in place of a table name for a given mutation.void
store(T j)
Finish configuring, verify and serialize options into the Job or JobConf
-
-
-
Constructor Detail
-
OutputFormatBuilderImpl
public OutputFormatBuilderImpl(Class<?> callingClass)
-
-
Method Detail
-
clientProperties
public OutputFormatBuilder.OutputOptions<T> clientProperties(Properties clientProperties)
Description copied from interface:OutputFormatBuilder.ClientParams
Set the connection information needed to communicate with Accumulo in this job. clientProperties param can be created usingAccumulo.newClientProperties()
. Client properties will be serialized into configuration. Therefore it is more secure to useOutputFormatBuilder.ClientParams.clientPropertiesPath(String)
- Specified by:
clientProperties
in interfaceOutputFormatBuilder.ClientParams<T>
- Parameters:
clientProperties
- Accumulo connection information
-
clientPropertiesPath
public OutputFormatBuilder.OutputOptions<T> clientPropertiesPath(String clientPropsPath)
Description copied from interface:OutputFormatBuilder.ClientParams
Set path to DFS location containing accumulo-client.properties file. This setting is more secure thanOutputFormatBuilder.ClientParams.clientProperties(Properties)
- Specified by:
clientPropertiesPath
in interfaceOutputFormatBuilder.ClientParams<T>
- Parameters:
clientPropsPath
- DFS path to accumulo-client.properties
-
defaultTable
public OutputFormatBuilder.OutputOptions<T> defaultTable(String tableName)
Description copied from interface:OutputFormatBuilder.OutputOptions
Sets the default table name to use if one emits a null in place of a table name for a given mutation. Table names can only be alpha-numeric and underscores.- Specified by:
defaultTable
in interfaceOutputFormatBuilder.OutputOptions<T>
- Parameters:
tableName
- the table to use when the tablename is null in the write call
-
createTables
public OutputFormatBuilder.OutputOptions<T> createTables(boolean value)
Description copied from interface:OutputFormatBuilder.OutputOptions
Enables the directive to create new tables, as necessary. Table names can only be alpha-numeric and underscores.By default, this feature is disabled.
- Specified by:
createTables
in interfaceOutputFormatBuilder.OutputOptions<T>
-
store
public void store(T j)
Description copied from interface:OutputFormatBuilder.OutputOptions
Finish configuring, verify and serialize options into the Job or JobConf- Specified by:
store
in interfaceOutputFormatBuilder.OutputOptions<T>
-
-