java.lang.Object
org.apache.lucene.codecs.NormsProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
Lucene80NormsProducer
,Lucene90NormsProducer
,SimpleTextNormsFormat.SimpleTextNormsProducer
,SlowCompositeCodecReaderWrapper.SlowCompositeNormsProducer
Abstract API that produces field normalization values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Checks consistency of this producerReturns an instance optimized for merging.abstract NumericDocValues
ReturnsNumericDocValues
for this field.
-
Constructor Details
-
NormsProducer
protected NormsProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getNorms
ReturnsNumericDocValues
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 itsFieldInfo
. The return value is nevernull
.- Throws:
IOException
-
checkIntegrity
Checks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Throws:
IOException
-
getMergeInstance
Returns an instance optimized for merging. This instance may only be used from the thread that acquires it.The default implementation returns
this
-