|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.BaseRequestBuilder<GetRequest,GetResponse> org.elasticsearch.action.get.GetRequestBuilder
public class GetRequestBuilder
A get document action request builder.
Field Summary |
---|
Fields inherited from class org.elasticsearch.action.support.BaseRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
GetRequestBuilder(Client client)
|
|
GetRequestBuilder(Client client,
String index)
|
Method Summary | |
---|---|
protected void |
doExecute(ActionListener<GetResponse> listener)
|
GetRequestBuilder |
setFields(String... fields)
Explicitly specify the fields that will be returned. |
GetRequestBuilder |
setId(String id)
Sets the id of the document to fetch. |
GetRequestBuilder |
setIndex(String index)
Sets the index of the document to fetch. |
GetRequestBuilder |
setListenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
GetRequestBuilder |
setOperationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally. |
GetRequestBuilder |
setParent(String parent)
Sets the parent id of this document. |
GetRequestBuilder |
setPreference(String preference)
Sets the preference to execute the search. |
GetRequestBuilder |
setRealtime(Boolean realtime)
|
GetRequestBuilder |
setRefresh(boolean refresh)
Should a refresh be executed before this get operation causing the operation to return the latest value. |
GetRequestBuilder |
setRouting(String routing)
Controls the shard routing of the request. |
GetRequestBuilder |
setType(String type)
Sets the type of the document to fetch. |
Methods inherited from class org.elasticsearch.action.support.BaseRequestBuilder |
---|
execute, execute, request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetRequestBuilder(Client client)
public GetRequestBuilder(Client client, @Nullable String index)
Method Detail |
---|
public GetRequestBuilder setIndex(String index)
public GetRequestBuilder setType(@Nullable String type)
public GetRequestBuilder setId(String id)
public GetRequestBuilder setParent(String parent)
public GetRequestBuilder setRouting(String routing)
public GetRequestBuilder setPreference(String preference)
public GetRequestBuilder setFields(String... fields)
public GetRequestBuilder setRefresh(boolean refresh)
public GetRequestBuilder setRealtime(Boolean realtime)
public GetRequestBuilder setListenerThreaded(boolean threadedListener)
public GetRequestBuilder setOperationThreaded(boolean threadedOperation)
protected void doExecute(ActionListener<GetResponse> listener)
doExecute
in class BaseRequestBuilder<GetRequest,GetResponse>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |