Package org.elasticsearch.test
Class TestProjectCustomMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<Metadata.ProjectCustom>
org.elasticsearch.test.TestProjectCustomMetadata
- All Implemented Interfaces:
Diffable<Metadata.ProjectCustom>,Metadata.MetadataCustom<Metadata.ProjectCustom>,Metadata.ProjectCustom,NamedDiffable<Metadata.ProjectCustom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
public abstract class TestProjectCustomMetadata
extends AbstractNamedDiffable<Metadata.ProjectCustom>
implements Metadata.ProjectCustom
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T extends Metadata.ProjectCustom>
TfromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) getData()inthashCode()static NamedDiff<Metadata.ProjectCustom> readDiffFrom(String name, StreamInput in) static <T extends TestProjectCustomMetadata>
TreadFrom(Function<String, T> supplier, StreamInput in) toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) voidwriteTo(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.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.MetadataCustom
context, isRestorableMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName, supportsVersion
-
Constructor Details
-
TestProjectCustomMetadata
-
-
Method Details
-
getData
-
equals
-
hashCode
public int hashCode() -
readFrom
public static <T extends TestProjectCustomMetadata> T readFrom(Function<String, T> supplier, StreamInput in) throws IOException- Throws:
IOException
-
readDiffFrom
public static NamedDiff<Metadata.ProjectCustom> readDiffFrom(String name, StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
public static <T extends Metadata.ProjectCustom> T fromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
toString
-