Class SimpleTextNormsFormat.SimpleTextNormsProducer
- java.lang.Object
-
- org.apache.lucene.codecs.NormsProducer
-
- org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat.SimpleTextNormsProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Accountable
- Enclosing class:
- SimpleTextNormsFormat
public static class SimpleTextNormsFormat.SimpleTextNormsProducer extends NormsProducer
Reads plain-text norms.FOR RECREATIONAL USE ONLY
-
-
Field Summary
Fields Modifier and Type Field Description private SimpleTextDocValuesReaderimpl-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description SimpleTextNormsProducer(SegmentReadState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks consistency of this producervoidclose()java.util.Collection<Accountable>getChildResources()Returns nested resources of this class.NumericDocValuesgetNorms(FieldInfo field)ReturnsNumericDocValuesfor this field.longramBytesUsed()Return the memory usage of this object in bytes.java.lang.StringtoString()-
Methods inherited from class org.apache.lucene.codecs.NormsProducer
getMergeInstance
-
-
-
-
Field Detail
-
impl
private final SimpleTextDocValuesReader impl
-
-
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: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:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
public java.util.Collection<Accountable> 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:
Accountables
-
checkIntegrity
public void checkIntegrity() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-