public final class TupleTableFullIndex
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TupleTableFullIndex.EntryManager |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUCKET_OFFSET |
protected static int |
ENTRY_HASH_CODE |
protected static int |
ENTRY_NEXT |
protected static int |
ENTRY_PAGE_SIZE |
protected static int |
ENTRY_SIZE |
protected static int |
ENTRY_TUPLE_INDEX |
protected static float |
LOAD_FACTOR |
protected int[] |
m_buckets |
protected TupleTableFullIndex.EntryManager |
m_entryManager |
protected int |
m_indexedArity |
protected int |
m_numberOfTuples |
protected int |
m_resizeThreshold |
protected TupleTable |
m_tupleTable |
| Constructor and Description |
|---|
TupleTableFullIndex(TupleTable tupleTable,
int indexedArity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addTuple(java.lang.Object[] tuple,
int tentativeTupleIndex) |
void |
clear() |
protected static int |
getBucketIndex(int hashCode,
int bucketsLength) |
protected int |
getTupleHashCode(java.lang.Object[] tuple) |
protected int |
getTupleHashCode(java.lang.Object[] tupleBuffer,
int[] positionIndexes) |
int |
getTupleIndex(java.lang.Object[] tuple) |
int |
getTupleIndex(java.lang.Object[] tupleBuffer,
int[] positionIndexes) |
boolean |
removeTuple(int tupleIndex) |
protected void |
resizeBuckets() |
int |
sizeInMemory() |
protected static final int BUCKET_OFFSET
protected static final float LOAD_FACTOR
protected final TupleTable m_tupleTable
protected final int m_indexedArity
protected final TupleTableFullIndex.EntryManager m_entryManager
protected int[] m_buckets
protected int m_resizeThreshold
protected int m_numberOfTuples
protected static final int ENTRY_SIZE
protected static final int ENTRY_NEXT
protected static final int ENTRY_HASH_CODE
protected static final int ENTRY_TUPLE_INDEX
protected static final int ENTRY_PAGE_SIZE
public TupleTableFullIndex(TupleTable tupleTable, int indexedArity)
public int sizeInMemory()
public void clear()
public int addTuple(java.lang.Object[] tuple,
int tentativeTupleIndex)
protected void resizeBuckets()
public int getTupleIndex(java.lang.Object[] tuple)
public int getTupleIndex(java.lang.Object[] tupleBuffer,
int[] positionIndexes)
public boolean removeTuple(int tupleIndex)
protected int getTupleHashCode(java.lang.Object[] tuple)
protected int getTupleHashCode(java.lang.Object[] tupleBuffer,
int[] positionIndexes)
protected static int getBucketIndex(int hashCode,
int bucketsLength)