pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / contrib / spellchecker / src / java / org / apache / lucene / search / suggest / tst / TernaryTreeNode.java
diff --git a/lucene-java-3.5.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/tst/TernaryTreeNode.java b/lucene-java-3.5.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/tst/TernaryTreeNode.java
new file mode 100644 (file)
index 0000000..4df2581
--- /dev/null
@@ -0,0 +1,25 @@
+package org.apache.lucene.search.suggest.tst;
+
+/**
+ * The class creates a TST node.
+ */
+
+public class TernaryTreeNode {
+  /** the character stored by a node. */
+       char splitchar;
+       /** a reference object to the node containing character smaller than this node's character. */
+       TernaryTreeNode loKid;
+       /** 
+        *  a reference object to the node containing character next to this node's character as 
+        *  occurring in the inserted token.
+        */
+       TernaryTreeNode eqKid;
+       /** a reference object to the node containing character higher than this node's character. */
+       TernaryTreeNode hiKid;
+       /** 
+        * used by leaf nodes to store the complete tokens to be added to suggest list while 
+        * auto-completing the prefix.
+        */
+       String token;
+       Object val;
+}