|
|||||||||
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)
Method Summary | |
---|---|
boolean |
exists()
Does the document exists. |
GetField |
field(java.lang.String name)
|
java.util.Map<java.lang.String,GetField> |
fields()
|
java.lang.String |
id()
The id of the document. |
java.lang.String |
index()
The index the document was fetched from. |
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). |
java.lang.String |
type()
The type of the document. |
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 java.lang.String index()
public java.lang.String type()
public java.lang.String id()
public byte[] source()
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,GetField> fields()
public GetField field(java.lang.String name)
public java.util.Iterator<GetField> iterator()
iterator
in interface java.lang.Iterable<GetField>
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 |