Module org.elasticsearch.server
Class XPerFieldDocValuesFormat
java.lang.Object
org.apache.lucene.codecs.DocValuesFormat
org.elasticsearch.index.codec.perfield.XPerFieldDocValuesFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public abstract class XPerFieldDocValuesFormat
extends org.apache.lucene.codecs.DocValuesFormat
Fork of
PerFieldDocValuesFormat to allow access FieldsReader's fields field, otherwise no changes.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.apache.lucene.codecs.DocValuesConsumerfieldsConsumer(org.apache.lucene.index.SegmentWriteState state) final org.apache.lucene.codecs.DocValuesProducerfieldsProducer(org.apache.lucene.index.SegmentReadState state) abstract org.apache.lucene.codecs.DocValuesFormatgetDocValuesFormatForField(String field) Returns the doc values format that should be used for writing new segments offield.Methods inherited from class org.apache.lucene.codecs.DocValuesFormat
availableDocValuesFormats, forName, getName, reloadDocValuesFormats, toString
-
Field Details
-
PER_FIELD_NAME
Name of thisDocValuesFormat.- See Also:
-
PER_FIELD_FORMAT_KEY
FieldInfoattribute name used to store the format name for each field. -
PER_FIELD_SUFFIX_KEY
FieldInfoattribute name used to store the segment suffix name for each field.
-
-
Constructor Details
-
XPerFieldDocValuesFormat
protected XPerFieldDocValuesFormat()Sole constructor.
-
-
Method Details
-
fieldsConsumer
public final org.apache.lucene.codecs.DocValuesConsumer fieldsConsumer(org.apache.lucene.index.SegmentWriteState state) throws IOException - Specified by:
fieldsConsumerin classorg.apache.lucene.codecs.DocValuesFormat- Throws:
IOException
-
fieldsProducer
public final org.apache.lucene.codecs.DocValuesProducer fieldsProducer(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
fieldsProducerin classorg.apache.lucene.codecs.DocValuesFormat- Throws:
IOException
-
getDocValuesFormatForField
Returns the doc values format that should be used for writing new segments offield.The field to format mapping is written to the index, so this method is only invoked when writing, not when reading.
-