Package org.opensearch.script.mustache
Class MultiSearchTemplateRequest
java.lang.Object
org.opensearch.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.script.mustache.MultiSearchTemplateRequest
- All Implemented Interfaces:
CompositeIndicesRequest,Writeable,TaskAwareRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(SearchTemplateRequest request) Add a search template request to execute.add(SearchTemplateRequestBuilder request) Add a search template request to execute.booleaninthashCode()indicesOptions(IndicesOptions indicesOptions) intReturns the amount of search requests specified in this multi search requests are allowed to be ran concurrently.maxConcurrentSearchRequests(int maxConcurrentSearchRequests) Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.requests()validate()static byte[]writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.opensearch.core.xcontent.XContent xContent) voidwriteTo(StreamOutput out) Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.opensearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
MultiSearchTemplateRequest
public MultiSearchTemplateRequest() -
MultiSearchTemplateRequest
- Throws:
IOException
-
-
Method Details
-
add
Add a search template request to execute. Note, the order is important, the search response will be returned in the same order as the search requests. -
add
Add a search template request to execute. Note, the order is important, the search response will be returned in the same order as the search requests. -
maxConcurrentSearchRequests
public int maxConcurrentSearchRequests()Returns the amount of search requests specified in this multi search requests are allowed to be ran concurrently. -
maxConcurrentSearchRequests
Sets how many search requests specified in this multi search requests are allowed to be ran concurrently. -
requests
-
validate
- Specified by:
validatein classActionRequest
-
indicesOptions
-
indicesOptions
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
writeMultiLineFormat
public static byte[] writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.opensearch.core.xcontent.XContent xContent) throws IOException - Throws:
IOException
-