Package org.elasticsearch.action.search
Class SearchScrollRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.search.SearchScrollRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject,TaskAwareRequest
public class SearchScrollRequest extends ActionRequest implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description SearchScrollRequest()SearchScrollRequest(java.lang.String scrollId)SearchScrollRequest(StreamInput in) -
Method Summary
Modifier and Type Method Description TaskcreateTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)Returns the task object that should be used to keep track of the processing of the request.booleanequals(java.lang.Object o)voidfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)Parse a search scroll request from a request body provided through the REST layer.java.lang.StringgetDescription()Returns optional description of the request to be displayed by the task managerinthashCode()ParsedScrollIdparseScrollId()Scrollscroll()If set, will enable scrolling of the search request.SearchScrollRequestscroll(java.lang.String keepAlive)If set, will enable scrolling of the search request for the specified timeout.SearchScrollRequestscroll(org.elasticsearch.common.unit.TimeValue keepAlive)If set, will enable scrolling of the search request for the specified timeout.SearchScrollRequestscroll(Scroll scroll)If set, will enable scrolling of the search request.java.lang.StringscrollId()The scroll id used to scroll the search.SearchScrollRequestscrollId(java.lang.String scrollId)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
SearchScrollRequest
public SearchScrollRequest() -
SearchScrollRequest
public SearchScrollRequest(java.lang.String scrollId) -
SearchScrollRequest
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
java.io.IOException
-
validate
- Specified by:
validatein classActionRequest
-
scrollId
public java.lang.String scrollId()The scroll id used to scroll the search. -
scrollId
-
parseScrollId
-
scroll
If set, will enable scrolling of the search request. -
scroll
If set, will enable scrolling of the search request. -
scroll
If set, will enable scrolling of the search request for the specified timeout. -
scroll
If set, will enable scrolling of the search request for the specified timeout. -
createTask
public Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)Description copied from interface:TaskAwareRequestReturns the task object that should be used to keep track of the processing of the request.- Specified by:
createTaskin interfaceTaskAwareRequest
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getDescription
public java.lang.String getDescription()Description copied from interface:TaskAwareRequestReturns optional description of the request to be displayed by the task manager- Specified by:
getDescriptionin interfaceTaskAwareRequest
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
fromXContent
public void fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOExceptionParse a search scroll request from a request body provided through the REST layer. Values that are already be set and are also found while parsing will be overridden.- Throws:
java.io.IOException
-