Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
FindIterableImpl<TDocument,TResult> |
Modifier and Type | Method and Description |
---|---|
FindIterable<TResult> |
FindIterableImpl.batchSize(int batchSize) |
FindIterable<TResult> |
FindIterableImpl.collation(Collation collation) |
FindIterable<TResult> |
FindIterableImpl.comment(java.lang.String comment) |
private <TResult> FindIterable<TResult> |
MongoCollectionImpl.createFindIterable(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
FindIterable<TResult> |
FindIterableImpl.cursorType(CursorType cursorType) |
FindIterable<TResult> |
FindIterableImpl.filter(Bson filter) |
FindIterable<TDocument> |
MongoCollectionImpl.find() |
FindIterable<TDocument> |
MongoCollectionImpl.find(Bson filter) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(java.lang.Class<TResult> resultClass) |
FindIterable<TDocument> |
MongoCollectionImpl.find(ClientSession clientSession) |
FindIterable<TDocument> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass) |
<TResult> FindIterable<TResult> |
MongoCollectionImpl.find(ClientSession clientSession,
java.lang.Class<TResult> resultClass) |
FindIterable<TResult> |
FindIterableImpl.hint(Bson hint) |
FindIterable<TResult> |
FindIterableImpl.limit(int limit) |
FindIterable<TResult> |
FindIterableImpl.max(Bson max) |
FindIterable<TResult> |
FindIterableImpl.maxAwaitTime(long maxAwaitTime,
java.util.concurrent.TimeUnit timeUnit) |
FindIterable<TResult> |
FindIterableImpl.maxScan(long maxScan) |
FindIterable<TResult> |
FindIterableImpl.maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit) |
FindIterable<TResult> |
FindIterableImpl.min(Bson min) |
FindIterable<TResult> |
FindIterableImpl.modifiers(Bson modifiers) |
FindIterable<TResult> |
FindIterableImpl.noCursorTimeout(boolean noCursorTimeout) |
FindIterable<TResult> |
FindIterableImpl.oplogReplay(boolean oplogReplay) |
FindIterable<TResult> |
FindIterableImpl.partial(boolean partial) |
FindIterable<TResult> |
FindIterableImpl.projection(Bson projection) |
FindIterable<TResult> |
FindIterableImpl.returnKey(boolean returnKey) |
FindIterable<TResult> |
FindIterableImpl.showRecordId(boolean showRecordId) |
FindIterable<TResult> |
FindIterableImpl.skip(int skip) |
FindIterable<TResult> |
FindIterableImpl.snapshot(boolean snapshot) |
FindIterable<TResult> |
FindIterableImpl.sort(Bson sort) |
Modifier and Type | Method and Description |
---|---|
FindIterable<TResult> |
FindIterable.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindIterable<TResult> |
FindIterable.collation(Collation collation)
Sets the collation options
|
FindIterable<TResult> |
FindIterable.comment(java.lang.String comment)
Sets the comment to the query.
|
FindIterable<TResult> |
FindIterable.cursorType(CursorType cursorType)
Sets the cursor type.
|
FindIterable<TResult> |
FindIterable.filter(Bson filter)
Sets the query filter to apply to the query.
|
FindIterable<TDocument> |
MongoCollection.find()
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollection.find(Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession)
Finds all documents in the collection.
|
FindIterable<TDocument> |
MongoCollection.find(ClientSession clientSession,
Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
Bson filter,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(ClientSession clientSession,
java.lang.Class<TResult> resultClass)
Finds all documents in the collection.
|
FindIterable<TResult> |
FindIterable.hint(Bson hint)
Sets the hint for which index to use.
|
FindIterable<TResult> |
FindIterable.limit(int limit)
Sets the limit to apply.
|
FindIterable<TResult> |
FindIterable.max(Bson max)
Sets the exclusive upper bound for a specific index.
|
FindIterable<TResult> |
FindIterable.maxAwaitTime(long maxAwaitTime,
java.util.concurrent.TimeUnit timeUnit)
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor
query.
|
FindIterable<TResult> |
FindIterable.maxScan(long maxScan)
Sets the maximum number of documents or index keys to scan when executing the query.
|
FindIterable<TResult> |
FindIterable.maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindIterable<TResult> |
FindIterable.min(Bson min)
Sets the minimum inclusive lower bound for a specific index.
|
FindIterable<TResult> |
FindIterable.modifiers(Bson modifiers)
Deprecated.
use the individual setters instead
|
FindIterable<TResult> |
FindIterable.noCursorTimeout(boolean noCursorTimeout)
The server normally times out idle cursors after an inactivity period (10 minutes)
to prevent excess memory use.
|
FindIterable<TResult> |
FindIterable.oplogReplay(boolean oplogReplay)
Users should not set this under normal circumstances.
|
FindIterable<TResult> |
FindIterable.partial(boolean partial)
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
|
FindIterable<TResult> |
FindIterable.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindIterable<TResult> |
FindIterable.returnKey(boolean returnKey)
Sets the returnKey.
|
FindIterable<TResult> |
FindIterable.showRecordId(boolean showRecordId)
Sets the showRecordId.
|
FindIterable<TResult> |
FindIterable.skip(int skip)
Sets the number of documents to skip.
|
FindIterable<TResult> |
FindIterable.snapshot(boolean snapshot)
Sets the snapshot.
|
FindIterable<TResult> |
FindIterable.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
Modifier and Type | Field and Description |
---|---|
private FindIterable<GridFSFile> |
GridFSFindIterableImpl.underlying |
Modifier and Type | Method and Description |
---|---|
private FindIterable<GridFSFile> |
GridFSBucketImpl.createFindIterable(ClientSession clientSession,
Bson filter) |
Constructor and Description |
---|
GridFSFindIterableImpl(FindIterable<GridFSFile> underlying) |