public class BooleanLogicIterator extends Object implements org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>, org.apache.accumulo.core.iterators.OptionDescriber
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanLogicIterator.BooleanLogicTreeNodeComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_INDEX_QUERY |
static String |
FIELD_NAME_PREFIX |
protected static org.apache.log4j.Logger |
log |
protected org.apache.hadoop.io.Text |
nullText |
static String |
QUERY_OPTION |
static String |
TERM_CARDINALITIES |
| Constructor and Description |
|---|
BooleanLogicIterator() |
BooleanLogicIterator(BooleanLogicIterator other,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
static void |
collapseBranches(BooleanLogicTreeNode myroot) |
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) |
org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions |
describeOptions() |
org.apache.accumulo.core.data.Key |
getTopKey() |
org.apache.accumulo.core.data.Value |
getTopValue() |
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)
init is responsible for setting up the iterator.
|
void |
next() |
BooleanLogicTreeNode |
refactorTree(BooleanLogicTreeNode myroot) |
void |
seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive) |
void |
setDebug(org.apache.log4j.Level lev) |
static void |
setLogLevel(org.apache.log4j.Level lev) |
static void |
showBreadthFirstTraversal(BooleanLogicTreeNode root) |
static void |
showDepthFirstTraversal(BooleanLogicTreeNode root)
Small utility function to print out the depth-first enumeration of the tree.
|
BooleanLogicTreeNode |
transformTreeNode(TreeNode node) |
boolean |
validateOptions(Map<String,String> options) |
public static final String QUERY_OPTION
public static final String TERM_CARDINALITIES
public static final String FIELD_INDEX_QUERY
public static final String FIELD_NAME_PREFIX
protected static final org.apache.log4j.Logger log
protected org.apache.hadoop.io.Text nullText
public BooleanLogicIterator()
public BooleanLogicIterator(BooleanLogicIterator other, org.apache.accumulo.core.iterators.IteratorEnvironment env)
public static void setLogLevel(org.apache.log4j.Level lev)
public static void collapseBranches(BooleanLogicTreeNode myroot) throws Exception
Exceptionpublic static void showDepthFirstTraversal(BooleanLogicTreeNode root)
root - The root node of the tree or sub-tree.public static void showBreadthFirstTraversal(BooleanLogicTreeNode root)
public void setDebug(org.apache.log4j.Level lev)
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 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>source - The underlying SortedkeyValueIterator.options - A Mapenv - The iterator environmentIOExceptionpublic BooleanLogicTreeNode transformTreeNode(TreeNode node) throws org.apache.commons.jexl2.parser.ParseException
org.apache.commons.jexl2.parser.ParseExceptionpublic BooleanLogicTreeNode refactorTree(BooleanLogicTreeNode myroot)
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 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 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 org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions describeOptions()
describeOptions in interface org.apache.accumulo.core.iterators.OptionDescriberCopyright © 2014 Calrissian. All Rights Reserved.