Module org.apache.lucene.codecs
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
- 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 SimpleTextDocValuesReader
impl
-
Constructor Summary
Constructors Constructor Description SimpleTextNormsProducer(SegmentReadState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this producervoid
close()
NumericDocValues
getNorms(FieldInfo field)
ReturnsNumericDocValues
for this field.java.lang.String
toString()
-
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:NormsProducer
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
.- Specified by:
getNorms
in classNormsProducer
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:NormsProducer
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.
- Specified by:
checkIntegrity
in classNormsProducer
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-