Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
Modifier and Type | Method and Description |
---|---|
long |
MongoCollection.write(BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
ListenableFuture<Long> |
AsyncMongoCollection.writeAsync(BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
void |
AsyncMongoCollection.writeAsync(Callback<Long> results,
BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
void |
AsyncMongoCollection.writeAsync(LambdaCallback<Long> results,
BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
Modifier and Type | Method and Description |
---|---|
static BatchedWrite.Builder |
BatchedWrite.builder()
Creates a new builder for a
BatchedWrite . |
BatchedWrite.Builder |
BatchedWrite.Builder.delete(DocumentAssignable query)
Update a document based on a query.
|
BatchedWrite.Builder |
BatchedWrite.Builder.delete(DocumentAssignable query,
boolean singleDelete)
Update a document based on a query.
|
BatchedWrite.Builder |
BatchedWrite.Builder.durability(Durability durability)
Sets the durability for the writes.
|
BatchedWrite.Builder |
BatchedWrite.Builder.insert(DocumentAssignable document)
Adds an insert operation to the batched write.
|
BatchedWrite.Builder |
BatchedWrite.Builder.mode(BatchedWriteMode mode)
Sets the mode for submitting the writes to the server.
|
BatchedWrite.Builder |
BatchedWrite.Builder.reset()
Resets the builder back to its initial state for reuse.
|
BatchedWrite.Builder |
BatchedWrite.Builder.save(DocumentAssignable document)
Saves the
document to MongoDB. |
BatchedWrite.Builder |
BatchedWrite.Builder.setDurability(Durability durability)
Sets the durability for the writes.
|
BatchedWrite.Builder |
BatchedWrite.Builder.setMode(BatchedWriteMode mode)
Sets the mode for submitting the writes to the server.
|
BatchedWrite.Builder |
BatchedWrite.Builder.setWrites(List<WriteOperation> writes)
Sets the writes to submit to the server.
|
BatchedWrite.Builder |
BatchedWrite.Builder.update(DocumentAssignable query,
DocumentAssignable update)
Update a document based on a query.
|
BatchedWrite.Builder |
BatchedWrite.Builder.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Update a document based on a query.
|
BatchedWrite.Builder |
BatchedWrite.Builder.write(WriteOperation write)
Adds a single write to the list of writes to send to the server.
|
BatchedWrite.Builder |
BatchedWrite.Builder.writes(List<WriteOperation> writes)
Sets the writes to submit to the server.
|
Constructor and Description |
---|
BatchedWrite(BatchedWrite.Builder builder)
Creates a new BatchedWrite.
|
Modifier and Type | Method and Description |
---|---|
long |
SynchronousMongoCollectionImpl.write(BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.writeAsync(BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
void |
AbstractAsyncMongoCollection.writeAsync(Callback<Long> results,
BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
void |
AbstractAsyncMongoCollection.writeAsync(LambdaCallback<Long> results,
BatchedWrite.Builder write)
Constructs the appropriate set of write commands to send to the server.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.