public static class BigDecimalCombiner.BigDecimalSummingCombiner extends BigDecimalCombiner
BigDecimalCombiner.BigDecimalEncoder, BigDecimalCombiner.BigDecimalMaxCombiner, BigDecimalCombiner.BigDecimalMinCombiner, BigDecimalCombiner.BigDecimalSummingCombiner
TypedValueCombiner.Encoder<V>
Combiner.ValueIterator
OptionDescriber.IteratorOptions
LOSSY
ALL_OPTION, COLUMNS_OPTION, REDUCE_ON_FULL_COMPACTION_ONLY_OPTION
Constructor and Description |
---|
BigDecimalSummingCombiner() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
typedReduce(Key key,
Iterator<BigDecimal> iter)
Reduces a list of V into a single V.
|
describeOptions, init, validateOptions
deepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoder
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns, setReduceOnFullCompactionOnly
getSource, setSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableYielding
public BigDecimal typedReduce(Key key, Iterator<BigDecimal> iter)
TypedValueCombiner
typedReduce
in class TypedValueCombiner<BigDecimal>
key
- The most recent version of the Key being reduced.iter
- An iterator over the V for different versions of the key.Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.