java.lang.Object
org.apache.lucene.util.fst.NodeHash<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
Inner class because it needs access to hash function and FST bytes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NodeHash<T>.PagedGrowableHash
private final FSTCompiler
<T> private long
private int
private NodeHash<T>.PagedGrowableHash
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionNodeHash
(FSTCompiler<T> fstCompiler, double ramLimitMB) ramLimitMB is the max RAM we can use for recording suffixes. -
Method Summary
Modifier and TypeMethodDescriptionlong
add
(FSTCompiler.UnCompiledNode<T> nodeIn) private long
getFallback
(FSTCompiler.UnCompiledNode<T> nodeIn, long hash) private long
hash
(FSTCompiler.UnCompiledNode<T> node)
-
Field Details
-
-
ramLimitBytes
private final long ramLimitBytes -
fallbackTable
-
fstCompiler
-
scratchArc
-
lastFallbackNodeLength
private int lastFallbackNodeLength -
lastFallbackHashSlot
private long lastFallbackHashSlot
-
-
Constructor Details
-
NodeHash
ramLimitMB is the max RAM we can use for recording suffixes. If we hit this limit, the least recently used suffixes are discarded, and the FST is no longer minimalI. Still, larger ramLimitMB will make the FST smaller (closer to minimal).
-
-
Method Details
-
getFallback
- Throws:
IOException
-
add
- Throws:
IOException
-
hash
-