Streamable
, Writeable
, ToXContent
, ToXContentObject
ResizeResponse
public class CreateIndexResponse extends ShardsAcknowledgedResponse
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Modifier | Constructor | Description |
---|---|---|
protected |
CreateIndexResponse() |
|
protected |
CreateIndexResponse(boolean acknowledged,
boolean shardsAcknowledged,
java.lang.String index) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addCustomFields(XContentBuilder builder,
ToXContent.Params params) |
|
protected static <T extends CreateIndexResponse> |
declareFields(ConstructingObjectParser<T,java.lang.Void> objectParser) |
|
boolean |
equals(java.lang.Object o) |
|
static CreateIndexResponse |
fromXContent(XContentParser parser) |
|
int |
hashCode() |
|
java.lang.String |
index() |
|
boolean |
isShardsAcked() |
Deprecated.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
declareAcknowledgedField, isAcknowledged, readAcknowledged, toXContent, writeAcknowledged
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
declareAcknowledgedAndShardsAcknowledgedFields, isShardsAcknowledged, readShardsAcknowledged, writeShardsAcknowledged
isFragment
remoteAddress, remoteAddress
protected CreateIndexResponse()
protected CreateIndexResponse(boolean acknowledged, boolean shardsAcknowledged, java.lang.String index)
protected static <T extends CreateIndexResponse> void declareFields(ConstructingObjectParser<T,java.lang.Void> objectParser)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class ActionResponse
java.io.IOException
@Deprecated public boolean isShardsAcked()
AcknowledgedResponse.isAcknowledged()
is false, then this also returns false.public java.lang.String index()
protected void addCustomFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
addCustomFields
in class ShardsAcknowledgedResponse
java.io.IOException
public static CreateIndexResponse fromXContent(XContentParser parser)
public boolean equals(java.lang.Object o)
equals
in class ShardsAcknowledgedResponse
public int hashCode()
hashCode
in class ShardsAcknowledgedResponse