Package | Description |
---|---|
com.mongodb.client |
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(com.mongodb.client.model.Collation collation)
Sets the collation options
|
FindIterable<TResult> |
FindIterable.cursorType(com.mongodb.CursorType cursorType)
Sets the cursor type.
|
FindIterable<TResult> |
FindIterable.filter(org.bson.conversions.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(org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(org.bson.conversions.Bson filter,
Class<TResult> resultClass)
Finds all documents in the collection.
|
<TResult> FindIterable<TResult> |
MongoCollection.find(Class<TResult> resultClass)
Finds all documents in the collection.
|
FindIterable<TResult> |
FindIterable.limit(int limit)
Sets the limit to apply.
|
FindIterable<TResult> |
FindIterable.maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor
query.
|
FindIterable<TResult> |
FindIterable.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindIterable<TResult> |
FindIterable.modifiers(org.bson.conversions.Bson modifiers)
Sets the query modifiers to apply to this operation.
|
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(org.bson.conversions.Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindIterable<TResult> |
FindIterable.skip(int skip)
Sets the number of documents to skip.
|
FindIterable<TResult> |
FindIterable.sort(org.bson.conversions.Bson sort)
Sets the sort criteria to apply to the query.
|
Copyright © 2017. All rights reserved.