Package org.elasticsearch.test
Class TestCustomMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom>
org.elasticsearch.test.TestCustomMetadata
- All Implemented Interfaces:
org.elasticsearch.cluster.Diffable<org.elasticsearch.cluster.metadata.Metadata.Custom>,org.elasticsearch.cluster.metadata.Metadata.Custom,org.elasticsearch.cluster.NamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom>,org.elasticsearch.common.io.stream.NamedWriteable,org.elasticsearch.common.io.stream.VersionedNamedWriteable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public abstract class TestCustomMetadata
extends org.elasticsearch.cluster.AbstractNamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom>
implements org.elasticsearch.cluster.metadata.Metadata.Custom
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T extends org.elasticsearch.cluster.metadata.Metadata.Custom>
TfromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) getData()inthashCode()static org.elasticsearch.cluster.NamedDiff<org.elasticsearch.cluster.metadata.Metadata.Custom>readDiffFrom(String name, org.elasticsearch.common.io.stream.StreamInput in) static <T extends TestCustomMetadata>
TtoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out) Methods inherited from class org.elasticsearch.cluster.AbstractNamedDiffable
diff, get, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.Diffable
diffMethods inherited from interface org.elasticsearch.cluster.metadata.Metadata.Custom
context, isRestorableMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Constructor Details
-
TestCustomMetadata
-
-
Method Details
-
getData
-
equals
-
hashCode
public int hashCode() -
readFrom
public static <T extends TestCustomMetadata> T readFrom(Function<String, T> supplier, org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
readDiffFrom
public static org.elasticsearch.cluster.NamedDiff<org.elasticsearch.cluster.metadata.Metadata.Custom> readDiffFrom(String name, org.elasticsearch.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
fromXContent
public static <T extends org.elasticsearch.cluster.metadata.Metadata.Custom> T fromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
toString
-