Class TSDBStoredFieldsFormat

java.lang.Object
org.apache.lucene.codecs.StoredFieldsFormat
org.elasticsearch.index.codec.storedfields.TSDBStoredFieldsFormat

public class TSDBStoredFieldsFormat extends org.apache.lucene.codecs.StoredFieldsFormat
Composite stored fields format for TIME_SERIES indices that combines bloom filter optimization for document ID lookups with standard field storage.

This format uses a two-layer approach:

  • ES93BloomFilterStoredFieldsFormat - Creates a bloom filter index on the _id field to enable fast document existence checks and skips storing the _id
  • Delegate StoredFieldsFormat - Handles storage and retrieval of all other fields using the standard format
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TSDBStoredFieldsFormat(org.apache.lucene.codecs.StoredFieldsFormat delegate, ES93BloomFilterStoredFieldsFormat bloomFilterStoredFieldsFormat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.codecs.StoredFieldsReader
    fieldsReader(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fn, org.apache.lucene.store.IOContext context)
     
    org.apache.lucene.codecs.StoredFieldsWriter
    fieldsWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context)
     
    getBloomFilterForId(org.apache.lucene.index.SegmentReadState state)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TSDBStoredFieldsFormat

      public TSDBStoredFieldsFormat(org.apache.lucene.codecs.StoredFieldsFormat delegate, ES93BloomFilterStoredFieldsFormat bloomFilterStoredFieldsFormat)
  • Method Details

    • fieldsReader

      public org.apache.lucene.codecs.StoredFieldsReader fieldsReader(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.index.FieldInfos fn, org.apache.lucene.store.IOContext context) throws IOException
      Specified by:
      fieldsReader in class org.apache.lucene.codecs.StoredFieldsFormat
      Throws:
      IOException
    • fieldsWriter

      public org.apache.lucene.codecs.StoredFieldsWriter fieldsWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) throws IOException
      Specified by:
      fieldsWriter in class org.apache.lucene.codecs.StoredFieldsFormat
      Throws:
      IOException
    • getBloomFilterForId

      public static BloomFilter getBloomFilterForId(org.apache.lucene.index.SegmentReadState state) throws IOException
      Throws:
      IOException