@InterfaceAudience.Public @InterfaceStability.Evolving public static class UnorderedKVInputConfig.Builder extends Object implements org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder<UnorderedKVInputConfig.Builder>
Modifier and Type | Method and Description |
---|---|
UnorderedKVInputConfig |
build()
Create the actual configuration instance.
|
UnorderedKVInputConfig.Builder |
setAdditionalConfiguration(Map<String,String> confMap)
Used to set additional configuration parameters which are not set via API methods.
|
UnorderedKVInputConfig.Builder |
setAdditionalConfiguration(String key,
String value)
Used to set additional configuration parameters which are not set via API methods.
|
UnorderedKVInputConfig.Builder |
setCompression(boolean enabled,
String compressionCodec,
Map<String,String> codecConf) |
UnorderedKVInputConfig.Builder |
setFromConfiguration(org.apache.hadoop.conf.Configuration conf)
Used to build out a configuration from an existing Hadoop
Configuration . |
UnorderedKVInputConfig.Builder |
setKeySerializationClass(String serializationClassName,
Map<String,String> serializerConf)
Set serialization class responsible for providing serializer/deserializer for key/value and
the corresponding comparator class to be used as key comparator.
|
UnorderedKVInputConfig.Builder |
setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
Sets a size limit on the maximum segment size to be shuffled to disk.
|
UnorderedKVInputConfig.Builder |
setMergeFraction(float mergeFraction)
Configure the point at which in memory segments will be merged and written out to a single
large disk segment.
|
UnorderedKVInputConfig.Builder |
setShuffleBufferFraction(float shuffleBufferFraction)
Sets the buffer fraction, as a fraction of container size, to be used while fetching remote
data.
|
UnorderedKVInputConfig.Builder |
setValueSerializationClass(String serializationClassName,
Map<String,String> serializerConf)
Set serialization class responsible for providing serializer/deserializer for values.
|
public UnorderedKVInputConfig.Builder setShuffleBufferFraction(float shuffleBufferFraction)
org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder
setShuffleBufferFraction
in interface org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder<UnorderedKVInputConfig.Builder>
shuffleBufferFraction
- fraction of container sizepublic UnorderedKVInputConfig.Builder setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder
setMaxSingleMemorySegmentFraction
in interface org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder<UnorderedKVInputConfig.Builder>
maxSingleSegmentFraction
- fraction of memory determined by ShuffleBufferFractionpublic UnorderedKVInputConfig.Builder setMergeFraction(float mergeFraction)
org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder
setMergeFraction
in interface org.apache.tez.runtime.library.conf.UnorderedKVInputConfig.SpecificConfigBuilder<UnorderedKVInputConfig.Builder>
mergeFraction
- fraction of memory determined by ShuffleBufferFraction, which when
filled, will
trigger a mergepublic UnorderedKVInputConfig.Builder setAdditionalConfiguration(String key, String value)
key
- the key to setvalue
- the corresponding valuepublic UnorderedKVInputConfig.Builder setAdditionalConfiguration(Map<String,String> confMap)
confMap
- map of configuration key-value pairspublic UnorderedKVInputConfig.Builder 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.public UnorderedKVInputConfig.Builder setCompression(boolean enabled, @Nullable String compressionCodec, @Nullable Map<String,String> codecConf)
public UnorderedKVInputConfig.Builder setKeySerializationClass(String serializationClassName, @Nullable Map<String,String> serializerConf)
serializationClassName
- serializerConf
- the serializer configuration. This can be null, and is a
Map
of key-value pairs. The keys should be limited
to the ones required by the comparator.public UnorderedKVInputConfig.Builder setValueSerializationClass(String serializationClassName, @Nullable Map<String,String> serializerConf)
serializationClassName
- serializerConf
- the serializer configuration. This can be null, and is a
Map
of key-value pairs. The keys should be limited
to the ones required by the comparator.public UnorderedKVInputConfig build()
Copyright © 2016 Apache Software Foundation. All rights reserved.