Class MultiTermVectorsRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.action.termvectors.MultiTermVectorsRequest
-
- All Implemented Interfaces:
Iterable<TermVectorsRequest>,CompositeIndicesRequest,RealtimeRequest,Writeable,TaskAwareRequest
public class MultiTermVectorsRequest extends ActionRequest implements Iterable<TermVectorsRequest>, CompositeIndicesRequest, RealtimeRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description MultiTermVectorsRequest()MultiTermVectorsRequest(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTermVectorsRequestadd(String index, String type, String id)MultiTermVectorsRequestadd(TermVectorsRequest termVectorsRequest)voidadd(TermVectorsRequest template, XContentParser parser)List<TermVectorsRequest>getRequests()voidids(String[] ids)booleanisEmpty()Iterator<TermVectorsRequest>iterator()MultiTermVectorsRequestrealtime(boolean realtime)intsize()ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
MultiTermVectorsRequest
public MultiTermVectorsRequest(StreamInput in) throws IOException
- Throws:
IOException
-
MultiTermVectorsRequest
public MultiTermVectorsRequest()
-
-
Method Detail
-
add
public MultiTermVectorsRequest add(TermVectorsRequest termVectorsRequest)
-
add
public MultiTermVectorsRequest add(String index, @Nullable String type, String id)
-
validate
public ActionRequestValidationException validate()
- Specified by:
validatein classActionRequest
-
iterator
public Iterator<TermVectorsRequest> iterator()
- Specified by:
iteratorin interfaceIterable<TermVectorsRequest>
-
isEmpty
public boolean isEmpty()
-
getRequests
public List<TermVectorsRequest> getRequests()
-
add
public void add(TermVectorsRequest template, @Nullable XContentParser parser) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
ids
public void ids(String[] ids)
-
size
public int size()
-
realtime
public MultiTermVectorsRequest realtime(boolean realtime)
- Specified by:
realtimein interfaceRealtimeRequest- Parameters:
realtime- Controls whether this request should be realtime by reading from the translog.
-
-