Class OffHeapFSTStore

  • All Implemented Interfaces:
    Accountable, FSTStore

    public final class OffHeapFSTStore
    extends java.lang.Object
    implements FSTStore
    Provides off heap storage of finite state machine (FST), using underlying index input instead of byte store on heap
    • Field Detail

      • BASE_RAM_BYTES_USED

        private static final long BASE_RAM_BYTES_USED
      • offset

        private long offset
      • numBytes

        private long numBytes
    • Constructor Detail

      • OffHeapFSTStore

        public OffHeapFSTStore()
    • Method Detail

      • init

        public void init​(DataInput in,
                         long numBytes)
                  throws java.io.IOException
        Specified by:
        init in interface FSTStore
        Throws:
        java.io.IOException
      • 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
      • size

        public long size()
        Specified by:
        size in interface FSTStore
      • writeTo

        public void writeTo​(DataOutput out)
                     throws java.io.IOException
        Specified by:
        writeTo in interface FSTStore
        Throws:
        java.io.IOException