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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void add(Tuple tuple)
add
in interface TupleMemory
public void remove(Tuple tuple)
remove
in interface TupleMemory
public void removeAdd(Tuple tuple)
removeAdd
in interface TupleMemory
public boolean isIndexed()
isIndexed
in interface TupleMemory
public int size()
size
in interface TupleMemory
public Entry[] toArray()
toArray
in interface TupleMemory
public Tuple getFirst(Tuple rightTuple)
TupleMemory
getFirst
in interface TupleMemory
public Iterator<Tuple> iterator()
iterator
in interface TupleMemory
public boolean contains(Tuple leftTuple)
contains
in interface TupleMemory
public FastIterator fastIterator()
fastIterator
in interface TupleMemory
public FastIterator fullFastIterator()
TupleMemory
fullFastIterator
in interface TupleMemory
public FastIterator fullFastIterator(Tuple leftTuple)
TupleMemory
fullFastIterator
in interface TupleMemory
public void clear()
clear
in interface TupleMemory
public TupleMemory.IndexType getIndexType()
getIndexType
in interface TupleMemory
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.