@InterfaceAudience.Public @InterfaceStability.Evolving public static class OrderedGroupedKVInputConfig.Builder extends Object implements org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
Modifier and Type | Method and Description |
---|---|
OrderedGroupedKVInputConfig |
build()
Create the actual configuration instance.
|
OrderedGroupedKVInputConfig.Builder |
setAdditionalConfiguration(Map<String,String> confMap)
Used to set additional configuration parameters which are not set via API methods.
|
OrderedGroupedKVInputConfig.Builder |
setAdditionalConfiguration(String key,
String value)
Used to set additional configuration parameters which are not set via API methods.
|
OrderedGroupedKVInputConfig.Builder |
setCombiner(String combinerClassName)
Configure the combiner class
|
OrderedGroupedKVInputConfig.Builder |
setCombiner(String combinerClassName,
Map<String,String> combinerConf)
Configure the combiner class and it's associated configuration (specified as key-value
pairs).
|
OrderedGroupedKVInputConfig.Builder |
setCompression(boolean enabled,
String compressionCodec,
Map<String,String> codecConf) |
OrderedGroupedKVInputConfig.Builder |
setFromConfiguration(org.apache.hadoop.conf.Configuration conf) |
OrderedGroupedKVInputConfig.Builder |
setFromConfigurationUnfiltered(org.apache.hadoop.conf.Configuration conf) |
OrderedGroupedKVInputConfig.Builder |
setKeyComparatorClass(String comparatorClassName)
Set the key comparator class
|
OrderedGroupedKVInputConfig.Builder |
setKeyComparatorClass(String comparatorClassName,
Map<String,String> comparatorConf)
Set the key comparator class and it's associated configuration.
|
OrderedGroupedKVInputConfig.Builder |
setKeySerializationClass(String serializationClassName,
String comparatorClassName,
Map<String,String> serializerConf)
Set serialization class and the relevant comparator to be used for sorting.
|
OrderedGroupedKVInputConfig.Builder |
setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
Sets a size limit on the maximum segment size to be shuffled to disk.
|
OrderedGroupedKVInputConfig.Builder |
setMemToMemMerger(boolean enable)
Enable the memory to memory merger
|
OrderedGroupedKVInputConfig.Builder |
setMergeFraction(float mergeFraction)
Configure the point at which in memory segments will be merged.
|
OrderedGroupedKVInputConfig.Builder |
setPostMergeBufferFraction(float postMergeBufferFraction)
Sets the buffer fraction, as a fraction of container size, to be used after the fetch and
merge are complete.
|
OrderedGroupedKVInputConfig.Builder |
setShuffleBufferFraction(float shuffleBufferFraction)
Sets the buffer fraction, as a fraction of container size, to be used while fetching remote
data.
|
OrderedGroupedKVInputConfig.Builder |
setValueSerializationClass(String serializationClassName,
Map<String,String> serializerConf)
Serialization class to be used for serializing values.
|
OrderedGroupedKVInputConfig.Builder |
useLegacyInput()
Specifies whether the legacy version of this input should be used.
|
public OrderedGroupedKVInputConfig.Builder useLegacyInput()
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
useLegacyInput
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
public OrderedGroupedKVInputConfig.Builder setShuffleBufferFraction(float shuffleBufferFraction)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setShuffleBufferFraction
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
shuffleBufferFraction
- fraction of container sizepublic OrderedGroupedKVInputConfig.Builder setPostMergeBufferFraction(float postMergeBufferFraction)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setPostMergeBufferFraction
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
postMergeBufferFraction
- fraction of container sizepublic OrderedGroupedKVInputConfig.Builder setMaxSingleMemorySegmentFraction(float maxSingleSegmentFraction)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setMaxSingleMemorySegmentFraction
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
maxSingleSegmentFraction
- fraction of memory determined by ShuffleBufferFractionpublic OrderedGroupedKVInputConfig.Builder setMemToMemMerger(boolean enable)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setMemToMemMerger
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
enable
- whether to enable the memory to memory mergerpublic OrderedGroupedKVInputConfig.Builder setMergeFraction(float mergeFraction)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setMergeFraction
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
mergeFraction
- fraction of memory determined by ShuffleBufferFraction, which when
filled, will
trigger a mergepublic OrderedGroupedKVInputConfig.Builder setCombiner(String combinerClassName)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
setCombiner
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
combinerClassName
- the combiner class namepublic OrderedGroupedKVInputConfig.Builder setCombiner(String combinerClassName, Map<String,String> combinerConf)
org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder
OrderedGroupedKVInputConfig.SpecificConfigBuilder.setCombiner(String)
is the preferred method for setting a combiner.setCombiner
in interface org.apache.tez.runtime.library.conf.OrderedGroupedKVInputConfig.SpecificConfigBuilder<OrderedGroupedKVInputConfig.Builder>
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.public OrderedGroupedKVInputConfig.Builder setKeyComparatorClass(String comparatorClassName)
comparatorClassName
- the key comparator class namepublic OrderedGroupedKVInputConfig.Builder setKeyComparatorClass(String comparatorClassName, @Nullable Map<String,String> comparatorConf)
setKeyComparatorClass(String)
is the preferred method for setting a
comparator.comparatorClassName
- the key comparator class namecomparatorConf
- the comparator 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 OrderedGroupedKVInputConfig.Builder setAdditionalConfiguration(String key, String value)
key
- the key to setvalue
- the corresponding valuepublic OrderedGroupedKVInputConfig.Builder setAdditionalConfiguration(Map<String,String> confMap)
confMap
- map of configuration key-value pairspublic OrderedGroupedKVInputConfig.Builder setFromConfiguration(org.apache.hadoop.conf.Configuration conf)
public OrderedGroupedKVInputConfig.Builder setFromConfigurationUnfiltered(org.apache.hadoop.conf.Configuration conf)
public OrderedGroupedKVInputConfig.Builder setCompression(boolean enabled, @Nullable String compressionCodec, @Nullable Map<String,String> codecConf)
public OrderedGroupedKVInputConfig.Builder setKeySerializationClass(String serializationClassName, String comparatorClassName, @Nullable Map<String,String> serializerConf)
serializationClassName
- comparatorClassName
- 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 OrderedGroupedKVInputConfig.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 OrderedGroupedKVInputConfig build()
Copyright © 2024 Apache Software Foundation. All rights reserved.