public class MultiTermVectorsRequest extends ActionRequest<MultiTermVectorsRequest> implements Iterable<TermVectorsRequest>, CompositeIndicesRequest, RealtimeRequest
TransportRequest.Empty
headers
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, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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()
CompositeIndicesRequest
subRequests
in interface CompositeIndicesRequest
public Iterator<TermVectorsRequest> iterator()
iterator
in interface Iterable<TermVectorsRequest>
public boolean isEmpty()
public List<TermVectorsRequest> getRequests()
public void add(TermVectorsRequest template, BytesReference data) throws Exception
Exception
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<MultiTermVectorsRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<MultiTermVectorsRequest>
IOException
public void ids(String[] ids)
public int size()
public MultiTermVectorsRequest realtime(Boolean realtime)
realtime
in interface RealtimeRequest
realtime
- 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–2016. All rights reserved.