|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.examples.wikisearch.iterator.OrIterator
public class OrIterator
An iterator that handles "OR" query constructs on the server side. This code has been adapted/merged from Heap and Multi Iterators.
| Nested Class Summary | |
|---|---|
protected static class |
OrIterator.TermSource
|
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
OrIterator()
|
|
| Method Summary | |
|---|---|
void |
addTerm(SortedKeyValueIterator<Key,Value> source,
org.apache.hadoop.io.Text term,
IteratorEnvironment env)
|
void |
addTerm(SortedKeyValueIterator<Key,Value> source,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
IteratorEnvironment env)
|
protected Key |
buildTopKey(OrIterator.TermSource TS)
Construct the topKey given the current TermSource |
SortedKeyValueIterator<Key,Value> |
deepCopy(IteratorEnvironment env)
|
protected org.apache.hadoop.io.Text |
getDataLocation(Key key)
Returns the given key's dataLocation |
protected org.apache.hadoop.io.Text |
getDocID(Key key)
Returns the given key's DocID |
protected org.apache.hadoop.io.Text |
getPartition(Key key)
Returns the given key's row |
protected org.apache.hadoop.io.Text |
getTerm(Key key)
Returns the given key's term |
Key |
getTopKey()
|
Value |
getTopValue()
|
protected static String |
getUID(Key key)
Returns the given key's UID |
boolean |
hasTop()
|
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
|
boolean |
jump(Key jumpKey)
|
void |
next()
|
void |
seek(Range range,
Collection<ByteSequence> columnFamilies,
boolean inclusive)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public OrIterator()
| Method Detail |
|---|
protected org.apache.hadoop.io.Text getPartition(Key key)
key -
protected org.apache.hadoop.io.Text getDataLocation(Key key)
key -
protected org.apache.hadoop.io.Text getTerm(Key key)
key -
protected org.apache.hadoop.io.Text getDocID(Key key)
key -
protected static String getUID(Key key)
key -
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
deepCopy in interface SortedKeyValueIterator<Key,Value>
public void addTerm(SortedKeyValueIterator<Key,Value> source,
org.apache.hadoop.io.Text term,
IteratorEnvironment env)
public void addTerm(SortedKeyValueIterator<Key,Value> source,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
IteratorEnvironment env)
protected Key buildTopKey(OrIterator.TermSource TS)
TermSource
TS -
public final void next()
throws IOException
next in interface SortedKeyValueIterator<Key,Value>IOException
public void seek(Range range,
Collection<ByteSequence> columnFamilies,
boolean inclusive)
throws IOException
seek in interface SortedKeyValueIterator<Key,Value>IOExceptionpublic final Key getTopKey()
getTopKey in interface SortedKeyValueIterator<Key,Value>public final Value getTopValue()
getTopValue in interface SortedKeyValueIterator<Key,Value>public final boolean hasTop()
hasTop in interface SortedKeyValueIterator<Key,Value>
public void init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
throws IOException
init in interface SortedKeyValueIterator<Key,Value>IOException
public boolean jump(Key jumpKey)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||