org.apache.accumulo.core.iterators.user
Class MaxCombiner
java.lang.Object
org.apache.accumulo.core.iterators.WrappingIterator
org.apache.accumulo.core.iterators.Combiner
org.apache.accumulo.core.iterators.TypedValueCombiner<Long>
org.apache.accumulo.core.iterators.LongCombiner
org.apache.accumulo.core.iterators.user.MaxCombiner
- All Implemented Interfaces:
- OptionDescriber, SortedKeyValueIterator<Key,Value>
public class MaxCombiner
- extends LongCombiner
A Combiner that interprets Values as Longs and returns the largest Long among them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxCombiner
public MaxCombiner()
typedReduce
public Long typedReduce(Key key,
Iterator<Long> iter)
- Description copied from class:
TypedValueCombiner
- Reduces a list of V into a single V.
- Specified by:
typedReduce
in class TypedValueCombiner<Long>
- Parameters:
key
- The most recent version of the Key being reduced.iter
- An iterator over the V for different versions of the key.
- Returns:
- The combined V.
describeOptions
public OptionDescriber.IteratorOptions describeOptions()
- Description copied from interface:
OptionDescriber
- Gets 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:
describeOptions
in interface OptionDescriber
- Overrides:
describeOptions
in class LongCombiner
- Returns:
- an iterator options object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.