@InterfaceAudience.Private
public static interface OrderedGroupedKVInputConfig.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 |
setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
Sets a size limit on the maximum segment size to be shuffled to disk.
|
T |
setMemToMemMerger(boolean enable)
Enable the memory to memory merger
|
T |
setMergeFraction(float mergeFraction)
Configure the point at which in memory segments will be merged.
|
T |
setPostMergeBufferFraction(float postMergeBufferFraction)
Sets the buffer fraction, as a fraction of container size, to be used after the fetch and
merge are complete.
|
T |
setShuffleBufferFraction(float shuffleBufferFraction)
Sets the buffer fraction, as a fraction of container size, to be used while fetching remote
data.
|
T |
useLegacyInput()
Specifies whether the legacy version of this input should be used.
|
T useLegacyInput()
T setShuffleBufferFraction(float shuffleBufferFraction)
shuffleBufferFraction
- fraction of container sizeT setPostMergeBufferFraction(float postMergeBufferFraction)
postMergeBufferFraction
- fraction of container sizeT setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
maxSingleSegmentFraction
- fraction of memory determined by ShuffleBufferFractionT setMemToMemMerger(boolean enable)
enable
- whether to enable the memory to memory mergerT setMergeFraction(float mergeFraction)
mergeFraction
- fraction of memory determined by ShuffleBufferFraction, which when
filled, will
trigger a mergeT 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 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.