Package org.elasticsearch.search
Class Scroll
java.lang.Object
org.elasticsearch.search.Scroll
- All Implemented Interfaces:
Writeable
public final class Scroll extends java.lang.Object implements 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
Constructors Constructor Description Scroll(StreamInput in)Scroll(TimeValue keepAlive)Constructs a new scroll of the provided keep alive. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()TimeValuekeepAlive()How long the resources will be kept open to support the scroll request.java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
Method Details
-
keepAlive
How long the resources will be kept open to support the scroll request. -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
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
-