Class SimpleTextNormsFormat.SimpleTextNormsProducer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Accountable
    Enclosing class:
    SimpleTextNormsFormat

    public static class SimpleTextNormsFormat.SimpleTextNormsProducer
    extends NormsProducer
    Reads plain-text norms.

    FOR RECREATIONAL USE ONLY

    • Constructor Detail

      • SimpleTextNormsProducer

        public SimpleTextNormsProducer​(SegmentReadState state)
                                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        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.
      • getChildResources

        public java.util.Collection<Accountable> getChildResources()
        Description copied from interface: Accountable
        Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
        See Also:
        Accountables
      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.IOException
        Description copied from class: NormsProducer
        Checks consistency of this producer

        Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.

        Specified by:
        checkIntegrity in class NormsProducer
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object