Module org.elasticsearch.server
Class FieldDescriptor
java.lang.Object
org.elasticsearch.index.codec.tsdb.pipeline.FieldDescriptor
Versioned envelope for the
PipelineDescriptor wire format.
Every PipelineDescriptor written to .dvm metadata is prefixed
with a format version VInt, enabling future format evolution without breaking
segment compatibility. Block offsets and value counts are managed by the
consumer/producer's writeField/readNumeric flow.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PipelineDescriptorread(org.apache.lucene.store.DataInput meta) Reads a versioned pipeline descriptor from the metadata input.static voidwrite(org.apache.lucene.store.DataOutput meta, PipelineDescriptor pipeline) Writes a versioned pipeline descriptor to the metadata output.
-
Method Details
-
write
public static void write(org.apache.lucene.store.DataOutput meta, PipelineDescriptor pipeline) throws IOException Writes a versioned pipeline descriptor to the metadata output.- Parameters:
meta- the metadata output streampipeline- the pipeline descriptor to persist- Throws:
IOException- if an I/O error occurs
-
read
Reads a versioned pipeline descriptor from the metadata input.- Parameters:
meta- the metadata input stream- Returns:
- the deserialized pipeline descriptor
- Throws:
IOException- if the format version is unsupported or an I/O error occurs
-