|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.get.GetResponse
public class GetResponse
The response of a get action.
GetRequest
,
Client.get(GetRequest)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Method Summary | |
---|---|
boolean |
exists()
Does the document exists. |
GetField |
field(java.lang.String name)
|
java.util.Map<java.lang.String,GetField> |
fields()
|
java.util.Map<java.lang.String,GetField> |
getFields()
|
java.lang.String |
getId()
The id of the document. |
java.lang.String |
getIndex()
The index the document was fetched from. |
java.util.Map<java.lang.String,java.lang.Object> |
getSource()
|
java.lang.String |
getType()
The type of the document. |
long |
getVersion()
The version of the doc. |
java.lang.String |
id()
The id of the document. |
java.lang.String |
index()
The index the document was fetched from. |
boolean |
isExists()
Does the document exists. |
boolean |
isSourceEmpty()
Is the source empty (not available) or not. |
java.util.Iterator<GetField> |
iterator()
|
void |
readFrom(StreamInput in)
|
byte[] |
source()
The source of the document if exists. |
java.util.Map<java.lang.String,java.lang.Object> |
sourceAsMap()
The source of the document (As a map). |
java.lang.String |
sourceAsString()
The source of the document (as a string). |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
java.lang.String |
type()
The type of the document. |
long |
version()
The version of the doc. |
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean exists()
public boolean isExists()
public java.lang.String index()
public java.lang.String getIndex()
public java.lang.String type()
public java.lang.String getType()
public java.lang.String id()
public java.lang.String getId()
public long version()
public long getVersion()
public byte[] source()
public boolean isSourceEmpty()
public java.lang.String sourceAsString()
public java.util.Map<java.lang.String,java.lang.Object> sourceAsMap() throws ElasticSearchParseException
ElasticSearchParseException
public java.util.Map<java.lang.String,java.lang.Object> getSource()
public java.util.Map<java.lang.String,GetField> fields()
public java.util.Map<java.lang.String,GetField> getFields()
public GetField field(java.lang.String name)
public java.util.Iterator<GetField> iterator()
iterator
in interface java.lang.Iterable<GetField>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |