home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Lucene example source code file (TernaryTreeNode.java)

This example Lucene source code file (TernaryTreeNode.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Lucene tags/keywords

object, object, string, string, ternarytreenode, ternarytreenode

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:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.