Module org.elasticsearch.server
Package org.elasticsearch.index.codec
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
ConstructorsConstructorDescriptionDeduplicatingFieldInfosFormat
(org.apache.lucene.codecs.FieldInfosFormat delegate) -
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
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 classorg.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 classorg.apache.lucene.codecs.FieldInfosFormat
- Throws:
IOException
-