public final class MemoryPostingsFormat extends PostingsFormat
Note that this codec implements advance as a linear scan! This means if you store large fields in here, queries that rely on advance will (AND BooleanQuery, PhraseQuery) will be relatively slow!
EMPTY| Constructor and Description |
|---|
MemoryPostingsFormat() |
MemoryPostingsFormat(boolean doPackFST,
float acceptableOverheadRatio)
Create MemoryPostingsFormat, specifying advanced FST options.
|
| Modifier and Type | Method and Description |
|---|---|
FieldsConsumer |
fieldsConsumer(SegmentWriteState state)
Writes a new segment
|
FieldsProducer |
fieldsProducer(SegmentReadState state)
Reads a segment.
|
java.lang.String |
toString() |
availablePostingsFormats, forName, getName, reloadPostingsFormatspublic MemoryPostingsFormat()
public MemoryPostingsFormat(boolean doPackFST,
float acceptableOverheadRatio)
doPackFST - true if a packed FST should be built.
NOTE: packed FSTs are limited to ~2.1 GB of postings.acceptableOverheadRatio - allowable overhead for packed ints
during FST construction.public java.lang.String toString()
toString in class PostingsFormatpublic FieldsConsumer fieldsConsumer(SegmentWriteState state) throws java.io.IOException
PostingsFormatfieldsConsumer in class PostingsFormatjava.io.IOExceptionpublic FieldsProducer fieldsProducer(SegmentReadState state) throws java.io.IOException
PostingsFormatfieldsProducer in class PostingsFormatjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.