Class RAMOnlyPostingsFormat
java.lang.Object
org.apache.lucene.codecs.PostingsFormat
org.apache.lucene.tests.codecs.ramonly.RAMOnlyPostingsFormat
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
Stores all postings data in RAM, but writes a small token (header + single int) to identify which
"slot" the index is using in RAM HashMap.
NOTE: this codec sorts terms by reverse-unicode-order!
-
Field Summary
Fields inherited from class org.apache.lucene.codecs.PostingsFormat
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfieldsConsumer
(SegmentWriteState writeState) fieldsProducer
(SegmentReadState readState) Methods inherited from class org.apache.lucene.codecs.PostingsFormat
availablePostingsFormats, forName, getName, reloadPostingsFormats, toString
-
Constructor Details
-
RAMOnlyPostingsFormat
public RAMOnlyPostingsFormat()
-
-
Method Details
-
fieldsConsumer
- Specified by:
fieldsConsumer
in classPostingsFormat
- Throws:
IOException
-
fieldsProducer
- Specified by:
fieldsProducer
in classPostingsFormat
- Throws:
IOException
-