org.drools.core.util.index
Class LeftTupleIndexRangeRBTree
java.lang.Object
org.drools.core.util.index.LeftTupleIndexRangeRBTree
- All Implemented Interfaces:
- Externalizable, Serializable, LeftTupleMemory
public class LeftTupleIndexRangeRBTree
- extends Object
- implements LeftTupleMemory, Externalizable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeftTupleIndexRangeRBTree
public LeftTupleIndexRangeRBTree()
LeftTupleIndexRangeRBTree
public LeftTupleIndexRangeRBTree(IndexUtil.ConstraintType ascendingConstraintType,
AbstractHashTable.FieldIndex ascendingIndex,
IndexUtil.ConstraintType descendingConstraintType,
AbstractHashTable.FieldIndex descendingIndex)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
add
public void add(LeftTuple leftTuple)
- Specified by:
add in interface LeftTupleMemory
remove
public void remove(LeftTuple tuple)
- Specified by:
remove in interface LeftTupleMemory
removeAdd
public void removeAdd(LeftTuple tuple)
- Specified by:
removeAdd in interface LeftTupleMemory
isIndexed
public boolean isIndexed()
- Specified by:
isIndexed in interface LeftTupleMemory
size
public int size()
- Specified by:
size in interface LeftTupleMemory
toArray
public Entry[] toArray()
- Specified by:
toArray in interface LeftTupleMemory
getFirst
public LeftTuple getFirst(RightTuple rightTuple)
- Specified by:
getFirst in interface LeftTupleMemory
iterator
public Iterator iterator()
- Specified by:
iterator in interface LeftTupleMemory
contains
public boolean contains(LeftTuple leftTuple)
- Specified by:
contains in interface LeftTupleMemory
fastIterator
public FastIterator fastIterator()
- Specified by:
fastIterator in interface LeftTupleMemory
fullFastIterator
public FastIterator fullFastIterator()
- Description copied from interface:
LeftTupleMemory
- Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
- Specified by:
fullFastIterator in interface LeftTupleMemory
- Returns:
fullFastIterator
public FastIterator fullFastIterator(LeftTuple leftTuple)
- Description copied from interface:
LeftTupleMemory
- Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
- Specified by:
fullFastIterator in interface LeftTupleMemory
- Returns:
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.