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
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
public abstract class TestCustomMetadata
extends AbstractNamedDiffable<Metadata.Custom>
implements 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
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <T extends Metadata.Custom>
TfromXContent
(Function<String, Metadata.Custom> supplier, org.elasticsearch.xcontent.XContentParser parser) getData()
int
hashCode()
static NamedDiff<Metadata.Custom>
readDiffFrom
(String name, StreamInput in) protected static <T extends TestCustomMetadata>
TreadFrom
(Function<String, T> supplier, StreamInput in) toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.xcontent.ToXContentFragment
isFragment
Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Constructor Details
-
TestCustomMetadata
-
-
Method Details
-
getData
-
equals
-
hashCode
public int hashCode() -
readFrom
protected static <T extends TestCustomMetadata> T readFrom(Function<String, T> supplier, StreamInput in) throws IOException- Throws:
IOException
-
readDiffFrom
public static NamedDiff<Metadata.Custom> readDiffFrom(String name, StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
fromXContent
public static <T extends Metadata.Custom> T fromXContent(Function<String, Metadata.Custom> 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:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
toString
-