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 classSimpleTextNormsFormat.SimpleTextNormsConsumerWrites plain-text norms.static classSimpleTextNormsFormat.SimpleTextNormsProducerReads plain-text norms.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringNORMS_SEG_EXTENSION
-
Constructor Summary
Constructors Constructor Description SimpleTextNormsFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormsConsumernormsConsumer(SegmentWriteState state)Returns aNormsConsumerto write norms to the index.NormsProducernormsProducer(SegmentReadState state)Returns aNormsProducerto 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:NormsFormatReturns aNormsConsumerto write norms to the index.- Specified by:
normsConsumerin classNormsFormat- Throws:
java.io.IOException
-
normsProducer
public NormsProducer normsProducer(SegmentReadState state) throws java.io.IOException
Description copied from class:NormsFormatReturns aNormsProducerto 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:
normsProducerin classNormsFormat- Throws:
java.io.IOException
-
-