Package | Description |
---|---|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
FindOperation<T> |
FindOperation.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindOperation<T> |
FindOperation.cursorType(CursorType cursorType)
Sets the cursor type.
|
FindOperation<T> |
FindOperation.filter(BsonDocument filter)
Sets the query filter to apply to the query.
|
FindOperation<T> |
FindOperation.limit(int limit)
Sets the limit to apply.
|
FindOperation<T> |
FindOperation.maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
FindOperation<T> |
FindOperation.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOperation<T> |
FindOperation.modifiers(BsonDocument modifiers)
Sets the query modifiers to apply to this operation.
|
FindOperation<T> |
FindOperation.noCursorTimeout(boolean noCursorTimeout)
Sets if the cursor timeout should be turned off.
|
FindOperation<T> |
FindOperation.oplogReplay(boolean oplogReplay)
Internal replication use only.
|
FindOperation<T> |
FindOperation.partial(boolean partial)
Sets if partial results from a mongos if some shards are down are allowed
|
FindOperation<T> |
FindOperation.projection(BsonDocument projection)
Sets a document describing the fields to return for all matching documents.
|
FindOperation<T> |
FindOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
FindOperation<T> |
FindOperation.skip(int skip)
Sets the number of documents to skip.
|
FindOperation<T> |
FindOperation.slaveOk(boolean slaveOk)
Sets if allowed to query non-primary replica set members.
|
FindOperation<T> |
FindOperation.sort(BsonDocument sort)
Sets the sort criteria to apply to the query.
|
Copyright © 2016. All Rights Reserved.