org.apache.accumulo.test.functional
Class BadCombiner

java.lang.Object
  extended by org.apache.accumulo.core.iterators.WrappingIterator
      extended by org.apache.accumulo.core.iterators.Combiner
          extended by org.apache.accumulo.test.functional.BadCombiner
All Implemented Interfaces:
OptionDescriber, SortedKeyValueIterator<Key,Value>

public class BadCombiner
extends Combiner


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.iterators.Combiner
Combiner.ValueIterator
 
Nested classes/interfaces inherited from interface org.apache.accumulo.core.iterators.OptionDescriber
OptionDescriber.IteratorOptions
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.iterators.Combiner
ALL_OPTION, COLUMNS_OPTION
 
Constructor Summary
BadCombiner()
           
 
Method Summary
 Value reduce(Key key, Iterator<Value> iter)
          Reduces a list of Values into a single Value.
 
Methods inherited from class org.apache.accumulo.core.iterators.Combiner
deepCopy, describeOptions, getTopKey, getTopValue, hasTop, init, next, seek, setColumns, setCombineAllColumns, validateOptions
 
Methods inherited from class org.apache.accumulo.core.iterators.WrappingIterator
getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BadCombiner

public BadCombiner()
Method Detail

reduce

public Value reduce(Key key,
                    Iterator<Value> iter)
Description copied from class: Combiner
Reduces a list of Values into a single Value.

Specified by:
reduce in class Combiner
Parameters:
key - The most recent version of the Key being reduced.
iter - An iterator over the Values for different versions of the key.
Returns:
The combined Value.


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.