public static final class QueryParams.Builder extends Object
QueryParams
builder static inner class.Modifier and Type | Method and Description |
---|---|
QueryParams |
build()
Returns a
QueryParams built from the parameters previously set. |
QueryParams.Builder |
from(int from)
Sets the
from and returns a reference to this Builder enabling method chaining. |
QueryParams.Builder |
indexName(String indexName)
Sets the
indexName and returns a reference to this Builder enabling method
chaining. |
QueryParams.Builder |
pageLength(int pageLength)
Sets the
pageLength and returns a reference to this Builder enabling method
chaining. |
QueryParams.Builder |
sortField(String sortField)
Sets the
sortField and returns a reference to this Builder enabling method
chaining. |
QueryParams.Builder |
trackTotalHits(boolean trackTotalHits)
Sets the
trackTotalHits and returns a reference to this Builder enabling method
chaining. |
public QueryParams.Builder sortField(String sortField)
sortField
and returns a reference to this Builder enabling method
chaining.sortField
- The sortField
to set.public QueryParams.Builder from(int from)
from
and returns a reference to this Builder enabling method chaining.from
- The from
to set.public QueryParams.Builder pageLength(int pageLength)
pageLength
and returns a reference to this Builder enabling method
chaining.pageLength
- The pageLength
to set.public QueryParams.Builder trackTotalHits(boolean trackTotalHits)
trackTotalHits
and returns a reference to this Builder enabling method
chaining.trackTotalHits
- The trackTotalHits
to set.public QueryParams build()
QueryParams
built from the parameters previously set.QueryParams
built with parameters of this QueryParams.Builder
public QueryParams.Builder indexName(String indexName)
indexName
and returns a reference to this Builder enabling method
chaining.indexName
- The indexName
to set.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.