Class OnHeapFSTStore

  • All Implemented Interfaces:
    Accountable, FSTReader

    public final class OnHeapFSTStore
    extends Object
    implements FSTReader
    Provides storage of finite state machine (FST), using byte array or byte store allocated on heap.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Method Detail

      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
        Specified by:
        ramBytesUsed in interface Accountable
      • writeTo

        public void writeTo​(DataOutput out)
                     throws IOException
        Description copied from interface: FSTReader
        Write this FST to another DataOutput
        Specified by:
        writeTo in interface FSTReader
        Parameters:
        out - the DataOutput
        Throws:
        IOException - if exception occurred during writing