Class JaspellTernarySearchTrie.TSTNode
java.lang.Object
org.apache.lucene.search.suggest.jaspell.JaspellTernarySearchTrie.TSTNode
- All Implemented Interfaces:
Accountable
- Enclosing class:
JaspellTernarySearchTrie
An inner class of Ternary Search Trie that represents a node in the trie.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectThe key to the node.protected static final intIndex values for accessing relatives array.protected static final intIndex values for accessing relatives array.protected static final intIndex values for accessing relatives array.protected static final intIndex values for accessing relatives array.protected final JaspellTernarySearchTrie.TSTNode[]The relative nodes.protected charThe char used in the split.Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTSTNode(char splitchar, JaspellTernarySearchTrie.TSTNode parent) Constructor method. -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the memory usage of this object in bytes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
PARENT
protected static final int PARENTIndex values for accessing relatives array.- See Also:
-
LOKID
protected static final int LOKIDIndex values for accessing relatives array.- See Also:
-
EQKID
protected static final int EQKIDIndex values for accessing relatives array.- See Also:
-
HIKID
protected static final int HIKIDIndex values for accessing relatives array.- See Also:
-
data
The key to the node. -
relatives
The relative nodes. -
splitchar
protected char splitcharThe char used in the split.
-
-
Constructor Details
-
TSTNode
Constructor method.- Parameters:
splitchar- The char used in the split.parent- The parent node.
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-