Class SimpleTextNormsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.NormsFormat
-
- org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat
-
public class SimpleTextNormsFormat extends NormsFormat
plain-text norms format.FOR RECREATIONAL USE ONLY
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleTextNormsFormat.SimpleTextNormsConsumer
Writes plain-text norms.static class
SimpleTextNormsFormat.SimpleTextNormsProducer
Reads plain-text norms.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NORMS_SEG_EXTENSION
-
Constructor Summary
Constructors Constructor Description SimpleTextNormsFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormsConsumer
normsConsumer(SegmentWriteState state)
Returns aNormsConsumer
to write norms to the index.NormsProducer
normsProducer(SegmentReadState state)
Returns aNormsProducer
to read norms from the index.
-
-
-
Field Detail
-
NORMS_SEG_EXTENSION
private static final java.lang.String NORMS_SEG_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
normsConsumer
public NormsConsumer normsConsumer(SegmentWriteState state) throws java.io.IOException
Description copied from class:NormsFormat
Returns aNormsConsumer
to write norms to the index.- Specified by:
normsConsumer
in classNormsFormat
- Throws:
java.io.IOException
-
normsProducer
public NormsProducer normsProducer(SegmentReadState state) throws java.io.IOException
Description copied from class:NormsFormat
Returns aNormsProducer
to read norms from the index.NOTE: by the time this call returns, it must hold open any files it will need to use; else, those files may be deleted. Additionally, required files may be deleted during the execution of this call before there is a chance to open them. Under these circumstances an IOException should be thrown by the implementation. IOExceptions are expected and will automatically cause a retry of the segment opening logic with the newly revised segments.
- Specified by:
normsProducer
in classNormsFormat
- Throws:
java.io.IOException
-
-