@NotThreadSafe public static class ParallelScanOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ParallelScanOptions.Builder |
batchSize(int batchSize)
The batch size to use for each cursor.
|
ParallelScanOptions |
build()
Creates a ParallelScanOptions with the settings initialised in this builder.
|
ParallelScanOptions.Builder |
numCursors(int numCursors)
Set the requested number of cursors to iterate in parallel.
|
ParallelScanOptions.Builder |
readPreference(ReadPreference readPreference)
The read preference to use.
|
public ParallelScanOptions.Builder numCursors(int numCursors)
numCursors - the number of cursors requested, which must be >= 1public ParallelScanOptions.Builder batchSize(int batchSize)
batchSize - the batch size, which must be >= 0public ParallelScanOptions.Builder readPreference(ReadPreference readPreference)
readPreference - the read preferencepublic ParallelScanOptions build()