Package org.elasticsearch.test
Class TestCustomMetaData
- java.lang.Object
-
- org.elasticsearch.cluster.AbstractNamedDiffable<MetaData.Custom>
-
- org.elasticsearch.test.TestCustomMetaData
-
- All Implemented Interfaces:
ClusterState.FeatureAware,Diffable<MetaData.Custom>,MetaData.Custom,NamedDiffable<MetaData.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable,ToXContent,ToXContentFragment
public abstract class TestCustomMetaData extends AbstractNamedDiffable<MetaData.Custom> implements MetaData.Custom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTestCustomMetaData(java.lang.String data)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static <T extends MetaData.Custom>
TfromXContent(java.util.function.Function<java.lang.String,MetaData.Custom> supplier, XContentParser parser)java.lang.StringgetData()inthashCode()static NamedDiff<MetaData.Custom>readDiffFrom(java.lang.String name, StreamInput in)protected static <T extends TestCustomMetaData>
TreadFrom(java.util.function.Function<java.lang.String,T> supplier, StreamInput in)java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)-
Methods inherited from class org.elasticsearch.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.elasticsearch.cluster.ClusterState.FeatureAware
getRequiredFeature
-
Methods inherited from interface org.elasticsearch.cluster.metadata.MetaData.Custom
context
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
-
-
-
Method Detail
-
getData
public java.lang.String getData()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
readFrom
protected static <T extends TestCustomMetaData> T readFrom(java.util.function.Function<java.lang.String,T> supplier, StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readDiffFrom
public static NamedDiff<MetaData.Custom> readDiffFrom(java.lang.String name, StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
-
fromXContent
public static <T extends MetaData.Custom> T fromXContent(java.util.function.Function<java.lang.String,MetaData.Custom> supplier, XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-