public class IndexNode extends TrieNode
Constructor and Description |
---|
IndexNode(CharTrie trie,
int index)
Instantiates a new Index node.
|
IndexNode(CharTrie trie,
short depth,
int index,
TrieNode parent)
Instantiates a new Index node.
|
Modifier and Type | Method and Description |
---|---|
Optional<? extends IndexNode> |
getChild(char token)
Gets child.
|
Stream<? extends IndexNode> |
getChildren()
Gets children.
|
Stream<Cursor> |
getCursors()
Gets cursors.
|
Map<CharSequence,List<Cursor>> |
getCursorsByDocument()
Gets cursors by document.
|
IndexNode |
godparent()
Godparent trie node.
|
protected TrieNode |
newNode(int index)
New node trie node.
|
IndexNode |
refresh()
Refresh trie node.
|
TrieNode |
split()
Split trie node.
|
IndexNode |
traverse(long cursorId)
Traverse trie node.
|
IndexNode |
traverse(String str)
Traverse trie node.
|
IndexNode |
visitFirstIndex(Consumer<? super IndexNode> visitor)
Visit first index index node.
|
IndexNode |
visitLastIndex(Consumer<? super IndexNode> visitor)
Visit last index index node.
|
bitsTo, containsCursor, decrementCursorCount, equals, getChar, getChildrenMap, getContinuation, getCursorCount, getCursorIndex, getDebugString, getDebugString, getDebugToken, getDepth, getGodChildren, getNumberOfChildren, getParent, getRawString, getString, getString, getToken, getTrie, hasChildren, hashCode, intervalTo, isStringTerminal, removeCursorCount, streamDecendents, visitFirst, visitLast
public IndexNode(CharTrie trie, short depth, int index, TrieNode parent)
trie
- the triedepth
- the depthindex
- the indexparent
- the parentpublic IndexNode(CharTrie trie, int index)
trie
- the trieindex
- the indexpublic Map<CharSequence,List<Cursor>> getCursorsByDocument()
public TrieNode split()
protected TrieNode newNode(int index)
TrieNode
public IndexNode visitFirstIndex(Consumer<? super IndexNode> visitor)
visitor
- the visitorpublic IndexNode visitLastIndex(Consumer<? super IndexNode> visitor)
visitor
- the visitorpublic Stream<? extends IndexNode> getChildren()
TrieNode
getChildren
in class TrieNode
public Optional<? extends IndexNode> getChild(char token)
TrieNode
public IndexNode traverse(String str)
TrieNode
Copyright © 2019 SimiaCryptus Software. All rights reserved.