Drools :: Core 6.1.0.Beta1

org.drools.core.util.index
Class LeftTupleIndexRangeRBTree

java.lang.Object
  extended by org.drools.core.util.index.LeftTupleIndexRangeRBTree
All Implemented Interfaces:
Externalizable, Serializable, LeftTupleMemory

public class LeftTupleIndexRangeRBTree
extends Object
implements LeftTupleMemory, Externalizable

See Also:
Serialized Form

Nested Class Summary
 class LeftTupleIndexRangeRBTree.LeftTupleFastIterator
           
 
Constructor Summary
LeftTupleIndexRangeRBTree()
           
LeftTupleIndexRangeRBTree(IndexUtil.ConstraintType ascendingConstraintType, AbstractHashTable.FieldIndex ascendingIndex, IndexUtil.ConstraintType descendingConstraintType, AbstractHashTable.FieldIndex descendingIndex)
           
 
Method Summary
 void add(LeftTuple leftTuple)
           
 boolean contains(LeftTuple leftTuple)
           
 FastIterator fastIterator()
           
 FastIterator fullFastIterator()
          Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
 FastIterator fullFastIterator(LeftTuple leftTuple)
          Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
 LeftTuple getFirst(RightTuple rightTuple)
           
 boolean isIndexed()
           
 Iterator iterator()
           
 void readExternal(ObjectInput in)
           
 void remove(LeftTuple tuple)
           
 void removeAdd(LeftTuple tuple)
           
 int size()
           
 Entry[] toArray()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeftTupleIndexRangeRBTree

public LeftTupleIndexRangeRBTree()

LeftTupleIndexRangeRBTree

public LeftTupleIndexRangeRBTree(IndexUtil.ConstraintType ascendingConstraintType,
                                 AbstractHashTable.FieldIndex ascendingIndex,
                                 IndexUtil.ConstraintType descendingConstraintType,
                                 AbstractHashTable.FieldIndex descendingIndex)
Method Detail

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:

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.