Class TernaryTreeNode

java.lang.Object
org.apache.lucene.search.suggest.tst.TernaryTreeNode

public class TernaryTreeNode extends Object
The class creates a TST node.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) TernaryTreeNode
    a reference object to the node containing character next to this node's character as occurring in the inserted token.
    (package private) TernaryTreeNode
    a reference object to the node containing character higher than this node's character.
    (package private) TernaryTreeNode
    a reference object to the node containing character smaller than this node's character.
    (package private) char
    the character stored by a node.
    (package private) String
    used by leaf nodes to store the complete tokens to be added to suggest list while auto-completing the prefix.
    (package private) Object
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new empty node
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) long
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • splitchar

      char splitchar
      the character stored by a node.
    • loKid

      a reference object to the node containing character smaller than this node's character.
    • eqKid

      a reference object to the node containing character next to this node's character as occurring in the inserted token.
    • hiKid

      a reference object to the node containing character higher than this node's character.
    • token

      String token
      used by leaf nodes to store the complete tokens to be added to suggest list while auto-completing the prefix.
    • val

      Object val
  • Constructor Details

    • TernaryTreeNode

      public TernaryTreeNode()
      Creates a new empty node
  • Method Details

    • sizeInBytes

      long sizeInBytes()