Package | Description |
---|---|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
WriteRequest.Type |
InsertRequest.getType() |
abstract WriteRequest.Type |
WriteRequest.getType()
Gets the type of the write.
|
WriteRequest.Type |
UpdateRequest.getType() |
WriteRequest.Type |
DeleteRequest.getType() |
static WriteRequest.Type |
WriteRequest.Type.valueOf(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,
Integer modifiedCount,
List<BulkWriteUpsert> upserts)
Create an acknowledged BulkWriteResult
|
static BulkWriteResult |
BulkWriteResult.acknowledged(WriteRequest.Type type,
int count,
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 |
---|---|
protected abstract WriteRequest.Type |
BaseWriteOperation.getType() |
protected WriteRequest.Type |
UpdateOperation.getType() |
protected WriteRequest.Type |
DeleteOperation.getType() |
protected WriteRequest.Type |
InsertOperation.getType() |
Copyright © 2016. All Rights Reserved.