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) |
FieldsProducer |
fieldsProducer(SegmentReadState state) |
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 String toString()
toString
in class PostingsFormat
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException
fieldsConsumer
in class PostingsFormat
IOException
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException
fieldsProducer
in class PostingsFormat
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.