Package org.egothor.stemmer.trie
Class MutableNode<V>
java.lang.Object
org.egothor.stemmer.trie.MutableNode<V>
- Type Parameters:
V- value type
Mutable build-time node.
The maps exposed by the accessors are the internal mutable backing state of the node. They are returned directly for efficiency and are intended only for closely related trie-building infrastructure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the internal child-node map indexed by transition character.Returns the internal local terminal value-count map.
-
Constructor Details
-
MutableNode
public MutableNode()Creates an empty node.
-
-
Method Details
-
children
Returns the internal child-node map indexed by transition character.The returned map is the internal mutable backing state of this node and is exposed only for efficient cooperation with trie-building infrastructure.
- Returns:
- internal child-node map
-
valueCounts
Returns the internal local terminal value-count map.The returned map is the internal mutable backing state of this node and is exposed only for efficient cooperation with trie-building infrastructure.
- Returns:
- internal local value-count map
-