public static class SecondaryIndexQueryOperation.Builder extends Object
Constructor and Description |
---|
Builder(SecondaryIndexQueryOperation.Query query)
Constructs a builder for a QueryOperation.
|
Modifier and Type | Method and Description |
---|---|
SecondaryIndexQueryOperation |
build()
Construct a new QueryOperation.
|
SecondaryIndexQueryOperation.Builder |
streamResults(boolean streamResults)
Set the streamResults flag.
|
public Builder(SecondaryIndexQueryOperation.Query query)
query
- A 2i query.public SecondaryIndexQueryOperation.Builder streamResults(boolean streamResults)
If unset or false, the entire result set will be available through the FutureOperation.get()
method once the operation is complete.
If set to true, results will be pushed to the queue available through the
PBStreamingFutureOperation.getResultsQueue()
method as soon as they are available.
streamResults
- whether to stream results to FutureOperation.get()
(false), or
PBStreamingFutureOperation.getResultsQueue()
(true)public SecondaryIndexQueryOperation build()
Copyright © 2016. All rights reserved.