Package | Description |
---|---|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
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 | Field and Description |
---|---|
private WriteRequest.Type |
UpdateRequest.updateType |
Modifier and Type | Method and Description |
---|---|
WriteRequest.Type |
DeleteRequest.getType() |
WriteRequest.Type |
UpdateRequest.getType() |
abstract WriteRequest.Type |
WriteRequest.getType()
Gets the type of the write.
|
WriteRequest.Type |
InsertRequest.getType() |
static WriteRequest.Type |
WriteRequest.Type.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WriteRequest.Type[] |
WriteRequest.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static BulkWriteResult |
BulkWriteResult.acknowledged(WriteRequest.Type type,
int count,
java.lang.Integer modifiedCount,
java.util.List<BulkWriteUpsert> upserts)
Create an acknowledged BulkWriteResult
|
static BulkWriteResult |
BulkWriteResult.acknowledged(WriteRequest.Type type,
int count,
java.util.List<BulkWriteUpsert> upserts)
Create an acknowledged BulkWriteResult
|
Constructor and Description |
---|
UpdateRequest(BsonDocument filter,
BsonDocument update,
WriteRequest.Type updateType)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) static MongoBulkWriteException |
WriteCommandResultHelper.getBulkWriteException(WriteRequest.Type type,
BsonDocument result,
ServerAddress serverAddress) |
(package private) static BulkWriteResult |
WriteCommandResultHelper.getBulkWriteResult(WriteRequest.Type type,
BsonDocument result) |
private static java.lang.Integer |
WriteCommandResultHelper.getModifiedCount(WriteRequest.Type type,
BsonDocument result) |
Modifier and Type | Field and Description |
---|---|
private WriteRequest.Type |
BulkWriteBatch.batchType |
Modifier and Type | Method and Description |
---|---|
(package private) WriteRequest.Type |
BulkWriteBatch.WriteRequestWithIndex.getType() |
protected WriteRequest.Type |
UpdateOperation.getType() |
protected abstract WriteRequest.Type |
BaseWriteOperation.getType() |
protected WriteRequest.Type |
DeleteOperation.getType() |
protected WriteRequest.Type |
InsertOperation.getType() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
BulkWriteBatch.getCommandName(WriteRequest.Type batchType) |
private SplittablePayload.Type |
BulkWriteBatch.getPayloadType(WriteRequest.Type batchType) |
Constructor and Description |
---|
BulkWriteBatch(MongoNamespace namespace,
ConnectionDescription connectionDescription,
boolean ordered,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
boolean retryWrites,
BulkWriteBatchCombiner bulkWriteBatchCombiner,
IndexMap indexMap,
WriteRequest.Type batchType,
BsonDocument command,
SplittablePayload payload,
java.util.List<BulkWriteBatch.WriteRequestWithIndex> unprocessed,
SessionContext sessionContext) |