@InterfaceAudience.Public @InterfaceStability.Evolving public static class OrderedPartitionedKVOutputConfig.Builder extends Object implements org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.Builder>
Modifier and Type | Method and Description |
---|---|
OrderedPartitionedKVOutputConfig |
build()
Create the actual configuration instance.
|
OrderedPartitionedKVOutputConfig.Builder |
setAdditionalConfiguration(Map<String,String> confMap)
Used to set additional configuration parameters which are not set via API methods.
|
OrderedPartitionedKVOutputConfig.Builder |
setAdditionalConfiguration(String key,
String value)
Used to set additional configuration parameters which are not set via API methods.
|
OrderedPartitionedKVOutputConfig.Builder |
setCombiner(String combinerClassName)
Configure the combiner class
|
OrderedPartitionedKVOutputConfig.Builder |
setCombiner(String combinerClassName,
Map<String,String> combinerConf)
Configure the combiner class and it's associated configuration (specified as key-value
pairs).
|
OrderedPartitionedKVOutputConfig.Builder |
setCompression(boolean enabled,
String compressionCodec,
Map<String,String> codecConf) |
OrderedPartitionedKVOutputConfig.Builder |
setFromConfiguration(org.apache.hadoop.conf.Configuration conf) |
OrderedPartitionedKVOutputConfig.Builder |
setFromConfigurationUnfiltered(org.apache.hadoop.conf.Configuration conf) |
OrderedPartitionedKVOutputConfig.Builder |
setKeyComparatorClass(String comparatorClassName)
Set the key comparator class
|
OrderedPartitionedKVOutputConfig.Builder |
setKeyComparatorClass(String comparatorClassName,
Map<String,String> comparatorConf)
Set the key comparator class and it's associated configuration.
|
OrderedPartitionedKVOutputConfig.Builder |
setKeySerializationClass(String serializationClassName,
String comparatorClassName,
Map<String,String> serializerConf)
Set serialization class and the relevant comparator to be used for sorting.
|
OrderedPartitionedKVOutputConfig.Builder |
setSortBufferSize(int sortBufferSize)
Set the buffer size to use when sort the output
|
OrderedPartitionedKVOutputConfig.Builder |
setSorter(org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SorterImpl sorterImpl)
Configure which sorter implementation to be used
|
OrderedPartitionedKVOutputConfig.Builder |
setSorterNumThreads(int numThreads)
Configure the number of threads to be used by the sorter
|
OrderedPartitionedKVOutputConfig.Builder |
setValueSerializationClass(String serializationClassName,
Map<String,String> serializerConf)
Set serialization class responsible for providing serializer/deserializer for values.
|
public OrderedPartitionedKVOutputConfig.Builder setSortBufferSize(int sortBufferSize)
org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder
setSortBufferSize
in interface org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.Builder>
sortBufferSize
- the size of the buffer in MBpublic OrderedPartitionedKVOutputConfig.Builder setCombiner(String combinerClassName)
org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder
setCombiner
in interface org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.Builder>
combinerClassName
- the combiner class namepublic OrderedPartitionedKVOutputConfig.Builder setCombiner(String combinerClassName, Map<String,String> combinerConf)
org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder
OrderedPartitionedKVOutputConfig.SpecificConfigBuilder.setCombiner(String)
is the preferred method for setting a combiner.setCombiner
in interface org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.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 OrderedPartitionedKVOutputConfig.Builder setSorterNumThreads(int numThreads)
org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder
setSorterNumThreads
in interface org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.Builder>
numThreads
- the number of threadspublic OrderedPartitionedKVOutputConfig.Builder setSorter(org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SorterImpl sorterImpl)
org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder
setSorter
in interface org.apache.tez.runtime.library.conf.OrderedPartitionedKVOutputConfig.SpecificConfigBuilder<OrderedPartitionedKVOutputConfig.Builder>
sorterImpl
- Use an in-built sorter implementations.public OrderedPartitionedKVOutputConfig.Builder setAdditionalConfiguration(String key, String value)
key
- the key to setvalue
- the corresponding valuepublic OrderedPartitionedKVOutputConfig.Builder setAdditionalConfiguration(Map<String,String> confMap)
confMap
- map of configuration key-value pairspublic OrderedPartitionedKVOutputConfig.Builder setFromConfiguration(org.apache.hadoop.conf.Configuration conf)
public OrderedPartitionedKVOutputConfig.Builder setFromConfigurationUnfiltered(org.apache.hadoop.conf.Configuration conf)
public OrderedPartitionedKVOutputConfig.Builder setKeyComparatorClass(String comparatorClassName)
comparatorClassName
- the key comparator class namepublic OrderedPartitionedKVOutputConfig.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.NullPointerException
- if comparatorClassName
is null
public OrderedPartitionedKVOutputConfig.Builder setCompression(boolean enabled, @Nullable String compressionCodec, @Nullable Map<String,String> codecConf)
public OrderedPartitionedKVOutputConfig.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.NullPointerException
- if serializationClassName
or
comparatorClassName
is null
public OrderedPartitionedKVOutputConfig.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.NullPointerException
- if serializationClassName
is null
public OrderedPartitionedKVOutputConfig build()
Copyright © 2024 Apache Software Foundation. All rights reserved.