public class LeftTupleIndexHashTable extends AbstractHashTable implements LeftTupleMemory
| Modifier and Type | Class and Description |
|---|---|
static class |
LeftTupleIndexHashTable.FieldIndexHashTableFullIterator |
static class |
LeftTupleIndexHashTable.FullFastIterator |
AbstractHashTable.AbstractObjectComparator, AbstractHashTable.DoubleCompositeIndex, AbstractHashTable.EqualityEquals, AbstractHashTable.FieldIndex, AbstractHashTable.Index, AbstractHashTable.InstanceEquals, AbstractHashTable.ObjectComparator, AbstractHashTable.SingleIndex, AbstractHashTable.TripleCompositeIndex| Modifier and Type | Field and Description |
|---|---|
static int |
PRIME |
comparator, loadFactor, size, table, threshold| Constructor and Description |
|---|
LeftTupleIndexHashTable() |
LeftTupleIndexHashTable(AbstractHashTable.FieldIndex[] index) |
LeftTupleIndexHashTable(int capacity,
float loadFactor,
AbstractHashTable.FieldIndex[] index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LeftTuple tuple) |
void |
clear() |
boolean |
contains(LeftTuple tuple) |
FastIterator |
fastIterator() |
FastIterator |
fullFastIterator()
Iterates the entire data structure, regardless of whether TupleMemory is hashed or not.
|
FastIterator |
fullFastIterator(LeftTuple leftTuple)
Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
|
LeftTupleList |
get(RightTuple rightTuple) |
Entry |
getBucket(Object object) |
LeftTuple |
getFirst(LeftTuple leftTuple) |
LeftTuple |
getFirst(RightTuple rightTuple) |
AbstractHashTable.Index |
getIndex() |
int |
getResizeHashcode(Entry entry) |
void |
init(Entry[] table,
int size,
int factSize) |
boolean |
isIndexed() |
Iterator<LeftTuple> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
remove(LeftTuple leftTuple) |
void |
removeAdd(LeftTuple leftTuple) |
int |
size() |
LeftTuple[] |
toArray() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
ensureCapacity, getBucket, getTable, indexOf, isEmpty, newIterator, rehash, resize, setComparatorpublic static final int PRIME
public LeftTupleIndexHashTable()
public LeftTupleIndexHashTable(AbstractHashTable.FieldIndex[] index)
public LeftTupleIndexHashTable(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 Iterator<LeftTuple> iterator()
iterator in interface LeftTupleMemoryiterator in class AbstractHashTablepublic FastIterator fastIterator()
fastIterator in interface LeftTupleMemorypublic FastIterator fullFastIterator()
LeftTupleMemoryfullFastIterator in interface LeftTupleMemorypublic FastIterator fullFastIterator(LeftTuple leftTuple)
LeftTupleMemoryfullFastIterator in interface LeftTupleMemorypublic LeftTuple getFirst(RightTuple rightTuple)
getFirst in interface LeftTupleMemorypublic boolean isIndexed()
isIndexed in interface LeftTupleMemorypublic AbstractHashTable.Index getIndex()
public Entry getBucket(Object object)
getBucket in class AbstractHashTablepublic int getResizeHashcode(Entry entry)
getResizeHashcode in class AbstractHashTablepublic LeftTuple[] toArray()
toArray in interface LeftTupleMemorytoArray in class AbstractHashTablepublic void removeAdd(LeftTuple leftTuple)
removeAdd in interface LeftTupleMemorypublic void add(LeftTuple tuple)
add in interface LeftTupleMemorypublic void remove(LeftTuple leftTuple)
remove in interface LeftTupleMemorypublic boolean contains(LeftTuple tuple)
contains in interface LeftTupleMemorypublic LeftTupleList get(RightTuple rightTuple)
public int size()
size in interface LeftTupleMemorysize in class AbstractHashTablepublic String toString()
toString in class AbstractHashTablepublic void clear()
clear in interface LeftTupleMemoryclear in class AbstractHashTableCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.