Class TSDBSyntheticIdFieldsProducer

java.lang.Object
org.apache.lucene.index.Fields
org.apache.lucene.codecs.FieldsProducer
org.elasticsearch.index.codec.tsdb.TSDBSyntheticIdFieldsProducer
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<String>

public class TSDBSyntheticIdFieldsProducer extends org.apache.lucene.codecs.FieldsProducer
Produces synthetic _id terms that are computed at runtime from the doc values of other fields like _tsid, @timestamp and _ts_routing_hash.
  • Constructor Details

    • TSDBSyntheticIdFieldsProducer

      public TSDBSyntheticIdFieldsProducer(org.apache.lucene.index.SegmentReadState state, org.apache.lucene.codecs.DocValuesProducer docValuesProducer)
  • Method Details

    • size

      public int size()
      Specified by:
      size in class org.apache.lucene.index.Fields
    • iterator

      public Iterator<String> iterator()
      Specified by:
      iterator in interface Iterable<String>
      Specified by:
      iterator in class org.apache.lucene.index.Fields
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class org.apache.lucene.codecs.FieldsProducer
      Throws:
      IOException
    • checkIntegrity

      public void checkIntegrity() throws IOException
      Specified by:
      checkIntegrity in class org.apache.lucene.codecs.FieldsProducer
      Throws:
      IOException
    • getMergeInstance

      public org.apache.lucene.codecs.FieldsProducer getMergeInstance()
      Overrides:
      getMergeInstance in class org.apache.lucene.codecs.FieldsProducer
    • terms

      public org.apache.lucene.index.Terms terms(String field) throws IOException
      Specified by:
      terms in class org.apache.lucene.index.Fields
      Throws:
      IOException