Package org.apache.lucene.codecs
Class NormsProducer
java.lang.Object
org.apache.lucene.codecs.NormsProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
- Direct Known Subclasses:
Lucene70NormsProducer,Lucene80NormsProducer,SimpleTextNormsFormat.SimpleTextNormsProducer
Abstract API that produces field normalization values
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidChecks consistency of this producerReturns an instance optimized for merging.abstract NumericDocValuesReturnsNumericDocValuesfor this field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
Constructor Details
-
NormsProducer
protected NormsProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getNorms
ReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- 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
-