Class TestCustomMetadata

java.lang.Object
org.opensearch.cluster.AbstractNamedDiffable<org.opensearch.cluster.metadata.Metadata.Custom>
org.opensearch.test.TestCustomMetadata
All Implemented Interfaces:
org.opensearch.cluster.ClusterState.FeatureAware, org.opensearch.cluster.Diffable<org.opensearch.cluster.metadata.Metadata.Custom>, org.opensearch.cluster.metadata.Metadata.Custom, org.opensearch.cluster.NamedDiffable<org.opensearch.cluster.metadata.Metadata.Custom>, org.opensearch.common.io.stream.NamedWriteable, org.opensearch.common.io.stream.VersionedNamedWriteable, org.opensearch.common.io.stream.Writeable, org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentFragment

public abstract class TestCustomMetadata
extends org.opensearch.cluster.AbstractNamedDiffable<org.opensearch.cluster.metadata.Metadata.Custom>
implements org.opensearch.cluster.metadata.Metadata.Custom
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

    org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable

    org.opensearch.common.io.stream.Writeable.Reader<V extends java.lang.Object>, org.opensearch.common.io.stream.Writeable.Writer<V extends java.lang.Object>
  • Field Summary

    Fields inherited from interface org.opensearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected TestCustomMetadata​(java.lang.String data)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    static <T extends org.opensearch.cluster.metadata.Metadata.Custom>
    T
    fromXContent​(java.util.function.Function<java.lang.String,​org.opensearch.cluster.metadata.Metadata.Custom> supplier, org.opensearch.common.xcontent.XContentParser parser)  
    java.lang.String getData()  
    int hashCode()  
    static org.opensearch.cluster.NamedDiff<org.opensearch.cluster.metadata.Metadata.Custom> readDiffFrom​(java.lang.String name, org.opensearch.common.io.stream.StreamInput in)  
    protected static <T extends TestCustomMetadata>
    T
    readFrom​(java.util.function.Function<java.lang.String,​T> supplier, org.opensearch.common.io.stream.StreamInput in)  
    java.lang.String toString()  
    org.opensearch.common.xcontent.XContentBuilder toXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)  
    void writeTo​(org.opensearch.common.io.stream.StreamOutput out)  

    Methods inherited from class org.opensearch.cluster.AbstractNamedDiffable

    diff, get, readDiffFrom

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensearch.cluster.ClusterState.FeatureAware

    getRequiredFeature

    Methods inherited from interface org.opensearch.cluster.Diffable

    diff

    Methods inherited from interface org.opensearch.cluster.metadata.Metadata.Custom

    context

    Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment

    isFragment

    Methods inherited from interface org.opensearch.common.io.stream.VersionedNamedWriteable

    getMinimalSupportedVersion, getWriteableName
  • Constructor Details

  • Method Details

    • getData

      public java.lang.String getData()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • readFrom

      protected static <T extends TestCustomMetadata> T readFrom​(java.util.function.Function<java.lang.String,​T> supplier, org.opensearch.common.io.stream.StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • readDiffFrom

      public static org.opensearch.cluster.NamedDiff<org.opensearch.cluster.metadata.Metadata.Custom> readDiffFrom​(java.lang.String name, org.opensearch.common.io.stream.StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeTo

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

      public static <T extends org.opensearch.cluster.metadata.Metadata.Custom> T fromXContent​(java.util.function.Function<java.lang.String,​org.opensearch.cluster.metadata.Metadata.Custom> supplier, org.opensearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • toXContent

      public org.opensearch.common.xcontent.XContentBuilder toXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.opensearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object