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.

  • Constructor Details

    • ES87BloomFilterPostingsFormat

      public ES87BloomFilterPostingsFormat(BigArrays bigArrays, Function<String,org.apache.lucene.codecs.PostingsFormat> postingsFormats)
    • 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 class org.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 class org.apache.lucene.codecs.PostingsFormat
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.lucene.codecs.PostingsFormat