public class SummingCombiner extends LongCombiner
LongCombiner.FixedLenEncoder, LongCombiner.StringEncoder, LongCombiner.Type, LongCombiner.VarLenEncoder
TypedValueCombiner.Encoder<V>
Combiner.ValueIterator
OptionDescriber.IteratorOptions
CLASS_PREFIX, FIXED_LEN_ENCODER, STRING_ENCODER, TYPE, VAR_LEN_ENCODER
LOSSY
ALL_OPTION, COLUMNS_OPTION, REDUCE_ON_FULL_COMPACTION_ONLY_OPTION
Constructor and Description |
---|
SummingCombiner() |
Modifier and Type | Method and Description |
---|---|
OptionDescriber.IteratorOptions |
describeOptions()
Gets an iterator options object that contains information needed to configure this iterator.
|
Long |
typedReduce(Key key,
Iterator<Long> iter)
Reduces a list of V into a single V.
|
init, safeAdd, setEncodingType, setEncodingType, setEncodingType, 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 Long typedReduce(Key key, Iterator<Long> iter)
TypedValueCombiner
typedReduce
in class TypedValueCombiner<Long>
key
- The most recent version of the Key being reduced.iter
- An iterator over the V for different versions of the key.public OptionDescriber.IteratorOptions describeOptions()
OptionDescriber
describeOptions
in interface OptionDescriber
describeOptions
in class LongCombiner
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.