Module org.apache.lucene.codecs
Class SimpleTextNormsFormat
java.lang.Object
org.apache.lucene.codecs.NormsFormat
org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat
plain-text norms format.
FOR RECREATIONAL USE ONLY
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Writes plain-text norms.static class
Reads plain-text norms. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnormsConsumer
(SegmentWriteState state) Returns aNormsConsumer
to write norms to the index.normsProducer
(SegmentReadState state) Returns aNormsProducer
to read norms from the index.
-
Field Details
-
NORMS_SEG_EXTENSION
- See Also:
-
-
Constructor Details
-
SimpleTextNormsFormat
public SimpleTextNormsFormat()
-
-
Method Details
-
normsConsumer
Description copied from class:NormsFormat
Returns aNormsConsumer
to write norms to the index.- Specified by:
normsConsumer
in classNormsFormat
- Throws:
IOException
-
normsProducer
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:
IOException
-