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 SimpleTextDocValuesReader
impl
-
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 void
checkIntegrity()
Checks consistency of this producervoid
close()
java.util.Collection<Accountable>
getChildResources()
Returns nested resources of this class.NumericDocValues
getNorms(FieldInfo field)
ReturnsNumericDocValues
for this field.long
ramBytesUsed()
Return the memory usage of this object in bytes.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.- Specified by:
getNorms
in 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:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
public java.util.Collection<Accountable> getChildResources()
Description copied from interface:Accountable
Returns 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.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
-
-