public class SummingCombiner extends LongCombiner
LongCombiner.FixedLenEncoder, LongCombiner.StringEncoder, LongCombiner.Type, LongCombiner.VarLenEncoderTypedValueCombiner.Encoder<V>Combiner.ValueIteratorOptionDescriber.IteratorOptionsCLASS_PREFIX, FIXED_LEN_ENCODER, STRING_ENCODER, TYPE, VAR_LEN_ENCODERLOSSYALL_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, validateOptionsdeepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncodergetTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns, setReduceOnFullCompactionOnlygetSource, setSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableYieldingpublic Long typedReduce(Key key, Iterator<Long> iter)
TypedValueCombinertypedReduce 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()
OptionDescriberdescribeOptions in interface OptionDescriberdescribeOptions in class LongCombinerCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.