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(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) |
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() |
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 boolean isEmpty()
public Tuple getFirst(Tuple rightTuple)
TupleMemory
getFirst
in interface TupleMemory
public Tuple getFirst()
public Tuple getLast()
public void clear()
clear
in interface TupleMemory
public void removeAdd(Tuple tuple)
removeAdd
in interface TupleMemory
public void add(Tuple tuple)
add
in interface TupleMemory
public void remove(Tuple tuple)
remove
in interface TupleMemory
public Tuple removeFirst()
public boolean contains(Tuple tuple)
contains
in interface TupleMemory
public Tuple get(InternalFactHandle handle)
public int size()
size
in interface TupleMemory
public Tuple[] toArray()
toArray
in interface TupleMemory
public TupleMemory.IndexType getIndexType()
getIndexType
in interface TupleMemory
public FastIterator fastIterator()
fastIterator
in interface TupleMemory
public FastIterator fullFastIterator()
TupleMemory
fullFastIterator
in interface TupleMemory
public FastIterator fullFastIterator(Tuple tuple)
TupleMemory
fullFastIterator
in interface TupleMemory
public Iterator<Tuple> iterator()
iterator
in interface TupleMemory
public boolean isIndexed()
isIndexed
in interface TupleMemory
protected void copyStateInto(TupleList other)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.