public class MultiTermVectorsRequest extends ActionRequest<MultiTermVectorsRequest> implements java.lang.Iterable<TermVectorsRequest>, CompositeIndicesRequest, RealtimeRequest
TransportRequest.Empty
Constructor and Description |
---|
MultiTermVectorsRequest() |
Modifier and Type | Method and Description |
---|---|
MultiTermVectorsRequest |
add(java.lang.String index,
java.lang.String type,
java.lang.String id) |
MultiTermVectorsRequest |
add(TermVectorsRequest termVectorsRequest) |
void |
add(TermVectorsRequest template,
BytesReference data) |
java.util.List<TermVectorsRequest> |
getRequests() |
void |
ids(java.lang.String[] ids) |
boolean |
isEmpty() |
java.util.Iterator<TermVectorsRequest> |
iterator() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
MultiTermVectorsRequest |
realtime(java.lang.Boolean realtime) |
int |
size() |
java.util.List<? extends IndicesRequest> |
subRequests()
Returns the subrequests that a composite request is composed of
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
createTask, getDescription
remoteAddress, remoteAddress
public MultiTermVectorsRequest add(TermVectorsRequest termVectorsRequest)
public MultiTermVectorsRequest add(java.lang.String index, @Nullable java.lang.String type, java.lang.String id)
public ActionRequestValidationException validate()
validate
in class ActionRequest<MultiTermVectorsRequest>
public java.util.List<? extends IndicesRequest> subRequests()
CompositeIndicesRequest
subRequests
in interface CompositeIndicesRequest
public java.util.Iterator<TermVectorsRequest> iterator()
iterator
in interface java.lang.Iterable<TermVectorsRequest>
public boolean isEmpty()
public java.util.List<TermVectorsRequest> getRequests()
public void add(TermVectorsRequest template, BytesReference data) throws java.lang.Exception
java.lang.Exception
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionRequest<MultiTermVectorsRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest<MultiTermVectorsRequest>
java.io.IOException
public void ids(java.lang.String[] ids)
public int size()
public MultiTermVectorsRequest realtime(java.lang.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.