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, reloadPostingsFormats
public 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 PostingsFormat
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws java.io.IOException
PostingsFormat
fieldsConsumer
in class PostingsFormat
java.io.IOException
public FieldsProducer fieldsProducer(SegmentReadState state) throws java.io.IOException
PostingsFormat
fieldsProducer
in class PostingsFormat
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.