public abstract class BigDecimalCombiner extends TypedValueCombiner<BigDecimal>
Modifier and Type | Class and Description |
---|---|
static class |
BigDecimalCombiner.BigDecimalEncoder
Provides the ability to encode scientific notation.
|
static class |
BigDecimalCombiner.BigDecimalMaxCombiner |
static class |
BigDecimalCombiner.BigDecimalMinCombiner |
static class |
BigDecimalCombiner.BigDecimalSummingCombiner |
TypedValueCombiner.Encoder<V>
Combiner.ValueIterator
OptionDescriber.IteratorOptions
LOSSY
ALL_OPTION, COLUMNS_OPTION, REDUCE_ON_FULL_COMPACTION_ONLY_OPTION
Constructor and Description |
---|
BigDecimalCombiner() |
Modifier and Type | Method and Description |
---|---|
OptionDescriber.IteratorOptions |
describeOptions()
Gets an iterator options object that contains information needed to configure this iterator.
|
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
Initializes the iterator.
|
boolean |
validateOptions(Map<String,String> options)
Check to see if an options map contains all options required by an iterator and that the option
values are in the expected formats.
|
deepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoder, typedReduce
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns, setReduceOnFullCompactionOnly
getSource, setSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableYielding
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException
SortedKeyValueIterator
init
in interface SortedKeyValueIterator<Key,Value>
init
in class TypedValueCombiner<BigDecimal>
source
- SortedKeyValueIterator source to read data from.options
- Map map of string option names to option values.env
- IteratorEnvironment environment in which iterator is being run.IOException
- unused.public OptionDescriber.IteratorOptions describeOptions()
OptionDescriber
describeOptions
in interface OptionDescriber
describeOptions
in class TypedValueCombiner<BigDecimal>
public boolean validateOptions(Map<String,String> options)
OptionDescriber
validateOptions
in interface OptionDescriber
validateOptions
in class TypedValueCombiner<BigDecimal>
options
- a map of option names to option valuesCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.