Module org.apache.lucene.codecs
Class SimpleTextNormsFormat.SimpleTextNormsConsumer
- java.lang.Object
-
- org.apache.lucene.codecs.NormsConsumer
-
- org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat.SimpleTextNormsConsumer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- SimpleTextNormsFormat
public static class SimpleTextNormsFormat.SimpleTextNormsConsumer extends NormsConsumer
Writes plain-text norms.FOR RECREATIONAL USE ONLY
-
-
Field Summary
Fields Modifier and Type Field Description private SimpleTextDocValuesWriter
impl
-
Constructor Summary
Constructors Constructor Description SimpleTextNormsConsumer(SegmentWriteState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNormsField(FieldInfo field, NormsProducer normsProducer)
Writes normalization values for a field.void
close()
-
Methods inherited from class org.apache.lucene.codecs.NormsConsumer
merge, mergeNormsField
-
-
-
-
Field Detail
-
impl
private final SimpleTextDocValuesWriter impl
-
-
Constructor Detail
-
SimpleTextNormsConsumer
public SimpleTextNormsConsumer(SegmentWriteState state) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
addNormsField
public void addNormsField(FieldInfo field, NormsProducer normsProducer) throws java.io.IOException
Description copied from class:NormsConsumer
Writes normalization values for a field.- Specified by:
addNormsField
in classNormsConsumer
- Parameters:
field
- field informationnormsProducer
- NormsProducer of the numeric norm values- Throws:
java.io.IOException
- if an I/O error occurred.
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-