public static class MapReduceOperation.Builder extends Object
Constructor and Description |
---|
Builder(BinaryValue mapReduce)
Create a MapReduce operation builder with the given function.
|
Modifier and Type | Method and Description |
---|---|
MapReduceOperation |
build() |
MapReduceOperation.Builder |
streamResults(boolean streamResults)
Set the streamResults flag.
|
public Builder(BinaryValue mapReduce)
mapReduce
- a mapReduce query.public MapReduceOperation.Builder streamResults(boolean streamResults)
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 MapReduceOperation build()
Copyright © 2016. All rights reserved.