Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
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
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Field and Description |
---|---|
static ReadConcern |
ReadConcern.DEFAULT
Use the servers default read concern.
|
static ReadConcern |
ReadConcern.LINEARIZABLE
The linearizable read concern.
|
static ReadConcern |
ReadConcern.LOCAL
The local read concern.
|
static ReadConcern |
ReadConcern.MAJORITY
The majority read concern.
|
private ReadConcern |
ConnectionString.readConcern |
private ReadConcern |
MongoIterableImpl.readConcern |
private ReadConcern |
MongoDatabaseImpl.readConcern |
private ReadConcern |
MongoCollectionImpl.readConcern |
private ReadConcern |
MongoClientOptions.readConcern |
private ReadConcern |
MongoClientOptions.Builder.readConcern |
private ReadConcern |
Mongo.readConcern |
private ReadConcern |
DBCollection.readConcern |
private ReadConcern |
DB.readConcern |
Modifier and Type | Method and Description |
---|---|
ReadConcern |
ConnectionString.getReadConcern()
Gets the read concern specified in the connection string.
|
(package private) ReadConcern |
MongoIterableImpl.getReadConcern() |
ReadConcern |
MongoDatabaseImpl.getReadConcern() |
ReadConcern |
MongoCollectionImpl.getReadConcern() |
ReadConcern |
MongoClientOptions.getReadConcern()
The read concern to use.
|
ReadConcern |
Mongo.getReadConcern()
Gets the read concern
|
(package private) ReadConcern |
DBCursor.getReadConcern()
Get the read concern for this collection.
|
ReadConcern |
DBCollection.getReadConcern()
Get the read concern for this collection.
|
ReadConcern |
DB.getReadConcern()
Get the read concern for this database.
|
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.readConcern(ReadConcern readConcern)
Sets the read concern.
|
(package private) DBCursor |
DBCursor.setReadConcern(ReadConcern readConcern)
Sets the read concern for this collection.
|
void |
DBCollection.setReadConcern(ReadConcern readConcern)
Sets the read concern for this collection.
|
void |
DB.setReadConcern(ReadConcern readConcern)
Sets the read concern for this database.
|
MongoDatabase |
MongoDatabaseImpl.withReadConcern(ReadConcern readConcern) |
MongoCollection<TDocument> |
MongoCollectionImpl.withReadConcern(ReadConcern readConcern) |
Constructor and Description |
---|
AggregateIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
OperationExecutor executor,
java.util.List<? extends Bson> pipeline) |
ChangeStreamIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
DistinctIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
java.lang.String fieldName,
Bson filter) |
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
Bson filter,
FindOptions findOptions) |
MapReduceIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
OperationExecutor executor,
java.lang.String mapFunction,
java.lang.String reduceFunction) |
MongoCollectionImpl(MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
WriteConcern writeConcern,
boolean retryWrites,
ReadConcern readConcern,
OperationExecutor executor) |
MongoDatabaseImpl(java.lang.String name,
CodecRegistry codecRegistry,
ReadPreference readPreference,
WriteConcern writeConcern,
boolean retryWrites,
ReadConcern readConcern,
OperationExecutor executor) |
MongoIterableImpl(ClientSession clientSession,
OperationExecutor executor,
ReadConcern readConcern,
ReadPreference readPreference) |
Modifier and Type | Field and Description |
---|---|
private ReadConcern |
MongoIterableImpl.readConcern |
private ReadConcern |
MongoDatabaseImpl.readConcern |
private ReadConcern |
MongoCollectionImpl.readConcern |
private ReadConcern |
MongoClientSettings.readConcern |
private ReadConcern |
MongoClientSettings.Builder.readConcern |
Modifier and Type | Method and Description |
---|---|
(package private) ReadConcern |
MongoIterableImpl.getReadConcern() |
ReadConcern |
MongoDatabaseImpl.getReadConcern() |
ReadConcern |
MongoDatabase.getReadConcern()
Get the read concern for the MongoDatabase.
|
ReadConcern |
MongoCollectionImpl.getReadConcern() |
ReadConcern |
MongoCollection.getReadConcern()
Get the read concern for the MongoCollection.
|
ReadConcern |
MongoClientSettings.getReadConcern()
The read concern to use.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.readConcern(ReadConcern readConcern)
Sets the read concern.
|
MongoDatabase |
MongoDatabaseImpl.withReadConcern(ReadConcern readConcern) |
MongoDatabase |
MongoDatabase.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
MongoCollection<TDocument> |
MongoCollectionImpl.withReadConcern(ReadConcern readConcern) |
MongoCollection<TDocument> |
MongoCollection.withReadConcern(ReadConcern readConcern)
Create a new MongoCollection instance with a different read concern.
|
Constructor and Description |
---|
AggregateIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
AsyncOperationExecutor executor,
java.util.List<? extends Bson> pipeline) |
ChangeStreamIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
java.util.List<? extends Bson> pipeline,
java.lang.Class<TResult> resultClass) |
DistinctIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
java.lang.String fieldName,
Bson filter) |
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
Bson filter,
FindOptions findOptions) |
MapReduceIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
WriteConcern writeConcern,
AsyncOperationExecutor executor,
java.lang.String mapFunction,
java.lang.String reduceFunction) |
MongoCollectionImpl(MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
WriteConcern writeConcern,
boolean retryWrites,
ReadConcern readConcern,
AsyncOperationExecutor executor) |
MongoDatabaseImpl(java.lang.String name,
CodecRegistry codecRegistry,
ReadPreference readPreference,
WriteConcern writeConcern,
boolean retryWrites,
ReadConcern readConcern,
AsyncOperationExecutor executor) |
MongoIterableImpl(ClientSession clientSession,
AsyncOperationExecutor executor,
ReadConcern readConcern,
ReadPreference readPreference) |
Modifier and Type | Method and Description |
---|---|
ReadConcern |
GridFSBucketImpl.getReadConcern() |
ReadConcern |
GridFSBucket.getReadConcern()
Get the read concern for the GridFSBucket.
|
Modifier and Type | Method and Description |
---|---|
GridFSBucket |
GridFSBucketImpl.withReadConcern(ReadConcern readConcern) |
GridFSBucket |
GridFSBucket.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
MongoDatabase.getReadConcern()
Get the read concern for the MongoDatabase.
|
ReadConcern |
MongoCollection.getReadConcern()
Get the read concern for the MongoCollection.
|
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoDatabase.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
MongoCollection<TDocument> |
MongoCollection.withReadConcern(ReadConcern readConcern)
Create a new MongoCollection instance with a different read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
GridFSBucketImpl.getReadConcern() |
ReadConcern |
GridFSBucket.getReadConcern()
Get the read concern for the GridFSBucket.
|
Modifier and Type | Method and Description |
---|---|
GridFSBucket |
GridFSBucketImpl.withReadConcern(ReadConcern readConcern) |
GridFSBucket |
GridFSBucket.withReadConcern(ReadConcern readConcern)
Create a new GridFSBucket instance with a different read concern.
|
Modifier and Type | Field and Description |
---|---|
private ReadConcern |
DBCollectionFindOptions.readConcern |
private ReadConcern |
DBCollectionDistinctOptions.readConcern |
private ReadConcern |
DBCollectionCountOptions.readConcern |
Modifier and Type | Method and Description |
---|---|
ReadConcern |
DBCollectionFindOptions.getReadConcern()
Returns the readConcern
|
ReadConcern |
DBCollectionDistinctOptions.getReadConcern()
Returns the readConcern
|
ReadConcern |
DBCollectionCountOptions.getReadConcern()
Returns the readConcern
|
Modifier and Type | Method and Description |
---|---|
DBCollectionFindOptions |
DBCollectionFindOptions.readConcern(ReadConcern readConcern)
Sets the readConcern
|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.readConcern(ReadConcern readConcern)
Sets the readConcern
|
DBCollectionCountOptions |
DBCollectionCountOptions.readConcern(ReadConcern readConcern)
Sets the readConcern
|
Modifier and Type | Field and Description |
---|---|
private ReadConcern |
ParallelCollectionScanOperation.readConcern |
private ReadConcern |
MapReduceWithInlineResultsOperation.readConcern |
private ReadConcern |
FindOperation.readConcern |
private ReadConcern |
DistinctOperation.readConcern |
private ReadConcern |
CountOperation.readConcern |
private ReadConcern |
ChangeStreamOperation.readConcern |
private ReadConcern |
AggregateOperation.readConcern |
Modifier and Type | Method and Description |
---|---|
ReadConcern |
ParallelCollectionScanOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
MapReduceWithInlineResultsOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
FindOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
DistinctOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
CountOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
ChangeStreamOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
AggregateOperation.getReadConcern()
Gets the read concern
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
ReadConcernHelper.appendReadConcernToCommand(ReadConcern readConcern,
SessionContext sessionContext,
BsonDocument commandDocument) |
private static ReadConcernLevel |
ReadConcernHelper.getReadConcernLevel(ReadConcern readConcern,
SessionContext sessionContext) |
ParallelCollectionScanOperation<T> |
ParallelCollectionScanOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
MapReduceWithInlineResultsOperation<T> |
MapReduceWithInlineResultsOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
FindOperation<T> |
FindOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
DistinctOperation<T> |
DistinctOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
CountOperation |
CountOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
ChangeStreamOperation<T> |
ChangeStreamOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
AggregateOperation<T> |
AggregateOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
(package private) static void |
OperationHelper.validateReadConcern(AsyncConnection connection,
ReadConcern readConcern,
OperationHelper.AsyncCallableWithConnection callable) |
(package private) static void |
OperationHelper.validateReadConcern(AsyncConnectionSource source,
AsyncConnection connection,
ReadConcern readConcern,
OperationHelper.AsyncCallableWithConnectionAndSource callable) |
(package private) static void |
OperationHelper.validateReadConcern(Connection connection,
ReadConcern readConcern) |
(package private) static void |
OperationHelper.validateReadConcernAndCollation(AsyncConnection connection,
ReadConcern readConcern,
Collation collation,
OperationHelper.AsyncCallableWithConnection callable) |
(package private) static void |
OperationHelper.validateReadConcernAndCollation(AsyncConnectionSource source,
AsyncConnection connection,
ReadConcern readConcern,
Collation collation,
OperationHelper.AsyncCallableWithConnectionAndSource callable) |
(package private) static void |
OperationHelper.validateReadConcernAndCollation(Connection connection,
ReadConcern readConcern,
Collation collation) |