public class UpdateResponse extends ActionWriteResponse
ActionWriteResponse.ShardInfoTransportResponse.EmptyEMPTYheaders| コンストラクタと説明 |
|---|
UpdateResponse() |
UpdateResponse(ActionWriteResponse.ShardInfo shardInfo,
String index,
String type,
String id,
long version,
boolean created) |
UpdateResponse(String index,
String type,
String id,
long version,
boolean created)
Constructor to be used when a update didn't translate in a write.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
GetResult |
getGetResult() |
String |
getId()
The id of the document indexed.
|
String |
getIndex()
The index the document was indexed into.
|
String |
getType()
The type of the document indexed.
|
long |
getVersion()
Returns the current version of the doc indexed.
|
boolean |
isCreated()
Returns true if document was created due to an UPSERT operation
|
void |
readFrom(StreamInput in) |
void |
setGetResult(GetResult getResult) |
void |
writeTo(StreamOutput out) |
getShardInfo, setShardInforemoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic UpdateResponse()
public UpdateResponse(String index, String type, String id, long version, boolean created)
public UpdateResponse(ActionWriteResponse.ShardInfo shardInfo, String index, String type, String id, long version, boolean created)
public String getIndex()
public String getType()
public String getId()
public long getVersion()
public void setGetResult(GetResult getResult)
public GetResult getGetResult()
public boolean isCreated()
public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 ActionWriteResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 ActionWriteResponseIOExceptionCopyright © 2009–2016. All rights reserved.