Class NodeHash<T>

java.lang.Object
org.apache.lucene.util.fst.NodeHash<T>

final class NodeHash<T> extends Object
  • Field Details

    • primaryTable

      private NodeHash<T>.PagedGrowableHash primaryTable
    • ramLimitBytes

      private final long ramLimitBytes
    • fallbackTable

      private NodeHash<T>.PagedGrowableHash fallbackTable
    • fstCompiler

      private final FSTCompiler<T> fstCompiler
    • scratchArc

      private final FST.Arc<T> scratchArc
    • lastFallbackNodeLength

      private int lastFallbackNodeLength
    • lastFallbackHashSlot

      private long lastFallbackHashSlot
  • Constructor Details

    • NodeHash

      public NodeHash(FSTCompiler<T> fstCompiler, double ramLimitMB)
      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