Package org.elasticsearch.search
Class Scroll
java.lang.Object
org.elasticsearch.search.Scroll
- All Implemented Interfaces:
Writeable
A scroll enables scrolling of search request. It holds a
keepAlive() time that
will control how long to keep the scrolling resources open.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionScroll(StreamInput in)Scroll(org.elasticsearch.core.TimeValue keepAlive)Constructs a new scroll of the provided keep alive. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()org.elasticsearch.core.TimeValueHow long the resources will be kept open to support the scroll request.toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
Scroll
- Throws:
IOException
-
Scroll
public Scroll(org.elasticsearch.core.TimeValue keepAlive)Constructs a new scroll of the provided keep alive.
-
-
Method Details
-
keepAlive
public org.elasticsearch.core.TimeValue keepAlive()How long the resources will be kept open to support the scroll request. -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-