public class RightTupleList extends Object implements RightTupleMemory, Entry
Modifier and Type | Class and Description |
---|---|
static class |
RightTupleList.TupleHashTableIterator |
RightTupleMemory.IndexType
Modifier and Type | Field and Description |
---|---|
RightTuple |
first |
RightTuple |
last |
Entry |
next |
Entry |
previous |
Constructor and Description |
---|
RightTupleList() |
RightTupleList(AbstractHashTable.Index index,
int hashCode) |
RightTupleList(AbstractHashTable.Index index,
int hashCode,
Entry next) |
RightTupleList(RightTupleList p,
Entry next) |
Modifier and Type | Method and Description |
---|---|
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() |
public Entry previous
public Entry next
public RightTuple first
public RightTuple last
public RightTupleList()
public RightTupleList(AbstractHashTable.Index index, int hashCode)
public RightTupleList(AbstractHashTable.Index index, int hashCode, Entry next)
public RightTupleList(RightTupleList p, Entry next)
public RightTuple getFirst(LeftTuple leftTuple, InternalFactHandle factHandle, FastIterator rightTupleIterator)
RightTupleMemory
getFirst
in interface RightTupleMemory
public RightTuple getFirst()
public RightTuple getLast()
public void removeAdd(RightTuple rightTuple)
removeAdd
in interface RightTupleMemory
public void split(RightTuple rightTuple, int count)
public void clear()
public void add(RightTuple rightTuple)
add
in interface RightTupleMemory
public void insertAfter(RightTuple rightTuple, RightTuple previous)
public void insertBefore(RightTuple rightTuple, RightTuple next)
public void remove(RightTuple rightTuple)
remove
in interface RightTupleMemory
public RightTuple get(InternalFactHandle handle)
public boolean contains(InternalFactHandle handle)
public RightTuple get(RightTuple rightTuple)
public boolean contains(RightTuple rightTuple)
contains
in interface RightTupleMemory
public int size()
size
in interface RightTupleMemory
public FastIterator fastIterator()
fastIterator
in interface RightTupleMemory
public FastIterator fullFastIterator()
RightTupleMemory
fullFastIterator
in interface RightTupleMemory
public FastIterator fullFastIterator(RightTuple rightTuple)
RightTupleMemory
fullFastIterator
in interface RightTupleMemory
public Iterator iterator()
iterator
in interface RightTupleMemory
public boolean matches(Object object, int objectHashCode)
public boolean matches(LeftTuple tuple, int tupleHashCode, InternalFactHandle factHandle)
public RightTuple[] toArray()
toArray
in interface RightTupleMemory
public boolean isIndexed()
isIndexed
in interface RightTupleMemory
public AbstractHashTable.Index getIndex()
public RightTupleMemory.IndexType getIndexType()
getIndexType
in interface RightTupleMemory
protected void copyStateInto(RightTupleList other)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.