Class BigDecimalCombiner
java.lang.Object
org.apache.accumulo.core.iterators.WrappingIterator
org.apache.accumulo.core.iterators.Combiner
org.apache.accumulo.core.iterators.TypedValueCombiner<BigDecimal>
org.apache.accumulo.core.iterators.user.BigDecimalCombiner
- All Implemented Interfaces:
OptionDescriber,SortedKeyValueIterator<Key,,Value> YieldingKeyValueIterator<Key,Value>
- Direct Known Subclasses:
BigDecimalCombiner.BigDecimalMaxCombiner,BigDecimalCombiner.BigDecimalMinCombiner,BigDecimalCombiner.BigDecimalSummingCombiner
A family of combiners that treat values as BigDecimals, encoding and decoding using the built-in
BigDecimal String input/output functions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides the ability to encode scientific notation.static classstatic classstatic classNested classes/interfaces inherited from class org.apache.accumulo.core.iterators.Combiner
Combiner.ValueIteratorNested classes/interfaces inherited from interface org.apache.accumulo.core.iterators.OptionDescriber
OptionDescriber.IteratorOptions -
Field Summary
Fields inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
LOSSYFields inherited from class org.apache.accumulo.core.iterators.Combiner
ALL_OPTION, COLUMNS_OPTION, REDUCE_ON_FULL_COMPACTION_ONLY_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an iterator options object that contains information needed to configure this iterator.voidinit(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) Initializes the iterator.booleanvalidateOptions(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.Methods inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
deepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoder, typedReduceMethods inherited from class org.apache.accumulo.core.iterators.Combiner
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns, setReduceOnFullCompactionOnlyMethods inherited from class org.apache.accumulo.core.iterators.WrappingIterator
getSource, setSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.accumulo.core.iterators.YieldingKeyValueIterator
enableYielding
-
Constructor Details
-
BigDecimalCombiner
public BigDecimalCombiner()
-
-
Method Details
-
init
public void init(SortedKeyValueIterator<Key, Value> source, Map<String, throws IOExceptionString> options, IteratorEnvironment env) Description copied from interface:SortedKeyValueIteratorInitializes the iterator. Data should not be read from the source in this method.- Specified by:
initin interfaceSortedKeyValueIterator<Key,Value> - Overrides:
initin classTypedValueCombiner<BigDecimal>- Parameters:
source-SortedKeyValueIteratorsource to read data from.options-Mapmap of string option names to option values.env-IteratorEnvironmentenvironment in which iterator is being run, provided by Accumulo itself and is expected to be non-null.- Throws:
IOException- unused.
-
describeOptions
Description copied from interface:OptionDescriberGets an iterator options object that contains information needed to configure this iterator. This object will be used by the accumulo shell to prompt the user to input the appropriate information.- Specified by:
describeOptionsin interfaceOptionDescriber- Overrides:
describeOptionsin classTypedValueCombiner<BigDecimal>- Returns:
- an iterator options object
-
validateOptions
Description copied from interface:OptionDescriberCheck to see if an options map contains all options required by an iterator and that the option values are in the expected formats.- Specified by:
validateOptionsin interfaceOptionDescriber- Overrides:
validateOptionsin classTypedValueCombiner<BigDecimal>- Parameters:
options- a map of option names to option values- Returns:
- true if options are valid, false otherwise (IllegalArgumentException preferred)
-