Class FSTCompiler.NullFSTReader

  • All Implemented Interfaces:
    Accountable, FSTReader
    Enclosing class:
    FSTCompiler<T>

    private static final class FSTCompiler.NullFSTReader
    extends java.lang.Object
    implements FSTReader
    This class is used for FST backed by non-FSTReader DataOutput. It does not allow getting the reverse BytesReader nor writing to a DataOutput.
    • Constructor Detail

      • NullFSTReader

        private NullFSTReader()
    • 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)
        Description copied from interface: FSTReader
        Write this FST to another DataOutput
        Specified by:
        writeTo in interface FSTReader
        Parameters:
        out - the DataOutput