java.lang.Object
org.elasticsearch.xpack.core.action.util.PageParams
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Helper class collecting options for pagination in a search
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<PageParams, Void> static final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PageParamsbooleanstatic PageParamsfromXContent(XContentParser contentParser) intgetFrom()intgetSize()inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PAGE
-
FROM
-
SIZE
-
DEFAULT_FROM
public static final int DEFAULT_FROM- See Also:
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
-
PARSER
-
-
Constructor Details
-
PageParams
- Throws:
IOException
-
PageParams
public PageParams() -
PageParams
public PageParams(int from, int size)
-
-
Method Details
-
defaultParams
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getFrom
public int getFrom() -
getSize
public int getSize() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
fromXContent
-