public class OutputFormatBuilderImpl<T> extends Object implements OutputFormatBuilder.ClientParams<T>, OutputFormatBuilder.OutputOptions<T>
Constructor and Description |
---|
OutputFormatBuilderImpl(Class<?> callingClass) |
Modifier and Type | Method and 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.
|
OutputFormatBuilder.OutputOptions<T> |
simulationMode(boolean value)
Enables the directive to use simulation mode for this job.
|
void |
store(T j)
Finish configuring, verify and serialize options into the Job or JobConf
|
public OutputFormatBuilderImpl(Class<?> callingClass)
public OutputFormatBuilder.OutputOptions<T> clientProperties(Properties clientProperties)
OutputFormatBuilder.ClientParams
Accumulo.newClientProperties()
. Client
properties will be serialized into configuration. Therefore it is more secure to use
OutputFormatBuilder.ClientParams.clientPropertiesPath(String)
clientProperties
in interface OutputFormatBuilder.ClientParams<T>
clientProperties
- Accumulo connection informationpublic OutputFormatBuilder.OutputOptions<T> clientPropertiesPath(String clientPropsPath)
OutputFormatBuilder.ClientParams
OutputFormatBuilder.ClientParams.clientProperties(Properties)
clientPropertiesPath
in interface OutputFormatBuilder.ClientParams<T>
clientPropsPath
- DFS path to accumulo-client.propertiespublic OutputFormatBuilder.OutputOptions<T> defaultTable(String tableName)
OutputFormatBuilder.OutputOptions
defaultTable
in interface OutputFormatBuilder.OutputOptions<T>
tableName
- the table to use when the tablename is null in the write callpublic OutputFormatBuilder.OutputOptions<T> createTables(boolean value)
OutputFormatBuilder.OutputOptions
By default, this feature is disabled.
createTables
in interface OutputFormatBuilder.OutputOptions<T>
public OutputFormatBuilder.OutputOptions<T> simulationMode(boolean value)
OutputFormatBuilder.OutputOptions
By default, this feature is disabled.
simulationMode
in interface OutputFormatBuilder.OutputOptions<T>
public void store(T j)
OutputFormatBuilder.OutputOptions
store
in interface OutputFormatBuilder.OutputOptions<T>
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.