Class NodeHash<T>


  • final class NodeHash<T>
    extends java.lang.Object
    • Field Detail

      • ramLimitBytes

        private final long ramLimitBytes
      • scratchArc

        private final FST.Arc<T> scratchArc
      • lastFallbackNodeLength

        private int lastFallbackNodeLength
      • lastFallbackHashSlot

        private long lastFallbackHashSlot
    • Constructor Detail

      • 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).