public class MultiTermVectorsRequest extends ActionRequest 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,
XContentParser parser) |
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(boolean realtime) |
int |
size() |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
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
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, @Nullable XContentParser parser) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest
java.io.IOException
public void ids(java.lang.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.