Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.model.changestream |
This package contains classes for the change stream api
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
MongoNamespace |
MongoCollection.getNamespace()
Gets the namespace of this collection.
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace,
RenameCollectionOptions options,
SingleResultCallback<Void> callback)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace,
SingleResultCallback<Void> callback)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(MongoNamespace newCollectionNamespace,
RenameCollectionOptions options,
SingleResultCallback<Void> callback)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(MongoNamespace newCollectionNamespace,
SingleResultCallback<Void> callback)
Rename the collection with oldCollectionName to the newCollectionName.
|
Modifier and Type | Method and Description |
---|---|
MongoNamespace |
MongoCollection.getNamespace()
Gets the namespace of this collection.
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(ClientSession clientSession,
MongoNamespace newCollectionNamespace,
RenameCollectionOptions renameCollectionOptions)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
void |
MongoCollection.renameCollection(MongoNamespace newCollectionNamespace,
RenameCollectionOptions renameCollectionOptions)
Rename the collection with oldCollectionName to the newCollectionName.
|
Modifier and Type | Method and Description |
---|---|
MongoNamespace |
ChangeStreamDocument.getNamespace()
Returns the namespace
|
Constructor and Description |
---|
ChangeStreamDocument(BsonDocument resumeToken,
MongoNamespace namespace,
TDocument fullDocument,
BsonDocument documentKey,
OperationType operationType,
UpdateDescription updateDescription)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
MongoNamespace |
QueryResult.getNamespace()
Gets the namespace.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
Connection.delete(MongoNamespace namespace,
boolean ordered,
DeleteRequest deleteRequest)
Delete the documents using the delete wire protocol and apply the write concern.
|
void |
AsyncConnection.deleteAsync(MongoNamespace namespace,
boolean ordered,
DeleteRequest deleteRequest,
SingleResultCallback<WriteConcernResult> callback)
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
|
<T> QueryResult<T> |
Connection.getMore(MongoNamespace namespace,
long cursorId,
int numberToReturn,
Decoder<T> resultDecoder)
Get more result documents from a cursor.
|
<T> void |
AsyncConnection.getMoreAsync(MongoNamespace namespace,
long cursorId,
int numberToReturn,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
Get more result documents from a cursor asynchronously.
|
WriteConcernResult |
Connection.insert(MongoNamespace namespace,
boolean ordered,
InsertRequest insertRequest)
Insert the documents using the insert wire protocol and apply the write concern.
|
void |
AsyncConnection.insertAsync(MongoNamespace namespace,
boolean ordered,
InsertRequest insertRequest,
SingleResultCallback<WriteConcernResult> callback)
Insert the documents using the insert wire protocol and apply the write concern asynchronously.
|
void |
Connection.killCursor(MongoNamespace namespace,
List<Long> cursors)
Kills the given list of cursors.
|
void |
AsyncConnection.killCursorAsync(MongoNamespace namespace,
List<Long> cursors,
SingleResultCallback<Void> callback)
Asynchronously Kills the given list of cursors.
|
<T> QueryResult<T> |
Connection.query(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder)
|
<T> QueryResult<T> |
Connection.query(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int skip,
int limit,
int batchSize,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder)
Execute the query.
|
<T> void |
AsyncConnection.queryAsync(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
|
<T> void |
AsyncConnection.queryAsync(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int skip,
int limit,
int batchSize,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
Execute the query asynchronously.
|
WriteConcernResult |
Connection.update(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest)
Update the documents using the update wire protocol and apply the write concern.
|
void |
AsyncConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest,
SingleResultCallback<WriteConcernResult> callback)
Update the documents using the update wire protocol and apply the write concern asynchronously.
|
Constructor and Description |
---|
QueryResult(MongoNamespace namespace,
List<T> results,
long cursorId,
ServerAddress serverAddress)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
MongoNamespace |
ChangeStreamOperation.getNamespace() |
MongoNamespace |
FindOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
FindAndDeleteOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
BaseWriteOperation.getNamespace()
Gets the namespace of the collection to write to.
|
MongoNamespace |
MapReduceWithInlineResultsOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
FindAndUpdateOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
MapReduceToCollectionOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
FindAndReplaceOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
GroupOperation.getNamespace()
Gets the namespace.
|
MongoNamespace |
MixedBulkWriteOperation.getNamespace()
Gets the namespace of the collection to write to.
|
Constructor and Description |
---|
AggregateOperation(MongoNamespace namespace,
List<BsonDocument> pipeline,
Decoder<T> decoder)
Construct a new instance.
|
AggregateToCollectionOperation(MongoNamespace namespace,
List<BsonDocument> pipeline)
|
AggregateToCollectionOperation(MongoNamespace namespace,
List<BsonDocument> pipeline,
WriteConcern writeConcern)
Construct a new instance.
|
BaseWriteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern)
Deprecated.
|
BaseWriteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites)
Construct an instance
|
ChangeStreamOperation(MongoNamespace namespace,
FullDocument fullDocument,
List<BsonDocument> pipeline,
Decoder<T> decoder)
Construct a new instance.
|
CountOperation(MongoNamespace namespace)
Construct a new instance.
|
CreateIndexesOperation(MongoNamespace namespace,
List<IndexRequest> requests)
|
CreateIndexesOperation(MongoNamespace namespace,
List<IndexRequest> requests,
WriteConcern writeConcern)
Construct a new instance.
|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
List<DeleteRequest> deleteRequests)
Construct an instance.
|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<DeleteRequest> deleteRequests)
Deprecated.
|
DistinctOperation(MongoNamespace namespace,
String fieldName,
Decoder<T> decoder)
Construct an instance.
|
DropCollectionOperation(MongoNamespace namespace)
|
DropCollectionOperation(MongoNamespace namespace,
WriteConcern writeConcern)
Construct a new instance.
|
DropIndexOperation(MongoNamespace namespace,
BsonDocument keys)
|
DropIndexOperation(MongoNamespace namespace,
BsonDocument keys,
WriteConcern writeConcern)
Construct a new instance.
|
DropIndexOperation(MongoNamespace namespace,
String indexName)
Deprecated.
|
DropIndexOperation(MongoNamespace namespace,
String indexName,
WriteConcern writeConcern)
Construct a new instance.
|
FindAndDeleteOperation(MongoNamespace namespace,
Decoder<T> decoder)
Deprecated.
|
FindAndDeleteOperation(MongoNamespace namespace,
WriteConcern writeConcern,
boolean retryWrites,
Decoder<T> decoder)
Construct a new instance.
|
FindAndDeleteOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder)
Deprecated.
|
FindAndReplaceOperation(MongoNamespace namespace,
Decoder<T> decoder,
BsonDocument replacement)
|
FindAndReplaceOperation(MongoNamespace namespace,
WriteConcern writeConcern,
boolean retryWrites,
Decoder<T> decoder,
BsonDocument replacement)
Construct a new instance.
|
FindAndReplaceOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder,
BsonDocument replacement)
|
FindAndUpdateOperation(MongoNamespace namespace,
Decoder<T> decoder,
BsonDocument update)
|
FindAndUpdateOperation(MongoNamespace namespace,
WriteConcern writeConcern,
boolean retryWrites,
Decoder<T> decoder,
BsonDocument update)
Construct a new instance.
|
FindAndUpdateOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder,
BsonDocument update)
|
FindOperation(MongoNamespace namespace,
Decoder<T> decoder)
Construct a new instance.
|
GroupOperation(MongoNamespace namespace,
BsonJavaScript reduceFunction,
BsonDocument initial,
Decoder<T> decoder)
Create an operation that will perform a Group on a given collection.
|
InsertOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
List<InsertRequest> insertRequests)
Construct an instance.
|
InsertOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<InsertRequest> insertRequests)
Deprecated.
|
ListIndexesOperation(MongoNamespace namespace,
Decoder<T> decoder)
Construct a new instance.
|
MapReduceToCollectionOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
String collectionName)
Construct a MapReduceOperation with all the criteria it needs to execute
|
MapReduceToCollectionOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
String collectionName,
WriteConcern writeConcern)
Construct a MapReduceOperation with all the criteria it needs to execute
|
MapReduceWithInlineResultsOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
Decoder<T> decoder)
Construct a MapReduceOperation with all the criteria it needs to execute.
|
MixedBulkWriteOperation(MongoNamespace namespace,
List<? extends WriteRequest> writeRequests,
boolean ordered,
WriteConcern writeConcern)
|
MixedBulkWriteOperation(MongoNamespace namespace,
List<? extends WriteRequest> writeRequests,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites)
Construct a new instance.
|
ParallelCollectionScanOperation(MongoNamespace namespace,
int numCursors,
Decoder<T> decoder)
Construct a new instance.
|
RenameCollectionOperation(MongoNamespace originalNamespace,
MongoNamespace newNamespace)
|
RenameCollectionOperation(MongoNamespace originalNamespace,
MongoNamespace newNamespace,
WriteConcern writeConcern) |
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
List<UpdateRequest> updates)
Construct an instance.
|
UpdateOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<UpdateRequest> updates)
Deprecated.
|
Copyright © 2018. All rights reserved.