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

java.lang.Object
  extended by org.apache.accumulo.core.iterators.WrappingIterator
      extended by org.apache.accumulo.examples.wikisearch.iterator.UniqFieldNameValueIterator
All Implemented Interfaces:
SortedKeyValueIterator<Key,Value>

public class UniqFieldNameValueIterator
extends WrappingIterator


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
UniqFieldNameValueIterator(org.apache.hadoop.io.Text fName, org.apache.hadoop.io.Text fValLower, org.apache.hadoop.io.Text fValUpper)
           
UniqFieldNameValueIterator(UniqFieldNameValueIterator other, IteratorEnvironment env)
           
 
Method Summary
 SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
           
protected  SortedKeyValueIterator<Key,Value> getSource()
           
 Key getTopKey()
           
 Value getTopValue()
           
 boolean hasTop()
           
 void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
           
 void next()
           
 void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
           
static void setLogLevel(org.apache.log4j.Level l)
           
protected  void setSource(SortedKeyValueIterator<Key,Value> source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

UniqFieldNameValueIterator

public UniqFieldNameValueIterator(org.apache.hadoop.io.Text fName,
                                  org.apache.hadoop.io.Text fValLower,
                                  org.apache.hadoop.io.Text fValUpper)

UniqFieldNameValueIterator

public UniqFieldNameValueIterator(UniqFieldNameValueIterator other,
                                  IteratorEnvironment env)
Method Detail

setLogLevel

public static void setLogLevel(org.apache.log4j.Level l)

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 WrappingIterator
Throws:
IOException

setSource

protected void setSource(SortedKeyValueIterator<Key,Value> source)
Overrides:
setSource in class WrappingIterator

getSource

protected SortedKeyValueIterator<Key,Value> getSource()
Overrides:
getSource in class WrappingIterator

deepCopy

public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
Specified by:
deepCopy in interface SortedKeyValueIterator<Key,Value>
Overrides:
deepCopy in class WrappingIterator

getTopKey

public Key getTopKey()
Specified by:
getTopKey in interface SortedKeyValueIterator<Key,Value>
Overrides:
getTopKey in class WrappingIterator

getTopValue

public Value getTopValue()
Specified by:
getTopValue in interface SortedKeyValueIterator<Key,Value>
Overrides:
getTopValue in class WrappingIterator

hasTop

public boolean hasTop()
Specified by:
hasTop in interface SortedKeyValueIterator<Key,Value>
Overrides:
hasTop in class WrappingIterator

next

public void next()
          throws IOException
Specified by:
next in interface SortedKeyValueIterator<Key,Value>
Overrides:
next in class WrappingIterator
Throws:
IOException

seek

public void seek(Range range,
                 Collection<ByteSequence> columnFamilies,
                 boolean inclusive)
          throws IOException
Specified by:
seek in interface SortedKeyValueIterator<Key,Value>
Overrides:
seek in class WrappingIterator
Throws:
IOException


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