public class TupleIndexHashTable extends AbstractHashTable implements TupleMemory
| Modifier and Type | Class and Description |
|---|---|
static class |
TupleIndexHashTable.FieldIndexHashTableFullIterator |
static class |
TupleIndexHashTable.FullFastIterator |
AbstractHashTable.AbstractIndexTupleList, AbstractHashTable.AbstractObjectComparator, AbstractHashTable.DoubleCompositeIndex, AbstractHashTable.DoubleIndexTupleList, AbstractHashTable.EqualityEquals, AbstractHashTable.FieldIndex, AbstractHashTable.Index, AbstractHashTable.InstanceEquals, AbstractHashTable.ObjectComparator, AbstractHashTable.SingleIndex, AbstractHashTable.SingleIndexTupleList, AbstractHashTable.TripleCompositeIndex, AbstractHashTable.TripleIndexTupleListTupleMemory.IndexType| Modifier and Type | Field and Description |
|---|---|
static int |
PRIME |
comparator, loadFactor, size, table, threshold| Constructor and Description |
|---|
TupleIndexHashTable() |
TupleIndexHashTable(AbstractHashTable.FieldIndex[] index,
boolean left) |
TupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index,
boolean left) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple tuple) |
void |
clear() |
boolean |
contains(Tuple tuple) |
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.
|
Tuple |
getFirst(Tuple leftTuple,
InternalFactHandle factHandle) |
AbstractHashTable.Index |
getIndex() |
TupleMemory.IndexType |
getIndexType() |
int |
getResizeHashcode(Entry entry) |
void |
init(Entry[] table,
int size,
int factSize) |
boolean |
isIndexed() |
Iterator<Tuple> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
remove(Tuple tuple) |
void |
removeAdd(Tuple tuple) |
int |
size() |
Tuple[] |
toArray() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
ensureCapacity, getTable, indexOf, isEmpty, newIterator, rehash, resize, setComparatorpublic static final int PRIME
public TupleIndexHashTable()
public TupleIndexHashTable(AbstractHashTable.FieldIndex[] index, boolean left)
public TupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index,
boolean left)
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 Iterator<Tuple> iterator()
iterator in interface TupleMemoryiterator in class AbstractHashTablepublic FastIterator fastIterator()
fastIterator in interface TupleMemorypublic FastIterator fullFastIterator()
TupleMemoryfullFastIterator in interface TupleMemorypublic FastIterator fullFastIterator(Tuple leftTuple)
TupleMemoryfullFastIterator in interface TupleMemorypublic Tuple getFirst(Tuple rightTuple)
TupleMemorygetFirst in interface TupleMemorypublic boolean isIndexed()
isIndexed in interface TupleMemorypublic AbstractHashTable.Index getIndex()
public int getResizeHashcode(Entry entry)
getResizeHashcode in class AbstractHashTablepublic Tuple[] toArray()
toArray in interface TupleMemorytoArray in class AbstractHashTablepublic void removeAdd(Tuple tuple)
removeAdd in interface TupleMemorypublic void add(Tuple tuple)
add in interface TupleMemorypublic void remove(Tuple tuple)
remove in interface TupleMemorypublic boolean contains(Tuple tuple)
contains in interface TupleMemorypublic int size()
size in interface TupleMemorysize in class AbstractHashTablepublic String toString()
toString in class AbstractHashTablepublic void clear()
clear in interface TupleMemoryclear in class AbstractHashTablepublic TupleMemory.IndexType getIndexType()
getIndexType in interface TupleMemorypublic Tuple getFirst(Tuple leftTuple, InternalFactHandle factHandle)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.