|
Lucene example source code file (TernaryTreeNode.java)
The Lucene TernaryTreeNode.java source code
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;
}
Other Lucene examples (source code examples)Here is a short list of links related to this Lucene TernaryTreeNode.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.