Class NormsProducer

    • Constructor Detail

      • NormsProducer

        protected NormsProducer()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • getNorms

        public abstract NumericDocValues getNorms​(FieldInfo field)
                                           throws java.io.IOException
        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.
        Throws:
        java.io.IOException
      • checkIntegrity

        public abstract void checkIntegrity()
                                     throws java.io.IOException
        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.

        Throws:
        java.io.IOException
      • getMergeInstance

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

        The default implementation returns this