public class SearchScrollRequest extends ActionRequest implements ToXContentObject
TransportRequest.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
SearchScrollRequest() |
SearchScrollRequest(java.lang.String scrollId) |
| Modifier and Type | Method and Description |
|---|---|
Task |
createTask(long id,
java.lang.String type,
java.lang.String action,
TaskId parentTaskId)
Returns the task object that should be used to keep track of the processing of the request.
|
boolean |
equals(java.lang.Object o) |
void |
fromXContent(XContentParser parser)
Parse a search scroll request from a request body provided through the REST layer.
|
java.lang.String |
getDescription()
Returns optional description of the request to be displayed by the task manager
|
int |
hashCode() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
Scroll |
scroll()
If set, will enable scrolling of the search request.
|
SearchScrollRequest |
scroll(Scroll scroll)
If set, will enable scrolling of the search request.
|
SearchScrollRequest |
scroll(java.lang.String keepAlive)
If set, will enable scrolling of the search request for the specified timeout.
|
SearchScrollRequest |
scroll(TimeValue keepAlive)
If set, will enable scrolling of the search request for the specified timeout.
|
java.lang.String |
scrollId()
The scroll id used to scroll the search.
|
SearchScrollRequest |
scrollId(java.lang.String scrollId) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentsetParentTaskpublic SearchScrollRequest()
public SearchScrollRequest(java.lang.String scrollId)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String scrollId()
public SearchScrollRequest scrollId(java.lang.String scrollId)
public Scroll scroll()
public SearchScrollRequest scroll(Scroll scroll)
public SearchScrollRequest scroll(TimeValue keepAlive)
public SearchScrollRequest scroll(java.lang.String keepAlive)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionRequestjava.io.IOExceptionpublic Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId)
TaskAwareRequestcreateTask in interface TaskAwareRequestpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDescription()
TaskAwareRequestgetDescription in interface TaskAwareRequestpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic void fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException