Class SearchScrollRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class SearchScrollRequest extends ActionRequest implements org.elasticsearch.common.xcontent.ToXContentObject
  • Constructor Details

    • SearchScrollRequest

      public SearchScrollRequest()
    • SearchScrollRequest

      public SearchScrollRequest( scrollId)
    • SearchScrollRequest

      public SearchScrollRequest(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ActionRequest
      Throws:
    • validate

      Specified by:
      validate in class ActionRequest
    • scrollId

      public  scrollId()
      The scroll id used to scroll the search.
    • scrollId

      public  scrollId)
    • parseScrollId

      public ParsedScrollId parseScrollId()
    • scroll

      public Scroll scroll()
      If set, will enable scrolling of the search request.
    • scroll

      public SearchScrollRequest scroll(Scroll scroll)
      If set, will enable scrolling of the search request.
    • scroll

      public SearchScrollRequest scroll(org.elasticsearch.core.TimeValue keepAlive)
      If set, will enable scrolling of the search request for the specified timeout.
    • scroll

      public  keepAlive)
      If set, will enable scrolling of the search request for the specified timeout.
    • createTask

      public Task createTask(long id,  type,  action, TaskId parentTaskId, <,​> headers)
      Description copied from interface: TaskAwareRequest
      Returns the task object that should be used to keep track of the processing of the request.
      Specified by:
      createTask in interface TaskAwareRequest
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
      toString in class TransportRequest
    • getDescription

      public  getDescription()
      Description copied from interface: TaskAwareRequest
      Returns optional description of the request to be displayed by the task manager
      Specified by:
      getDescription in interface TaskAwareRequest
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • fromXContent

      public void fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws
      Parse 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: