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(String scrollId)
    • SearchScrollRequest

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

    • writeTo

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

      Specified by:
      validate in class ActionRequest
    • scrollId

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

      public SearchScrollRequest scrollId(String 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 SearchScrollRequest scroll(String keepAlive)
      If set, will enable scrolling of the search request for the specified timeout.
    • createTask

      public Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public String 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 IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

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