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.TripleIndexTupleList
TupleMemory.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, setComparator
public 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 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 Iterator<Tuple> iterator()
iterator
in interface TupleMemory
iterator
in class AbstractHashTable
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 Tuple getFirst(Tuple rightTuple)
TupleMemory
getFirst
in interface TupleMemory
public boolean isIndexed()
isIndexed
in interface TupleMemory
public AbstractHashTable.Index getIndex()
public int getResizeHashcode(Entry entry)
getResizeHashcode
in class AbstractHashTable
public Tuple[] toArray()
toArray
in interface TupleMemory
toArray
in class AbstractHashTable
public void removeAdd(Tuple tuple)
removeAdd
in interface TupleMemory
public void add(Tuple tuple)
add
in interface TupleMemory
public void remove(Tuple tuple)
remove
in interface TupleMemory
public boolean contains(Tuple tuple)
contains
in interface TupleMemory
public int size()
size
in interface TupleMemory
size
in class AbstractHashTable
public String toString()
toString
in class AbstractHashTable
public void clear()
clear
in interface TupleMemory
clear
in class AbstractHashTable
public TupleMemory.IndexType getIndexType()
getIndexType
in interface TupleMemory
public Tuple getFirst(Tuple leftTuple, InternalFactHandle factHandle)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.