public class MultiTermVectorsRequest extends ActionRequest<MultiTermVectorsRequest> implements Iterable<TermVectorsRequest>, CompositeIndicesRequest, RealtimeRequest
TransportRequest.Emptyheaders| Constructor and Description |
|---|
MultiTermVectorsRequest() |
| Modifier and Type | Method and Description |
|---|---|
MultiTermVectorsRequest |
add(String index,
String type,
String id) |
MultiTermVectorsRequest |
add(TermVectorsRequest termVectorsRequest) |
void |
add(TermVectorsRequest template,
BytesReference data) |
List<TermVectorsRequest> |
getRequests() |
void |
ids(String[] ids) |
boolean |
isEmpty() |
Iterator<TermVectorsRequest> |
iterator() |
void |
readFrom(StreamInput in) |
MultiTermVectorsRequest |
realtime(Boolean realtime) |
int |
size() |
List<? extends IndicesRequest> |
subRequests()
Returns the subrequests that a composite request is composed of
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic MultiTermVectorsRequest add(TermVectorsRequest termVectorsRequest)
public MultiTermVectorsRequest add(String index, @Nullable String type, String id)
public ActionRequestValidationException validate()
validate in class ActionRequest<MultiTermVectorsRequest>public List<? extends IndicesRequest> subRequests()
CompositeIndicesRequestsubRequests in interface CompositeIndicesRequestpublic Iterator<TermVectorsRequest> iterator()
iterator in interface Iterable<TermVectorsRequest>public boolean isEmpty()
public List<TermVectorsRequest> getRequests()
public void add(TermVectorsRequest template, BytesReference data) throws Exception
Exceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<MultiTermVectorsRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<MultiTermVectorsRequest>IOExceptionpublic void ids(String[] ids)
public int size()
public MultiTermVectorsRequest realtime(Boolean realtime)
realtime in interface RealtimeRequestrealtime - Controls whether this request should be realtime by reading from the translog. If null
is specified then whether the operation will be realtime depends on the api of the concrete request
subclass.Copyright © 2009–2017. All rights reserved.