Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
private FindOperation<TResult> |
FindIterableImpl.createQueryOperation() |
private FindOperation<DBObject> |
DBCursor.getQueryOperation(Decoder<DBObject> decoder) |
Modifier and Type | Method and Description |
---|---|
private void |
DBCursor.initializeCursor(FindOperation<DBObject> operation) |
Modifier and Type | Field and Description |
---|---|
private FindOperation<T> |
AggregateToCollectionThenFindOperation.findOperation |
Modifier and Type | Method and Description |
---|---|
private FindOperation<TResult> |
FindIterableImpl.createFindOperation() |
private FindOperation<TResult> |
MapReduceIterableImpl.createFindOperation() |
FindOperation<T> |
AggregateToCollectionThenFindOperation.getFindOperation() |
Constructor and Description |
---|
AggregateToCollectionThenFindOperation(AsyncWriteOperation<java.lang.Void> aggregateToCollectionOperation,
FindOperation<T> findOperation) |
Modifier and Type | Method and Description |
---|---|
FindOperation<T> |
FindOperation.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindOperation<T> |
FindOperation.collation(Collation collation)
Sets the collation options
|
FindOperation<T> |
FindOperation.comment(java.lang.String comment)
Sets the comment to the query.
|
private FindOperation<BsonDocument> |
FindOperation.createExplainableQueryOperation() |
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.hint(BsonDocument hint)
Sets the hint for which index to use.
|
FindOperation<T> |
FindOperation.limit(int limit)
Sets the limit to apply.
|
FindOperation<T> |
FindOperation.max(BsonDocument max)
Sets the exclusive upper bound for a specific index.
|
FindOperation<T> |
FindOperation.maxAwaitTime(long maxAwaitTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
FindOperation<T> |
FindOperation.maxScan(long maxScan)
Sets the maximum number of documents or index keys to scan when executing the query.
|
FindOperation<T> |
FindOperation.maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOperation<T> |
FindOperation.min(BsonDocument min)
Sets the minimum inclusive lower bound for a specific index.
|
FindOperation<T> |
FindOperation.modifiers(BsonDocument modifiers)
Deprecated.
use the individual setters instead
|
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.returnKey(boolean returnKey)
Sets the returnKey.
|
FindOperation<T> |
FindOperation.showRecordId(boolean showRecordId)
Sets the showRecordId.
|
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.snapshot(boolean snapshot)
Sets the snapshot.
|
FindOperation<T> |
FindOperation.sort(BsonDocument sort)
Sets the sort criteria to apply to the query.
|