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)
RightTupleMemorygetFirst in interface RightTupleMemorypublic RightTuple getFirst()
public RightTuple getLast()
public void removeAdd(RightTuple rightTuple)
removeAdd in interface RightTupleMemorypublic void split(RightTuple rightTuple, int count)
public void clear()
clear in interface RightTupleMemorypublic void add(RightTuple rightTuple)
add in interface RightTupleMemorypublic void insertAfter(RightTuple rightTuple, RightTuple previous)
public void insertBefore(RightTuple rightTuple, RightTuple next)
public void remove(RightTuple rightTuple)
remove in interface RightTupleMemorypublic RightTuple get(InternalFactHandle handle)
public boolean contains(InternalFactHandle handle)
public RightTuple get(RightTuple rightTuple)
public boolean contains(RightTuple rightTuple)
contains in interface RightTupleMemorypublic int size()
size in interface RightTupleMemorypublic FastIterator fastIterator()
fastIterator in interface RightTupleMemorypublic FastIterator fullFastIterator()
RightTupleMemoryfullFastIterator in interface RightTupleMemorypublic FastIterator fullFastIterator(RightTuple rightTuple)
RightTupleMemoryfullFastIterator in interface RightTupleMemorypublic Iterator iterator()
iterator in interface RightTupleMemorypublic boolean matches(Object object, int objectHashCode)
public boolean matches(LeftTuple tuple, int tupleHashCode, InternalFactHandle factHandle)
public RightTuple[] toArray()
toArray in interface RightTupleMemorypublic boolean isIndexed()
isIndexed in interface RightTupleMemorypublic AbstractHashTable.Index getIndex()
public RightTupleMemory.IndexType getIndexType()
getIndexType in interface RightTupleMemoryprotected void copyStateInto(RightTupleList other)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.