Module org.elasticsearch.server
Class ES87BloomFilterPostingsFormat
java.lang.Object
org.apache.lucene.codecs.PostingsFormat
org.elasticsearch.index.codec.bloomfilter.ES87BloomFilterPostingsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public class ES87BloomFilterPostingsFormat
extends org.apache.lucene.codecs.PostingsFormat
This implementation is forked from Lucene's BloomFilterPosting to support on-disk bloom filters.
A PostingsFormat
useful for low doc-frequency fields such as primary keys. Bloom filters
offers "fast-fail" for reads in segments known to have no record of the key.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Implementation of the MurmurHash3 128-bit hash functions. -
Field Summary
Fields inherited from class org.apache.lucene.codecs.PostingsFormat
EMPTY
-
Constructor Summary
ConstructorDescriptionES87BloomFilterPostingsFormat
(BigArrays bigArrays, Function<String, org.apache.lucene.codecs.PostingsFormat> postingsFormats) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.FieldsConsumer
fieldsConsumer
(org.apache.lucene.index.SegmentWriteState state) org.apache.lucene.codecs.FieldsProducer
fieldsProducer
(org.apache.lucene.index.SegmentReadState state) toString()
Methods inherited from class org.apache.lucene.codecs.PostingsFormat
availablePostingsFormats, forName, getName, reloadPostingsFormats
-
Constructor Details
-
ES87BloomFilterPostingsFormat
-
ES87BloomFilterPostingsFormat
public ES87BloomFilterPostingsFormat()
-
-
Method Details
-
fieldsConsumer
public org.apache.lucene.codecs.FieldsConsumer fieldsConsumer(org.apache.lucene.index.SegmentWriteState state) throws IOException - Specified by:
fieldsConsumer
in classorg.apache.lucene.codecs.PostingsFormat
- Throws:
IOException
-
fieldsProducer
public org.apache.lucene.codecs.FieldsProducer fieldsProducer(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
fieldsProducer
in classorg.apache.lucene.codecs.PostingsFormat
- Throws:
IOException
-
toString
- Overrides:
toString
in classorg.apache.lucene.codecs.PostingsFormat
-