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) |
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 |
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, setComparator
public 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 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 iterator()
iterator
in interface LeftTupleMemory
iterator
in class AbstractHashTable
public FastIterator fastIterator()
fastIterator
in interface LeftTupleMemory
public FastIterator fullFastIterator()
LeftTupleMemory
fullFastIterator
in interface LeftTupleMemory
public FastIterator fullFastIterator(LeftTuple leftTuple)
LeftTupleMemory
fullFastIterator
in interface LeftTupleMemory
public LeftTuple getFirst(RightTuple rightTuple)
getFirst
in interface LeftTupleMemory
public boolean isIndexed()
isIndexed
in interface LeftTupleMemory
public AbstractHashTable.Index getIndex()
public Entry getBucket(Object object)
getBucket
in class AbstractHashTable
public int getResizeHashcode(Entry entry)
getResizeHashcode
in class AbstractHashTable
public LeftTuple[] toArray()
toArray
in interface LeftTupleMemory
toArray
in class AbstractHashTable
public void removeAdd(LeftTuple leftTuple)
removeAdd
in interface LeftTupleMemory
public void add(LeftTuple tuple)
add
in interface LeftTupleMemory
public void remove(LeftTuple leftTuple)
remove
in interface LeftTupleMemory
public boolean contains(LeftTuple tuple)
contains
in interface LeftTupleMemory
public LeftTupleList get(RightTuple rightTuple)
public int size()
size
in interface LeftTupleMemory
size
in class AbstractHashTable
public String toString()
toString
in class AbstractHashTable
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.