Class DeduplicatingFieldInfosFormat

java.lang.Object
org.apache.lucene.codecs.FieldInfosFormat
org.elasticsearch.index.codec.DeduplicatingFieldInfosFormat

public final class DeduplicatingFieldInfosFormat extends org.apache.lucene.codecs.FieldInfosFormat
Wrapper around a FieldInfosFormat that will deduplicate and intern all field names, attribute-keys and -values, and in most cases attribute maps on read. We use this to reduce the per-field overhead for Elasticsearch instances holding a large number of segments.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeduplicatingFieldInfosFormat(org.apache.lucene.codecs.FieldInfosFormat delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.index.FieldInfos
    read(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo segmentInfo, String segmentSuffix, org.apache.lucene.store.IOContext iocontext)
     
    void
    write(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo segmentInfo, String segmentSuffix, org.apache.lucene.index.FieldInfos infos, org.apache.lucene.store.IOContext context)
     

    Methods inherited from class java.lang.Object

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

    • DeduplicatingFieldInfosFormat

      public DeduplicatingFieldInfosFormat(org.apache.lucene.codecs.FieldInfosFormat delegate)
  • Method Details

    • read

      public org.apache.lucene.index.FieldInfos read(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo segmentInfo, String segmentSuffix, org.apache.lucene.store.IOContext iocontext) throws IOException
      Specified by:
      read in class org.apache.lucene.codecs.FieldInfosFormat
      Throws:
      IOException
    • write

      public void write(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo segmentInfo, String segmentSuffix, org.apache.lucene.index.FieldInfos infos, org.apache.lucene.store.IOContext context) throws IOException
      Specified by:
      write in class org.apache.lucene.codecs.FieldInfosFormat
      Throws:
      IOException