@InterfaceAudience.Private
public static interface OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<T>
Modifier and Type | Method and Description |
---|---|
T |
setAdditionalConfiguration(Map<String,String> confMap)
Used to set additional configuration parameters which are not set via API methods.
|
T |
setAdditionalConfiguration(String key,
String value)
Used to set additional configuration parameters which are not set via API methods.
|
T |
setCombiner(String combinerClassName)
Configure the combiner class
|
T |
setCombiner(String combinerClassName,
Map<String,String> combinerConf)
Configure the combiner class and it's associated configuration (specified as key-value
pairs).
|
T |
setFromConfiguration(org.apache.hadoop.conf.Configuration conf)
Used to build out a configuration from an existing Hadoop
Configuration . |
T |
setSortBufferSize(int sortBufferSize)
Set the buffer size to use when sort the output
|
T |
setSorter(OrderedPartitionedKVOutputConfig.SorterImpl sorterImpl)
Configure which sorter implementation to be used
|
T |
setSorterNumThreads(int numThreads)
Configure the number of threads to be used by the sorter
|
T setSortBufferSize(int sortBufferSize)
sortBufferSize
- the size of the buffer in MBT setCombiner(String combinerClassName)
combinerClassName
- the combiner class nameT setCombiner(String combinerClassName, @Nullable Map<String,String> combinerConf)
setCombiner(String)
is the preferred method for setting a combiner.combinerClassName
- the combiner class namecombinerConf
- the combiner configuration. This can be null, and otherwise
is a Map
of key-value pairs. The keys should
be limited to the ones required by the combiner.T setSorterNumThreads(int numThreads)
numThreads
- the number of threadsT setSorter(OrderedPartitionedKVOutputConfig.SorterImpl sorterImpl)
sorterImpl
- Use an in-built sorter implementations.T setAdditionalConfiguration(String key, String value)
key
- the key to setvalue
- the corresponding valueT setAdditionalConfiguration(Map<String,String> confMap)
confMap
- map of configuration key-value pairs@InterfaceAudience.LimitedPrivate(value="hive, pig") T setFromConfiguration(org.apache.hadoop.conf.Configuration conf)
Configuration
. This is a private API is present only for
compatibility and ease of use for existing systems which rely heavily on Configuration.conf
- Copyright © 2016 Apache Software Foundation. All rights reserved.