org.drools.core.util.index
Class RightTupleList
java.lang.Object
org.drools.core.util.index.RightTupleList
- All Implemented Interfaces:
- RightTupleMemory, Entry
- Direct Known Subclasses:
- RightTupleRBTree.Node
public class RightTupleList
- extends Object
- implements RightTupleMemory, Entry
|
Method Summary |
void |
add(RightTuple rightTuple)
|
void |
clear()
|
boolean |
contains(InternalFactHandle handle)
|
boolean |
contains(RightTuple rightTuple)
|
protected void |
copyStateInto(RightTupleList other)
|
boolean |
equals(Object object)
|
FastIterator |
fastIterator()
|
FastIterator |
fullFastIterator()
Iterates the entire data structure, regardless of whether TupleMemory is hashed or not. |
FastIterator |
fullFastIterator(RightTuple rightTuple)
Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not |
RightTuple |
get(InternalFactHandle handle)
|
RightTuple |
get(RightTuple rightTuple)
|
RightTuple |
getFirst()
|
RightTuple |
getFirst(LeftTuple leftTuple,
InternalFactHandle factHandle,
FastIterator rightTupleIterator)
The FactHandle is always the context fact and is necessary when the object being modified is in the both left and right
node memories. |
AbstractHashTable.Index |
getIndex()
|
RightTupleMemory.IndexType |
getIndexType()
|
RightTuple |
getLast()
|
Entry |
getNext()
|
int |
hashCode()
|
void |
insertAfter(RightTuple rightTuple,
RightTuple previous)
|
void |
insertBefore(RightTuple rightTuple,
RightTuple next)
|
boolean |
isIndexed()
|
Iterator |
iterator()
|
boolean |
matches(LeftTuple tuple,
int tupleHashCode,
InternalFactHandle factHandle)
|
boolean |
matches(Object object,
int objectHashCode)
|
void |
remove(RightTuple rightTuple)
We assume that this rightTuple is contained in this hash table |
void |
removeAdd(RightTuple rightTuple)
|
void |
setNext(Entry next)
|
int |
size()
|
void |
split(RightTuple rightTuple,
int count)
|
RightTuple[] |
toArray()
|
String |
toString()
|
previous
public Entry previous
next
public Entry next
first
public RightTuple first
last
public RightTuple last
RightTupleList
public RightTupleList()
RightTupleList
public RightTupleList(AbstractHashTable.Index index,
int hashCode)
RightTupleList
public RightTupleList(AbstractHashTable.Index index,
int hashCode,
Entry next)
RightTupleList
public RightTupleList(RightTupleList p,
Entry next)
getFirst
public RightTuple getFirst(LeftTuple leftTuple,
InternalFactHandle factHandle,
FastIterator rightTupleIterator)
- Description copied from interface:
RightTupleMemory
- The FactHandle is always the context fact and is necessary when the object being modified is in the both left and right
node memories. This is because the memory on the opposite side would not have yet memory.removeAdd the fact, so it
could potentially be in the wrong bucket. So the bucket matches check always checks to ignore the first facthandle if it's
the same as the context fact.
- Specified by:
getFirst in interface RightTupleMemory
- Returns:
getFirst
public RightTuple getFirst()
getLast
public RightTuple getLast()
removeAdd
public void removeAdd(RightTuple rightTuple)
- Specified by:
removeAdd in interface RightTupleMemory
split
public void split(RightTuple rightTuple,
int count)
clear
public void clear()
add
public void add(RightTuple rightTuple)
- Specified by:
add in interface RightTupleMemory
insertAfter
public void insertAfter(RightTuple rightTuple,
RightTuple previous)
insertBefore
public void insertBefore(RightTuple rightTuple,
RightTuple next)
remove
public void remove(RightTuple rightTuple)
- We assume that this rightTuple is contained in this hash table
- Specified by:
remove in interface RightTupleMemory
get
public RightTuple get(InternalFactHandle handle)
contains
public boolean contains(InternalFactHandle handle)
get
public RightTuple get(RightTuple rightTuple)
contains
public boolean contains(RightTuple rightTuple)
- Specified by:
contains in interface RightTupleMemory
size
public int size()
- Specified by:
size in interface RightTupleMemory
fastIterator
public FastIterator fastIterator()
- Specified by:
fastIterator in interface RightTupleMemory
fullFastIterator
public FastIterator fullFastIterator()
- Description copied from interface:
RightTupleMemory
- Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
- Specified by:
fullFastIterator in interface RightTupleMemory
- Returns:
fullFastIterator
public FastIterator fullFastIterator(RightTuple rightTuple)
- Description copied from interface:
RightTupleMemory
- Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
- Specified by:
fullFastIterator in interface RightTupleMemory
- Returns:
iterator
public Iterator iterator()
- Specified by:
iterator in interface RightTupleMemory
matches
public boolean matches(Object object,
int objectHashCode)
matches
public boolean matches(LeftTuple tuple,
int tupleHashCode,
InternalFactHandle factHandle)
toArray
public RightTuple[] toArray()
- Specified by:
toArray in interface RightTupleMemory
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
getNext
public Entry getNext()
- Specified by:
getNext in interface Entry
setNext
public void setNext(Entry next)
- Specified by:
setNext in interface Entry
isIndexed
public boolean isIndexed()
- Specified by:
isIndexed in interface RightTupleMemory
getIndex
public AbstractHashTable.Index getIndex()
toString
public String toString()
- Overrides:
toString in class Object
getIndexType
public RightTupleMemory.IndexType getIndexType()
- Specified by:
getIndexType in interface RightTupleMemory
copyStateInto
protected void copyStateInto(RightTupleList other)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.