public static class FullBucketRead.Builder extends Object
Constructor and Description |
---|
Builder(Namespace namespace)
Construct a Builder for a FullBucketRead with a cover context.
|
Builder(Namespace namespace,
byte[] coverageContext)
Construct a Builder for a FullBucketRead with a cover context.
|
Modifier and Type | Method and Description |
---|---|
FullBucketRead |
build()
Construct the query.
|
FullBucketRead.Builder |
withContinuation(BinaryValue continuation)
Set the continuation for this query.
|
FullBucketRead.Builder |
withMaxResults(Integer maxResults)
Set the maximum number of results returned by the query.
|
FullBucketRead.Builder |
withPaginationSort(boolean orderByKey)
Set whether to sort the results of a non-paginated 2i query.
|
FullBucketRead.Builder |
withReturnBody(boolean returnBody)
Return the object (including any siblings).
|
public Builder(Namespace namespace)
Note that this command mustn't be used without coverage context for querying buckets that contain a big amount of data.
public Builder(Namespace namespace, byte[] coverageContext)
Note that in case when query executed on the Riak node other than the one specified by the coverage context, nothing will be returned.
public FullBucketRead.Builder withReturnBody(boolean returnBody)
returnBody
- true to return the object.public FullBucketRead.Builder withContinuation(BinaryValue continuation)
The continuation is returned by a previous paginated query.
continuation
- public FullBucketRead.Builder withMaxResults(Integer maxResults)
maxResults
- the number of results.public FullBucketRead.Builder withPaginationSort(boolean orderByKey)
Setting this to true will sort the results in Riak before returning them.
Note that this is not recommended for queries that could return a large result set; the overhead in Riak is substantial.
orderByKey
- true to sort the results, false to return as-is.public FullBucketRead build()
Copyright © 2016. All rights reserved.