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:
java.lang.Iterable<TermVectorsRequest>
,CompositeIndicesRequest
,RealtimeRequest
,Writeable
,TaskAwareRequest
public class MultiTermVectorsRequest extends ActionRequest implements java.lang.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
Modifier and Type Method 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()
MultiTermVectorsRequest
realtime(boolean realtime)
int
size()
ActionRequestValidationException
validate()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.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 org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
MultiTermVectorsRequest
- Throws:
java.io.IOException
-
MultiTermVectorsRequest
public MultiTermVectorsRequest()
-
-
Method Details
-
add
-
add
public MultiTermVectorsRequest add(java.lang.String index, @Nullable java.lang.String type, java.lang.String id) -
validate
- Specified by:
validate
in classActionRequest
-
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<TermVectorsRequest>
-
isEmpty
public boolean isEmpty() -
getRequests
-
add
public void add(TermVectorsRequest template, @Nullable XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
java.io.IOException
-
ids
public void ids(java.lang.String[] ids) -
size
public int size() -
realtime
- Specified by:
realtime
in interfaceRealtimeRequest
- Parameters:
realtime
- Controls whether this request should be realtime by reading from the translog.
-