Class JaspellTernarySearchTrie.TSTNode

java.lang.Object
org.apache.lucene.search.suggest.jaspell.JaspellTernarySearchTrie.TSTNode
All Implemented Interfaces:
Accountable
Enclosing class:
JaspellTernarySearchTrie

protected static final class JaspellTernarySearchTrie.TSTNode extends Object implements Accountable
An inner class of Ternary Search Trie that represents a node in the trie.
  • Field Details

    • PARENT

      protected static final int PARENT
      Index values for accessing relatives array.
      See Also:
    • LOKID

      protected static final int LOKID
      Index values for accessing relatives array.
      See Also:
    • EQKID

      protected static final int EQKID
      Index values for accessing relatives array.
      See Also:
    • HIKID

      protected static final int HIKID
      Index values for accessing relatives array.
      See Also:
    • data

      protected Object data
      The key to the node.
    • relatives

      protected final JaspellTernarySearchTrie.TSTNode[] relatives
      The relative nodes.
    • splitchar

      protected char splitchar
      The char used in the split.
  • Constructor Details

    • TSTNode

      protected TSTNode(char splitchar, JaspellTernarySearchTrie.TSTNode parent)
      Constructor method.
      Parameters:
      splitchar - The char used in the split.
      parent - The parent node.
  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Return the memory usage of this object in bytes. Negative values are illegal.
      Specified by:
      ramBytesUsed in interface Accountable