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

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.apache.accumulo.examples.wikisearch.iterator.BooleanLogicTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class BooleanLogicTreeNode
extends DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
BooleanLogicTreeNode()
           
BooleanLogicTreeNode(int type)
           
BooleanLogicTreeNode(int type, boolean negate)
           
BooleanLogicTreeNode(int type, String fieldName, String fieldValue)
           
BooleanLogicTreeNode(int type, String fieldName, String fieldValue, boolean negated)
           
 
Method Summary
 void addToSet(Key i)
           
static Key buildKey(Key key)
           
 String buildTreePathString(TreeNode[] path)
           
 Key getAdvanceKey()
           
 String getContents()
           
 org.apache.hadoop.io.Text getFieldName()
           
 String getFieldOperator()
           
 org.apache.hadoop.io.Text getFieldValue()
           
 HashSet<Key> getIntersection(HashSet<Key> h)
           
 org.apache.hadoop.io.Text getLowerBound()
           
 Key getMinUniqueID()
           
 Iterator<Key> getSetIterator()
           
 Key getTopKey()
           
 int getType()
           
 org.apache.hadoop.io.Text getUpperBound()
           
 boolean hasTop()
           
 boolean inSet(Key t)
           
 boolean isChildrenAllNegated()
           
 boolean isDone()
           
 boolean isNegated()
           
 boolean isRangeNode()
           
 boolean isRollUp()
           
 boolean isValid()
           
 boolean jump(Key jumpKey)
           
 void next()
           
 String printNode()
           
 void reSet()
           
 void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
           
 void setAdvanceKey(Key advanceKey)
           
 void setChildrenAllNegated(boolean childrenAllNegated)
           
 void setDone(boolean done)
           
 void setFieldName(org.apache.hadoop.io.Text dataLocation)
           
 void setFieldValue(org.apache.hadoop.io.Text term)
           
 void setLowerBound(org.apache.hadoop.io.Text lowerBound)
           
 void setNegated(boolean b)
           
 void setRangeNode(boolean rangeNode)
           
 void setRollUp(boolean rollUp)
           
 void setTopKey(Key id)
           
 void setType(int t)
           
 void setUpperBound(org.apache.hadoop.io.Text upperBound)
           
 void setValid(boolean b)
           
 String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

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

BooleanLogicTreeNode

public BooleanLogicTreeNode()

BooleanLogicTreeNode

public BooleanLogicTreeNode(int type)

BooleanLogicTreeNode

public BooleanLogicTreeNode(int type,
                            boolean negate)

BooleanLogicTreeNode

public BooleanLogicTreeNode(int type,
                            String fieldName,
                            String fieldValue)

BooleanLogicTreeNode

public BooleanLogicTreeNode(int type,
                            String fieldName,
                            String fieldValue,
                            boolean negated)
Method Detail

setValid

public void setValid(boolean b)

isValid

public boolean isValid()

setType

public void setType(int t)

getType

public int getType()

setChildrenAllNegated

public void setChildrenAllNegated(boolean childrenAllNegated)

isChildrenAllNegated

public boolean isChildrenAllNegated()

setAdvanceKey

public void setAdvanceKey(Key advanceKey)

getAdvanceKey

public Key getAdvanceKey()

setNegated

public void setNegated(boolean b)

isNegated

public boolean isNegated()

setTopKey

public void setTopKey(Key id)

getTopKey

public Key getTopKey()

setDone

public void setDone(boolean done)

isDone

public boolean isDone()

setRollUp

public void setRollUp(boolean rollUp)

isRollUp

public boolean isRollUp()

getFieldValue

public org.apache.hadoop.io.Text getFieldValue()

setFieldValue

public void setFieldValue(org.apache.hadoop.io.Text term)

getFieldName

public org.apache.hadoop.io.Text getFieldName()

setFieldName

public void setFieldName(org.apache.hadoop.io.Text dataLocation)

getFieldOperator

public String getFieldOperator()

getLowerBound

public org.apache.hadoop.io.Text getLowerBound()

setLowerBound

public void setLowerBound(org.apache.hadoop.io.Text lowerBound)

getUpperBound

public org.apache.hadoop.io.Text getUpperBound()

setUpperBound

public void setUpperBound(org.apache.hadoop.io.Text upperBound)

isRangeNode

public boolean isRangeNode()

setRangeNode

public void setRangeNode(boolean rangeNode)

getContents

public String getContents()

printNode

public String printNode()

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode

seek

public void seek(Range range,
                 Collection<ByteSequence> columnFamilies,
                 boolean inclusive)
          throws IOException
Throws:
IOException

buildTreePathString

public String buildTreePathString(TreeNode[] path)

next

public void next()
          throws IOException
Throws:
IOException

jump

public boolean jump(Key jumpKey)
             throws IOException
Throws:
IOException

addToSet

public void addToSet(Key i)

reSet

public void reSet()

inSet

public boolean inSet(Key t)

getSetIterator

public Iterator<Key> getSetIterator()

getIntersection

public HashSet<Key> getIntersection(HashSet<Key> h)

getMinUniqueID

public Key getMinUniqueID()

hasTop

public boolean hasTop()

buildKey

public static Key buildKey(Key key)


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