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!
NOTE: this codec cannot address more than ~2.1 GB of postings, because the underlying FST uses an int to address the underlying byte[].
EMPTY
Constructor and Description |
---|
MemoryPostingsFormat() |
MemoryPostingsFormat(boolean doPackFST,
float acceptableOverheadRatio) |
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)
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-2012 Apache Software Foundation. All Rights Reserved.