public class AndIterator 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 |
AndIterator.TermSource
Used in representing a Term that is intersected on.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
columnFamiliesOptionName |
protected byte[] |
emptyByteArray |
protected static org.apache.log4j.Logger |
log |
static String |
notFlagsOptionName |
protected org.apache.hadoop.io.Text |
nullText |
static String |
termValuesOptionName |
protected org.apache.accumulo.core.data.Value |
value |
| Constructor and Description |
|---|
AndIterator()
Empty default constructor
|
AndIterator(AndIterator other,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.accumulo.core.iterators.IteratorEnvironment env,
org.apache.hadoop.io.Text term,
boolean notFlag) |
void |
addSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.accumulo.core.iterators.IteratorEnvironment env,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
boolean notFlag) |
protected void |
advanceToIntersection() |
protected org.apache.accumulo.core.data.Key |
buildFollowingPartitionKey(org.apache.accumulo.core.data.Key key)
Return the key that directly follows the given key
|
protected org.apache.accumulo.core.data.Key |
buildKey(org.apache.hadoop.io.Text row,
org.apache.hadoop.io.Text dataLocation)
Build a key from the given row and dataLocation
|
protected org.apache.accumulo.core.data.Key |
buildKey(org.apache.hadoop.io.Text row,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term)
Build a key from the given row, dataLocation, and term
|
static boolean[] |
decodeBooleans(String flags)
Decode the encoded NOT flags into a
boolean array |
static org.apache.hadoop.io.Text[] |
decodeColumns(String columns)
Decode the encoded columns into a
Text array |
static org.apache.hadoop.io.Text[] |
decodeTermValues(String terms)
Decode the encoded terms into a
Text array |
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) |
static String |
encodeBooleans(boolean[] flags)
Encode an array of
booleans denoted which columns are NOT'ed |
static String |
encodeColumns(org.apache.hadoop.io.Text[] columns)
Encode a
Text array of all the columns to intersect on |
static String |
encodeTermValues(org.apache.hadoop.io.Text[] terms)
Encode a
Text array of all of the terms to intersect on. |
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) |
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 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> seekColumnFamilies,
boolean inclusive) |
static String |
stringTopKey(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> iter) |
public static final String columnFamiliesOptionName
public static final String termValuesOptionName
public static final String notFlagsOptionName
protected static final org.apache.log4j.Logger log
protected final byte[] emptyByteArray
protected org.apache.accumulo.core.data.Value value
protected org.apache.hadoop.io.Text nullText
public AndIterator()
public AndIterator(AndIterator other, org.apache.accumulo.core.iterators.IteratorEnvironment env)
public static String stringTopKey(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> iter)
public static String encodeColumns(org.apache.hadoop.io.Text[] columns)
Text array of all the columns to intersect oncolumns - The columns to be encodedpublic static String encodeTermValues(org.apache.hadoop.io.Text[] terms)
Text array of all of the terms to intersect on. The terms should match the columns in a one-to-one mannerterms - The terms to be encodedpublic static String encodeBooleans(boolean[] flags)
booleans denoted which columns are NOT'edflags - The array of NOTspublic static org.apache.hadoop.io.Text[] decodeColumns(String columns)
Text arraycolumns - The Base64 encoded String of the columnspublic static org.apache.hadoop.io.Text[] decodeTermValues(String terms)
Text arrayterms - The Base64 encoded String of the termspublic static boolean[] decodeBooleans(String flags)
boolean arrayflags - protected org.apache.hadoop.io.Text getPartition(org.apache.accumulo.core.data.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 - protected String getUID(org.apache.accumulo.core.data.Key key)
key - protected org.apache.accumulo.core.data.Key buildKey(org.apache.hadoop.io.Text row,
org.apache.hadoop.io.Text dataLocation)
row - The desired rowdataLocation - The desired dataLocationprotected org.apache.accumulo.core.data.Key buildKey(org.apache.hadoop.io.Text row,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term)
row - The desired rowdataLocation - The desired dataLocationterm - The desired termprotected org.apache.accumulo.core.data.Key buildFollowingPartitionKey(org.apache.accumulo.core.data.Key key)
key - The key who will be directly before the returned keypublic 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 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 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 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 next()
throws IOException
next in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionprotected void advanceToIntersection()
throws IOException
IOExceptionpublic 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 void seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> seekColumnFamilies,
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 void addSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.accumulo.core.iterators.IteratorEnvironment env,
org.apache.hadoop.io.Text term,
boolean notFlag)
public void addSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
org.apache.accumulo.core.iterators.IteratorEnvironment env,
org.apache.hadoop.io.Text dataLocation,
org.apache.hadoop.io.Text term,
boolean notFlag)
public boolean jump(org.apache.accumulo.core.data.Key jumpKey)
throws IOException
IOExceptionCopyright © 2014 Calrissian. All Rights Reserved.