Class IngestMetadata

java.lang.Object
org.opensearch.ingest.IngestMetadata
All Implemented Interfaces:
ClusterState.FeatureAware, Diffable<Metadata.Custom>, Metadata.Custom, NamedDiffable<Metadata.Custom>, org.opensearch.core.common.io.stream.NamedWriteable, org.opensearch.core.common.io.stream.VersionedNamedWriteable, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentFragment

public final class IngestMetadata extends Object implements Metadata.Custom
Holds the ingest pipelines that are available in the cluster
Opensearch.internal:
  • Field Details

  • Constructor Details

  • Method Details

    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface org.opensearch.core.common.io.stream.NamedWriteable
      Specified by:
      getWriteableName in interface org.opensearch.core.common.io.stream.VersionedNamedWriteable
    • getMinimalSupportedVersion

      public org.opensearch.Version getMinimalSupportedVersion()
      Specified by:
      getMinimalSupportedVersion in interface org.opensearch.core.common.io.stream.VersionedNamedWriteable
    • getPipelines

      public Map<String,PipelineConfiguration> getPipelines()
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • fromXContent

      public static IngestMetadata fromXContent(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • context

      public EnumSet<Metadata.XContentContext> context()
      Specified by:
      context in interface Metadata.Custom
    • diff

      public Diff<Metadata.Custom> diff(Metadata.Custom before)
      Description copied from interface: Diffable
      Returns serializable object representing differences between this and previousState
      Specified by:
      diff in interface Diffable<Metadata.Custom>
    • readDiffFrom

      public static NamedDiff<Metadata.Custom> readDiffFrom(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object