org.elasticsearch.search
Class Scroll

java.lang.Object
  extended by org.elasticsearch.search.Scroll
All Implemented Interfaces:
Streamable

public class Scroll
extends Object
implements Streamable

A scroll enables scrolling of search request. It holds a keepAlive() time that will control how long to keep the scrolling resources open.


Constructor Summary
Scroll(TimeValue keepAlive)
          Constructs a new scroll of the provided keep alive.
 
Method Summary
 TimeValue keepAlive()
          How long the resources will be kept open to support the scroll request.
 void readFrom(StreamInput in)
           
static Scroll readScroll(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scroll

public Scroll(TimeValue keepAlive)
Constructs a new scroll of the provided keep alive.

Method Detail

keepAlive

public TimeValue keepAlive()
How long the resources will be kept open to support the scroll request.


readScroll

public static Scroll readScroll(StreamInput in)
                         throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.