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 protected
TestCustomMetaData(java.lang.String data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static <T extends MetaData.Custom>
TfromXContent(java.util.function.Function<java.lang.String,MetaData.Custom> supplier, XContentParser parser)
java.lang.String
getData()
int
hashCode()
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.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-