public class GetIndexedScriptRequestBuilder extends ActionRequestBuilder<GetIndexedScriptRequest,GetIndexedScriptResponse,GetIndexedScriptRequestBuilder,Client>
client, request
Constructor and Description |
---|
GetIndexedScriptRequestBuilder(Client client) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ActionListener<GetIndexedScriptResponse> listener) |
GetIndexedScriptRequestBuilder |
setId(String id)
Sets the id of the document to fetch.
|
GetIndexedScriptRequestBuilder |
setScriptLang(String type)
Sets the type of the document to fetch.
|
GetIndexedScriptRequestBuilder |
setVersion(long version)
Sets the version, which will cause the get operation to only be performed if a matching
version exists and no changes happened on the doc since then.
|
GetIndexedScriptRequestBuilder |
setVersionType(VersionType versionType)
Sets the versioning type.
|
execute, execute, get, get, get, putHeader, request, setListenerThreaded
public GetIndexedScriptRequestBuilder(Client client)
public GetIndexedScriptRequestBuilder setScriptLang(@Nullable String type)
public GetIndexedScriptRequestBuilder setId(String id)
public GetIndexedScriptRequestBuilder setVersion(long version)
public GetIndexedScriptRequestBuilder setVersionType(VersionType versionType)
VersionType.INTERNAL
.protected void doExecute(ActionListener<GetIndexedScriptResponse> listener)
doExecute
in class ActionRequestBuilder<GetIndexedScriptRequest,GetIndexedScriptResponse,GetIndexedScriptRequestBuilder,Client>
Copyright © 2009–2015. All rights reserved.