Class CreateIndexResponse
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.action.support.master.AcknowledgedResponse
org.opensearch.action.support.master.ShardsAcknowledgedResponse
org.opensearch.action.admin.indices.create.CreateIndexResponse
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentObject
- Direct Known Subclasses:
ResizeResponse
A response for a create index action.
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse
org.opensearch.core.transport.TransportResponse.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.action.support.master.ShardsAcknowledgedResponse
SHARDS_ACKNOWLEDGED
Fields inherited from class org.opensearch.action.support.master.AcknowledgedResponse
acknowledged
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreateIndexResponse
(boolean acknowledged, boolean shardsAcknowledged, String index) protected
CreateIndexResponse
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCustomFields
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) protected static <T extends CreateIndexResponse>
voiddeclareFields
(org.opensearch.core.xcontent.ConstructingObjectParser<T, Void> objectParser) boolean
static CreateIndexResponse
fromXContent
(org.opensearch.core.xcontent.XContentParser parser) int
hashCode()
index()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.master.ShardsAcknowledgedResponse
declareAcknowledgedAndShardsAcknowledgedFields, isShardsAcknowledged, writeShardsAcknowledged
Methods inherited from class org.opensearch.action.support.master.AcknowledgedResponse
declareAcknowledgedField, isAcknowledged, toXContent
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
CreateIndexResponse
protected CreateIndexResponse(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
CreateIndexResponse
-
-
Method Details
-
declareFields
protected static <T extends CreateIndexResponse> void declareFields(org.opensearch.core.xcontent.ConstructingObjectParser<T, Void> objectParser) -
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classAcknowledgedResponse
- Throws:
IOException
-
index
-
addCustomFields
protected void addCustomFields(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Overrides:
addCustomFields
in classShardsAcknowledgedResponse
- Throws:
IOException
-
fromXContent
-
equals
- Overrides:
equals
in classShardsAcknowledgedResponse
-
hashCode
public int hashCode()- Overrides:
hashCode
in classShardsAcknowledgedResponse
-