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.TripleCompositeIndex
RightTupleMemory.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, setComparator
public 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 Externalizable
readExternal
in class AbstractHashTable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractHashTable
IOException
public void init(Entry[] table, int size, int factSize)
public RightTuple getFirst(LeftTuple leftTuple, InternalFactHandle factHandle, FastIterator rightTupleIterator)
RightTupleMemory
getFirst
in interface RightTupleMemory
public boolean isIndexed()
isIndexed
in interface RightTupleMemory
public AbstractHashTable.Index getIndex()
public Entry getBucket(Object object)
getBucket
in class AbstractHashTable
public Iterator iterator()
iterator
in interface RightTupleMemory
iterator
in class AbstractHashTable
public int getResizeHashcode(Entry entry)
getResizeHashcode
in class AbstractHashTable
public FastIterator fastIterator()
fastIterator
in interface RightTupleMemory
public FastIterator fullFastIterator()
RightTupleMemory
fullFastIterator
in interface RightTupleMemory
public FastIterator fullFastIterator(RightTuple rightTuple)
RightTupleMemory
fullFastIterator
in interface RightTupleMemory
public Entry[] toArray()
toArray
in interface RightTupleMemory
toArray
in class AbstractHashTable
public void add(RightTuple rightTuple)
add
in interface RightTupleMemory
public void removeAdd(RightTuple rightTuple)
removeAdd
in interface RightTupleMemory
public void remove(RightTuple rightTuple)
remove
in interface RightTupleMemory
public boolean contains(RightTuple rightTuple)
contains
in interface RightTupleMemory
public RightTupleList get(LeftTuple tuple, InternalFactHandle factHandle)
public int size()
size
in interface RightTupleMemory
size
in class AbstractHashTable
public String toString()
toString
in class AbstractHashTable
public RightTupleMemory.IndexType getIndexType()
getIndexType
in interface RightTupleMemory
public void clear()
clear
in interface RightTupleMemory
clear
in class AbstractHashTable
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.