Class Lucene80NormsProducer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable, Accountable

    final class Lucene80NormsProducer
    extends NormsProducer
    implements java.lang.Cloneable
    • Constructor Detail

      • Lucene80NormsProducer

        Lucene80NormsProducer​(SegmentReadState state,
                              java.lang.String dataCodec,
                              java.lang.String dataExtension,
                              java.lang.String metaCodec,
                              java.lang.String metaExtension)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getMergeInstance

        public NormsProducer getMergeInstance()
        Description copied from class: NormsProducer
        Returns an instance optimized for merging. This instance may only be used from the thread that acquires it.

        The default implementation returns this

        Overrides:
        getMergeInstance in class NormsProducer
      • readFields

        private void readFields​(IndexInput meta,
                                FieldInfos infos)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        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
      • 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