public class ParallelScan extends Object
parallelCollectionScan
.
Note: The parallelCollectionScan
does not work with sharded
clusters.
Modifier and Type | Class and Description |
---|---|
static class |
ParallelScan.Builder
Helper for creating immutable
ParallelScan queries. |
Modifier and Type | Field and Description |
---|---|
static Version |
REQUIRED_VERSION
The first version of MongoDB to support the
parallelCollectionScan command. |
Modifier | Constructor and Description |
---|---|
protected |
ParallelScan(ParallelScan.Builder builder)
Creates a new ParallelScan.
|
Modifier and Type | Method and Description |
---|---|
static ParallelScan.Builder |
builder()
Creates a new builder for a
ParallelScan . |
int |
getBatchSize()
Returns the number of documents to be returned in each batch of results.
|
ReadPreference |
getReadPreference()
Returns the preference for the servers to retrieve the results from.
|
int |
getRequestedIteratorCount()
Returns the requested number of iterators/cursors to create.
|
public static final Version REQUIRED_VERSION
parallelCollectionScan
command.protected ParallelScan(ParallelScan.Builder builder)
builder
- The builder to copy the query fields from.public static ParallelScan.Builder builder()
ParallelScan
.ParallelScan
.public int getBatchSize()
public ReadPreference getReadPreference()
null
in which case the default read preference should be
used.public int getRequestedIteratorCount()
This value will be forced into the range [1, 10,000].
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.