Class SimpleTextNormsFormat.SimpleTextNormsProducer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    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

      • getNorms

        public NumericDocValues getNorms​(FieldInfo field)
                                  throws java.io.IOException
        Description copied from class: NormsProducer
        Returns NumericDocValues for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the given field doesn't have norms enabled on its FieldInfo. The return value is never null.
        Specified by:
        getNorms in class NormsProducer
        Throws:
        java.io.IOException
      • close

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