public class TupleIndexRBTree extends Object implements Externalizable, TupleMemory
| Modifier and Type | Class and Description |
|---|---|
class |
TupleIndexRBTree.TupleFastIterator |
TupleMemory.IndexType| Constructor and Description |
|---|
TupleIndexRBTree() |
TupleIndexRBTree(IndexUtil.ConstraintType constraintType,
AbstractHashTable.FieldIndex index,
boolean left) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple tuple) |
void |
clear() |
boolean |
contains(Tuple leftTuple) |
FastIterator |
fastIterator() |
FastIterator |
fullFastIterator()
Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
|
FastIterator |
fullFastIterator(Tuple leftTuple)
Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
|
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() |
boolean |
isIndexed() |
Iterator<Tuple> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
remove(Tuple tuple) |
void |
removeAdd(Tuple tuple) |
int |
size() |
Entry[] |
toArray() |
void |
writeExternal(ObjectOutput out) |
public TupleIndexRBTree()
public TupleIndexRBTree(IndexUtil.ConstraintType constraintType, AbstractHashTable.FieldIndex index, boolean left)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void add(Tuple tuple)
add in interface TupleMemorypublic void remove(Tuple tuple)
remove in interface TupleMemorypublic void removeAdd(Tuple tuple)
removeAdd in interface TupleMemorypublic boolean isIndexed()
isIndexed in interface TupleMemorypublic int size()
size in interface TupleMemorypublic Entry[] toArray()
toArray in interface TupleMemorypublic Tuple getFirst(Tuple rightTuple)
TupleMemorygetFirst in interface TupleMemorypublic Iterator<Tuple> iterator()
iterator in interface TupleMemorypublic boolean contains(Tuple leftTuple)
contains in interface TupleMemorypublic FastIterator fastIterator()
fastIterator in interface TupleMemorypublic FastIterator fullFastIterator()
TupleMemoryfullFastIterator in interface TupleMemorypublic FastIterator fullFastIterator(Tuple leftTuple)
TupleMemoryfullFastIterator in interface TupleMemorypublic void clear()
clear in interface TupleMemorypublic TupleMemory.IndexType getIndexType()
getIndexType in interface TupleMemoryCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.