public class OrIterator extends Object implements org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OrIterator.TermSource |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
OrIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTerm(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.hadoop.io.Text term,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
void |
addTerm(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
protected org.apache.accumulo.core.data.Key |
buildTopKey(OrIterator.TermSource TS)
Construct the topKey given the current
TermSource |
org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> |
deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env) |
protected org.apache.hadoop.io.Text |
getDataLocation(org.apache.accumulo.core.data.Key key)
Returns the given key's dataLocation
|
protected org.apache.hadoop.io.Text |
getDocID(org.apache.accumulo.core.data.Key key)
Returns the given key's DocID
|
protected org.apache.hadoop.io.Text |
getPartition(org.apache.accumulo.core.data.Key key)
Returns the given key's row
|
protected org.apache.hadoop.io.Text |
getTerm(org.apache.accumulo.core.data.Key key)
Returns the given key's term
|
org.apache.accumulo.core.data.Key |
getTopKey() |
org.apache.accumulo.core.data.Value |
getTopValue() |
protected static String |
getUID(org.apache.accumulo.core.data.Key key)
Returns the given key's UID
|
boolean |
hasTop() |
void |
init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
boolean |
jump(org.apache.accumulo.core.data.Key jumpKey) |
void |
next() |
void |
seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive) |
protected static String getUID(org.apache.accumulo.core.data.Key key)
key - protected org.apache.hadoop.io.Text getPartition(org.apache.accumulo.core.data.Key key)
key - protected org.apache.hadoop.io.Text getDataLocation(org.apache.accumulo.core.data.Key key)
key - protected org.apache.hadoop.io.Text getTerm(org.apache.accumulo.core.data.Key key)
key - protected org.apache.hadoop.io.Text getDocID(org.apache.accumulo.core.data.Key key)
key - public org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env)
deepCopy in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public void addTerm(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.hadoop.io.Text term,
org.apache.accumulo.core.iterators.IteratorEnvironment env)
public void addTerm(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
org.apache.accumulo.core.iterators.IteratorEnvironment env)
protected org.apache.accumulo.core.data.Key buildTopKey(OrIterator.TermSource TS)
TermSourceTS - public final void next()
throws IOException
next in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic void seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive)
throws IOException
seek in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic final org.apache.accumulo.core.data.Key getTopKey()
getTopKey in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public final org.apache.accumulo.core.data.Value getTopValue()
getTopValue in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public final boolean hasTop()
hasTop in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public void init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env)
throws IOException
init in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic boolean jump(org.apache.accumulo.core.data.Key jumpKey)
throws IOException
IOExceptionCopyright © 2014 Calrissian. All Rights Reserved.