public final class TupleIndex
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TupleIndex.TrieNodeManager |
static class |
TupleIndex.TupleIndexRetrieval |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUCKET_OFFSET |
protected static float |
LOAD_FACTOR |
protected int[] |
m_buckets |
protected int |
m_bucketsLengthMinusOne |
protected int[] |
m_indexingSequence |
protected int |
m_numberOfNodes |
protected int |
m_resizeThreshold |
protected int |
m_root |
protected TupleIndex.TrieNodeManager |
m_trieNodeManager |
protected static int |
TRIE_NODE_FIRST_CHILD |
protected static int |
TRIE_NODE_NEXT_ENTRY |
protected static int |
TRIE_NODE_NEXT_SIBLING |
protected static int |
TRIE_NODE_PAGE_SIZE |
protected static int |
TRIE_NODE_PARENT |
protected static int |
TRIE_NODE_PREVIOUS_SIBLING |
protected static int |
TRIE_NODE_SIZE |
protected static int |
TRIE_NODE_TUPLE_INDEX |
| Constructor and Description |
|---|
TupleIndex(int[] indexingSequence) |
| Modifier and Type | Method and Description |
|---|---|
int |
addTuple(java.lang.Object[] tuple,
int potentialTupleIndex) |
void |
clear() |
protected int |
getChildNode(int parent,
java.lang.Object object) |
protected int |
getChildNodeAddIfNecessary(int parent,
java.lang.Object object) |
protected static int |
getIndexFor(int hashCode,
int tableLengthMinusOne) |
int[] |
getIndexingSequence() |
int |
getTupleIndex(java.lang.Object[] tuple) |
protected void |
removeTrieNode(int trieNode) |
int |
removeTuple(java.lang.Object[] tuple) |
protected void |
resizeBuckets() |
int |
sizeInMemoy() |
protected static final float LOAD_FACTOR
protected static final int BUCKET_OFFSET
protected final int[] m_indexingSequence
protected final TupleIndex.TrieNodeManager m_trieNodeManager
protected int m_root
protected int[] m_buckets
protected int m_bucketsLengthMinusOne
protected int m_resizeThreshold
protected int m_numberOfNodes
protected static final int TRIE_NODE_PARENT
protected static final int TRIE_NODE_FIRST_CHILD
protected static final int TRIE_NODE_TUPLE_INDEX
protected static final int TRIE_NODE_PREVIOUS_SIBLING
protected static final int TRIE_NODE_NEXT_SIBLING
protected static final int TRIE_NODE_NEXT_ENTRY
protected static final int TRIE_NODE_SIZE
protected static final int TRIE_NODE_PAGE_SIZE
public int sizeInMemoy()
public int[] getIndexingSequence()
public void clear()
public int addTuple(java.lang.Object[] tuple,
int potentialTupleIndex)
public int getTupleIndex(java.lang.Object[] tuple)
public int removeTuple(java.lang.Object[] tuple)
protected void removeTrieNode(int trieNode)
protected int getChildNode(int parent,
java.lang.Object object)
protected int getChildNodeAddIfNecessary(int parent,
java.lang.Object object)
protected void resizeBuckets()
protected static int getIndexFor(int hashCode,
int tableLengthMinusOne)