Class SimpleTextNormsFormat.SimpleTextNormsProducer
java.lang.Object
org.apache.lucene.codecs.NormsProducer
org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat.SimpleTextNormsProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
- Enclosing class:
SimpleTextNormsFormat
Reads plain-text norms.
FOR RECREATIONAL USE ONLY
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()Returns nested resources of this class.ReturnsNumericDocValuesfor this field.longReturn the memory usage of this object in bytes.toString()Methods inherited from class org.apache.lucene.codecs.NormsProducer
getMergeInstance
-
Field Details
-
impl
-
-
Constructor Details
-
SimpleTextNormsProducer
- Throws:
IOException
-
-
Method Details
-
getNorms
Description copied from class:NormsProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNormsin classNormsProducer- Throws:
IOException
-
close
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
getChildResources
Description copied from interface:AccountableReturns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- See Also:
-
checkIntegrity
Description copied from class:NormsProducerChecks 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.
- Specified by:
checkIntegrityin classNormsProducer- Throws:
IOException
-
toString
-