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.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 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.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T extends org.opensearch.cluster.metadata.Metadata.Custom>
TfromXContent(Function<String, org.opensearch.cluster.metadata.Metadata.Custom> supplier, org.opensearch.core.xcontent.XContentParser parser) getData()inthashCode()static org.opensearch.cluster.NamedDiff<org.opensearch.cluster.metadata.Metadata.Custom> readDiffFrom(String name, org.opensearch.core.common.io.stream.StreamInput in) protected static <T extends TestCustomMetadata>
TtoString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.cluster.AbstractNamedDiffable
diff, get, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.cluster.ClusterState.FeatureAware
getRequiredFeatureMethods inherited from interface org.opensearch.cluster.Diffable
diffMethods inherited from interface org.opensearch.cluster.metadata.Metadata.Custom
contextMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.opensearch.core.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Constructor Details
-
TestCustomMetadata
-
-
Method Details
-
getData
-
equals
-
hashCode
-
readFrom
protected static <T extends TestCustomMetadata> T readFrom(Function<String, T> supplier, org.opensearch.core.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
readDiffFrom
public static org.opensearch.cluster.NamedDiff<org.opensearch.cluster.metadata.Metadata.Custom> readDiffFrom(String name, org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
fromXContent
public static <T extends org.opensearch.cluster.metadata.Metadata.Custom> T fromXContent(Function<String, org.opensearch.cluster.metadata.Metadata.Custom> supplier, 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:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
toString
-