org.apache.accumulo.examples.wikisearch.iterator
Class GlobalIndexUidCombiner

java.lang.Object
  extended by org.apache.accumulo.core.iterators.WrappingIterator
      extended by org.apache.accumulo.core.iterators.Combiner
          extended by org.apache.accumulo.core.iterators.TypedValueCombiner<Uid.List>
              extended by org.apache.accumulo.examples.wikisearch.iterator.GlobalIndexUidCombiner
All Implemented Interfaces:
OptionDescriber, SortedKeyValueIterator<Key,Value>

public class GlobalIndexUidCombiner
extends TypedValueCombiner<Uid.List>


Nested Class Summary
static class GlobalIndexUidCombiner.UidListEncoder
           
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
TypedValueCombiner.Encoder<V>
 
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
static int MAX
           
static TypedValueCombiner.Encoder<Uid.List> UID_LIST_ENCODER
           
 
Fields inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
LOSSY
 
Fields inherited from class org.apache.accumulo.core.iterators.Combiner
ALL_OPTION, COLUMNS_OPTION
 
Constructor Summary
GlobalIndexUidCombiner()
           
 
Method Summary
 void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
           
 Uid.List typedReduce(Key key, Iterator<Uid.List> iter)
           
 
Methods inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
deepCopy, describeOptions, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoder, validateOptions
 
Methods inherited from class org.apache.accumulo.core.iterators.Combiner
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns
 
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
 

Field Detail

UID_LIST_ENCODER

public static final TypedValueCombiner.Encoder<Uid.List> UID_LIST_ENCODER

MAX

public static final int MAX
See Also:
Constant Field Values
Constructor Detail

GlobalIndexUidCombiner

public GlobalIndexUidCombiner()
Method Detail

init

public void init(SortedKeyValueIterator<Key,Value> source,
                 Map<String,String> options,
                 IteratorEnvironment env)
          throws IOException
Specified by:
init in interface SortedKeyValueIterator<Key,Value>
Overrides:
init in class TypedValueCombiner<Uid.List>
Throws:
IOException

typedReduce

public Uid.List typedReduce(Key key,
                            Iterator<Uid.List> iter)
Specified by:
typedReduce in class TypedValueCombiner<Uid.List>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.