java.lang.Object
org.apache.lucene.util.fst.NodeHash<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classInner class because it needs access to hash function and FST bytes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NodeHash<T>.PagedGrowableHashprivate final FSTCompiler<T> private longprivate intprivate NodeHash<T>.PagedGrowableHashprivate 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 TypeMethodDescriptionlongadd(FSTCompiler.UnCompiledNode<T> nodeIn) private longgetFallback(FSTCompiler.UnCompiledNode<T> nodeIn, long hash) private longhash(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
-