public class RightTupleIndexHashTable extends AbstractHashTable implements RightTupleMemory
| Modifier and Type | Class and Description |
|---|---|
static class |
RightTupleIndexHashTable.FieldIndexHashTableFullIterator |
static class |
RightTupleIndexHashTable.FullFastIterator |
AbstractHashTable.AbstractObjectComparator, AbstractHashTable.DoubleCompositeIndex, AbstractHashTable.EqualityEquals, AbstractHashTable.FieldIndex, AbstractHashTable.Index, AbstractHashTable.InstanceEquals, AbstractHashTable.ObjectComparator, AbstractHashTable.SingleIndex, AbstractHashTable.TripleCompositeIndexRightTupleMemory.IndexType| Modifier and Type | Field and Description |
|---|---|
static int |
PRIME |
comparator, loadFactor, size, table, threshold| Constructor and Description |
|---|
RightTupleIndexHashTable() |
RightTupleIndexHashTable(AbstractHashTable.FieldIndex[] index) |
RightTupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RightTuple rightTuple) |
void |
clear() |
boolean |
contains(RightTuple rightTuple) |
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
|
RightTupleList |
get(LeftTuple tuple,
InternalFactHandle factHandle) |
Entry |
getBucket(Object object) |
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() |
int |
getResizeHashcode(Entry entry) |
void |
init(Entry[] table,
int size,
int factSize) |
boolean |
isIndexed() |
Iterator |
iterator() |
void |
readExternal(ObjectInput in) |
void |
remove(RightTuple rightTuple)
We assume that this rightTuple is contained in this hash table
|
void |
removeAdd(RightTuple rightTuple) |
int |
size() |
Entry[] |
toArray() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
ensureCapacity, getBucket, getTable, indexOf, isEmpty, newIterator, rehash, resize, setComparatorpublic static final int PRIME
public RightTupleIndexHashTable()
public RightTupleIndexHashTable(AbstractHashTable.FieldIndex[] index)
public RightTupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractHashTableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractHashTableIOExceptionpublic void init(Entry[] table, int size, int factSize)
public RightTuple getFirst(LeftTuple leftTuple, InternalFactHandle factHandle, FastIterator rightTupleIterator)
RightTupleMemorygetFirst in interface RightTupleMemorypublic boolean isIndexed()
isIndexed in interface RightTupleMemorypublic AbstractHashTable.Index getIndex()
public Entry getBucket(Object object)
getBucket in class AbstractHashTablepublic Iterator iterator()
iterator in interface RightTupleMemoryiterator in class AbstractHashTablepublic int getResizeHashcode(Entry entry)
getResizeHashcode in class AbstractHashTablepublic FastIterator fastIterator()
fastIterator in interface RightTupleMemorypublic FastIterator fullFastIterator()
RightTupleMemoryfullFastIterator in interface RightTupleMemorypublic FastIterator fullFastIterator(RightTuple rightTuple)
RightTupleMemoryfullFastIterator in interface RightTupleMemorypublic Entry[] toArray()
toArray in interface RightTupleMemorytoArray in class AbstractHashTablepublic void add(RightTuple rightTuple)
add in interface RightTupleMemorypublic void removeAdd(RightTuple rightTuple)
removeAdd in interface RightTupleMemorypublic void remove(RightTuple rightTuple)
remove in interface RightTupleMemorypublic boolean contains(RightTuple rightTuple)
contains in interface RightTupleMemorypublic RightTupleList get(LeftTuple tuple, InternalFactHandle factHandle)
public int size()
size in interface RightTupleMemorysize in class AbstractHashTablepublic String toString()
toString in class AbstractHashTablepublic RightTupleMemory.IndexType getIndexType()
getIndexType in interface RightTupleMemorypublic void clear()
clear in interface RightTupleMemoryclear in class AbstractHashTableCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.