public class TupleList extends Object implements TupleMemory, Entry<TupleList>
| Modifier and Type | Class and Description |
|---|---|
static class |
TupleList.TupleHashTableIterator |
TupleMemory.IndexType| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
TupleList() |
TupleList(AbstractHashTable.Index index,
int hashCode) |
TupleList(Tuple first,
Tuple last,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple tuple) |
void |
clear() |
boolean |
contains(Tuple tuple) |
protected void |
copyStateInto(TupleList other) |
boolean |
equals(Object object) |
FastIterator |
fastIterator() |
FastIterator |
fullFastIterator()
Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
|
FastIterator |
fullFastIterator(Tuple tuple)
Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
|
Tuple |
get(InternalFactHandle handle) |
Tuple |
get(Tuple tuple) |
Tuple |
getFirst() |
Tuple |
getFirst(Tuple rightTuple)
The FactHandle is always the context fact and is necessary when the object being modified is in the both left and right
node memories.
|
TupleMemory.IndexType |
getIndexType() |
Tuple |
getLast() |
TupleList |
getNext() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isIndexed() |
Iterator<Tuple> |
iterator() |
void |
remove(Tuple tuple) |
void |
removeAdd(Tuple tuple) |
Tuple |
removeFirst() |
void |
setNext(TupleList next) |
int |
size() |
Tuple[] |
toArray() |
String |
toString() |
public static final long serialVersionUID
public TupleList()
public TupleList(AbstractHashTable.Index index, int hashCode)
public boolean isEmpty()
public Tuple getFirst(Tuple rightTuple)
TupleMemorygetFirst in interface TupleMemorypublic Tuple getFirst()
public Tuple getLast()
public void clear()
clear in interface TupleMemorypublic void removeAdd(Tuple tuple)
removeAdd in interface TupleMemorypublic void add(Tuple tuple)
add in interface TupleMemorypublic void remove(Tuple tuple)
remove in interface TupleMemorypublic Tuple removeFirst()
public boolean contains(Tuple tuple)
contains in interface TupleMemorypublic Tuple get(InternalFactHandle handle)
public int size()
size in interface TupleMemorypublic Tuple[] toArray()
toArray in interface TupleMemorypublic TupleMemory.IndexType getIndexType()
getIndexType in interface TupleMemorypublic FastIterator fastIterator()
fastIterator in interface TupleMemorypublic FastIterator fullFastIterator()
TupleMemoryfullFastIterator in interface TupleMemorypublic FastIterator fullFastIterator(Tuple tuple)
TupleMemoryfullFastIterator in interface TupleMemorypublic Iterator<Tuple> iterator()
iterator in interface TupleMemorypublic boolean isIndexed()
isIndexed in interface TupleMemoryprotected void copyStateInto(TupleList other)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.