Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.bson |
Strongly typed, immutable implementation of the
BSON Specification.
|
com.allanbank.mongodb.bson.builder |
Provides the interfaces for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.bson.builder.impl |
Provides the implementations for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.bson.element | |
com.allanbank.mongodb.bson.impl |
Provides the implementation of a top level BSON
Document . |
com.allanbank.mongodb.bson.json |
Contains a parser of JSON documents based on a JavaCC grammer.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.builder.expression | |
com.allanbank.mongodb.builder.write |
Provides containers for the basic write operations.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
com.allanbank.mongodb.client.message |
Low level messages to be sent to the MongoDB server.
|
Modifier and Type | Class and Description |
---|---|
class |
ReadPreference
ReadPreference encapsulates a
ReadPreference.Mode and a set of tag matching
documents. |
Modifier and Type | Method and Description |
---|---|
static ReadPreference |
ReadPreference.closest(DocumentAssignable... tagMatchDocuments)
Creates a
ReadPreference to read from the closest/
ReadPreference.Mode.NEAREST primary of secondary server. |
long |
MongoCollection.count(DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
long |
MongoCollection.count(DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(Callback<Long> results,
DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(Callback<Long> results,
DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.countAsync(DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.countAsync(DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(LambdaCallback<Long> results,
DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(LambdaCallback<Long> results,
DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
boolean |
MongoDatabase.createCollection(String name,
DocumentAssignable options)
Creates the collection with the specified name on the server.
|
void |
MongoCollection.createIndex(DocumentAssignable options,
Element... keys)
Creates an index with a generated name, across the keys specified
allowing duplicate entries.
|
void |
MongoCollection.createIndex(String name,
DocumentAssignable options,
Element... keys)
Creates an index with a generated name, across the keys specified
allowing duplicate entries.
|
long |
MongoCollection.delete(DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
long |
MongoCollection.delete(DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
long |
MongoCollection.delete(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
long |
MongoCollection.delete(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.deleteAsync(DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.deleteAsync(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
Document |
MongoCollection.explain(DocumentAssignable query)
Explains the way that the query will be performed.
|
MongoIterator<Document> |
MongoCollection.find(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
AsyncMongoCollection.findAsync(Callback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
ListenableFuture<MongoIterator<Document>> |
AsyncMongoCollection.findAsync(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
AsyncMongoCollection.findAsync(LambdaCallback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
Document |
MongoCollection.findOne(DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
AsyncMongoCollection.findOneAsync(Callback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
ListenableFuture<Document> |
AsyncMongoCollection.findOneAsync(DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
AsyncMongoCollection.findOneAsync(LambdaCallback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
int |
MongoCollection.insert(boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
MongoCollection.insert(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
MongoCollection.insert(DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
MongoCollection.insert(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AsyncMongoCollection.insertAsync(boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AsyncMongoCollection.insertAsync(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(Callback<Integer> results,
boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(Callback<Integer> results,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(Callback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AsyncMongoCollection.insertAsync(DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AsyncMongoCollection.insertAsync(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
static ReadPreference |
ReadPreference.preferPrimary(DocumentAssignable... tagMatchDocuments)
Creates a
ReadPreference to prefer reading from the primary but
to fallback to a secondary if the primary is not available. |
static ReadPreference |
ReadPreference.preferSecondary(DocumentAssignable... tagMatchDocuments)
Creates a
ReadPreference to prefer reading from a secondary but
to 'fallback' to a primary if a secondary is not available. |
MongoIterator<Document> |
MongoClient.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
MongoCursorControl |
MongoClient.restart(LambdaCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
MongoCursorControl |
MongoClient.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
Document |
MongoDatabase.runAdminCommand(String command,
DocumentAssignable options)
Runs an administrative command against the 'admin' database.
|
Document |
MongoDatabase.runAdminCommand(String commandName,
String commandValue,
DocumentAssignable options)
Runs an administrative command against the 'admin' database.
|
Document |
MongoDatabase.runCommand(DocumentAssignable command)
Runs a command against the database.
|
Document |
MongoDatabase.runCommand(String command,
DocumentAssignable options)
Runs a command against the database.
|
Document |
MongoDatabase.runCommand(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Document |
MongoDatabase.runCommand(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
String command,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabase.runCommandAsync(DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
String command,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabase.runCommandAsync(String command,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabase.runCommandAsync(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabase.runCommandAsync(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
int |
MongoCollection.save(DocumentAssignable document)
Saves the
document to the collection. |
int |
MongoCollection.save(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
AsyncMongoCollection.saveAsync(Callback<Integer> results,
DocumentAssignable document)
Saves the
document to the collection. |
void |
AsyncMongoCollection.saveAsync(Callback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
ListenableFuture<Integer> |
AsyncMongoCollection.saveAsync(DocumentAssignable document)
Saves the
document to the collection. |
ListenableFuture<Integer> |
AsyncMongoCollection.saveAsync(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
AsyncMongoCollection.saveAsync(LambdaCallback<Integer> results,
DocumentAssignable document)
Saves the
document to the collection. |
void |
AsyncMongoCollection.saveAsync(LambdaCallback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
static ReadPreference |
ReadPreference.secondary(DocumentAssignable... tagMatchDocuments)
Creates a
ReadPreference to read only from a secondary. |
MongoCursorControl |
AsyncMongoCollection.streamingFind(Callback<Document> results,
DocumentAssignable query)
Deprecated.
Use the
AsyncMongoCollection.streamingFind(StreamCallback, DocumentAssignable)
method instead. This method will be removed after the 1.3.0
release. |
MongoCursorControl |
AsyncMongoCollection.streamingFind(LambdaCallback<Document> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection
and streams them to the provided callback one at a time.
|
MongoCursorControl |
AsyncMongoCollection.streamingFind(StreamCallback<Document> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection
and streams them to the provided callback one at a time.
|
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Document |
MongoCollection.updateOptions(DocumentAssignable options)
Updates the collection's options or flags using the
collMod
command. |
Constructor and Description |
---|
ReadPreference(ReadPreference.Mode mode,
DocumentAssignable... tagMatchDocuments)
Creates a new ReadPreference.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Document
Interface for a document.
|
Modifier and Type | Class and Description |
---|---|
class |
DocumentReference
DocumentReference provides a standard MongoDB reference to a document within
a collection.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DocumentBuilder
Interface for a builder used to construct a BSON document.
|
Modifier and Type | Method and Description |
---|---|
static ArrayElement |
BuilderFactory.a(DocumentAssignable... documents)
Creates an array element containing pre-constructed document elements.
|
ArrayBuilder |
ArrayBuilder.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
DocumentBuilder |
DocumentBuilder.add(String name,
DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilder.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
DocumentBuilder |
DocumentBuilder.addDocument(String name,
DocumentAssignable value)
Adds a pre-built document element.
|
ArrayBuilder |
ArrayBuilder.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
DocumentBuilder |
DocumentBuilder.addJavaScript(String name,
String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
static Element |
BuilderFactory.e(String name,
DocumentAssignable document)
Creates a pre-constructed document element.
|
static DocumentBuilder |
BuilderFactory.start(DocumentAssignable... seedDocuments)
Creates a new
DocumentBuilder to append more elements to an
existing set of documents. |
static DocumentBuilder |
BuilderFactory.start(DocumentAssignable seedDocument)
Creates a new
DocumentBuilder to append more elements to an
existing document. |
Modifier and Type | Class and Description |
---|---|
class |
DocumentBuilderImpl
A builder for BSON documents.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilderImpl.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
DocumentBuilder |
DocumentBuilderImpl.add(String name,
DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilderImpl.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
DocumentBuilder |
DocumentBuilderImpl.addDocument(String name,
DocumentAssignable value)
Adds a pre-built document element.
|
ArrayBuilder |
ArrayBuilderImpl.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
DocumentBuilder |
DocumentBuilderImpl.addJavaScript(String name,
String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
Constructor and Description |
---|
DocumentBuilderImpl(DocumentAssignable seedDocument)
Creates a new builder.
|
Modifier and Type | Class and Description |
---|---|
class |
DocumentElement
Wraps a single BSON document that may contain nested documents.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDocument
AbstractDocument provides a base class for all document implementations with
the common functionality.
|
class |
EmptyDocument
An immutable empty document.
|
class |
ImmutableDocument
A root level document that is truly immutable.
|
class |
RootDocument
A root level document that can inject a _id value.
|
Constructor and Description |
---|
ImmutableDocument(DocumentAssignable document)
Constructs a new
ImmutableDocument . |
ImmutableDocument(DocumentAssignable document,
long size)
Constructs a new
ImmutableDocument . |
Modifier and Type | Method and Description |
---|---|
static String |
Json.serialize(DocumentAssignable document)
Serializes the
Document to an equivalent JSON document. |
static void |
Json.serialize(DocumentAssignable document,
Writer sink)
Serializes the
Document to an equivalent JSON document. |
Modifier and Type | Class and Description |
---|---|
class |
AggregationGeoNear
AggregationGeoNear provides the options for the
$geoNear pipeline
stage of an aggregation. |
static class |
AggregationGroupId.Builder
Builder provides the ability to construct a complex
AggregationGroupId . |
class |
ConditionBuilder
ConditionBuilder provides tracking for the condition of a single field within
a query.
|
class |
QueryBuilder
QueryBuilder provides support for constructing queries.
|
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.all(DocumentAssignable... values)
Specify the values that must all be in the fields array.
|
static Document |
QueryBuilder.and(DocumentAssignable... criteria)
Creates a single document that is the conjunction of the criteria
provided.
|
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.
|
static BatchedWrite |
BatchedWrite.delete(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Create a batched write with a single delete operation.
|
ConditionBuilder |
ConditionBuilder.elementMatches(DocumentAssignable arrayElementQuery)
Query to match a single element in the array field.
|
ConditionBuilder |
ConditionBuilder.equals(DocumentAssignable value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equalsJavaScript(String value,
DocumentAssignable scope)
Checks if the value equals the specified value.
|
FindAndModify.Builder |
FindAndModify.Builder.fields(DocumentAssignable fields)
Sets the subset of fields to retrieve from the matched document.
|
ConditionBuilder |
ConditionBuilder.geoWithin(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field intersects the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.geoWithin(DocumentAssignable geoJsonDoc,
boolean unique)
Deprecated.
$uniqueDocs was removed in MongoDB 2.6. This method
will not be removed until two releases after the MongoDB 2.6
release (e.g. 2.10 if the releases are 2.8 and 2.10). |
Aggregate.Builder |
Aggregate.Builder.group(DocumentAssignable aggregations)
Adds a $group operation to the pipeline to aggregate
documents passing this point in the pipeline into a group of
documents.
|
Aggregate.Builder |
Aggregate.Builder.group(DocumentAssignable id,
AggregationGroupField... aggregations)
Adds a $group operation to the pipeline to aggregate
documents passing this point in the pipeline into a group of
documents.
|
Find.Builder |
Find.Builder.hint(DocumentAssignable indexFields)
Sets the value of hint as to which index should be used to execute
the query.
|
ConditionBuilder |
ConditionBuilder.in(DocumentAssignable... values)
Specify the possible values to match against the field's value.
|
GroupBy.Builder |
GroupBy.Builder.initialValue(DocumentAssignable initialValue)
Sets the value of the initial value for the group.
|
static BatchedWrite |
BatchedWrite.insert(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Create a batched write with a single inserts operation.
|
BatchedWrite.Builder |
BatchedWrite.Builder.insert(DocumentAssignable document)
Adds an insert operation to the batched write.
|
ConditionBuilder |
ConditionBuilder.intersects(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field intersects the specified
GeoJSON specified geometry. |
Aggregate.Builder |
Aggregate.Builder.match(DocumentAssignable query)
Adds a $match operation to the pipeline to filter documents
passing this point in the pipeline.
|
Find.Builder |
Find.Builder.max(DocumentAssignable maximumRange)
Sets the value of maximum range for the index used to the new value.
|
Find.Builder |
Find.Builder.min(DocumentAssignable minimumRange)
Sets the value of minimum range for the index used to the new value.
|
ConditionBuilder |
ConditionBuilder.near(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.near(DocumentAssignable geoJsonDoc,
double maxDistance)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.nearSphere(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry on a sphere. |
ConditionBuilder |
ConditionBuilder.nearSphere(DocumentAssignable geoJsonDoc,
double maxDistance)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry on a sphere. |
static Document |
QueryBuilder.nor(DocumentAssignable... criteria)
Creates a single document that is the disjunction of the criteria
provided.
|
static Document |
QueryBuilder.not(DocumentAssignable... criteria)
Negate a set of criteria.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(DocumentAssignable value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToJavaScript(String value,
DocumentAssignable scope)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notIn(DocumentAssignable... values)
Specify the values that must not match the field's value.
|
static Document |
QueryBuilder.or(DocumentAssignable... criteria)
Creates a single document that is the disjunction of the criteria
provided.
|
Aggregate.Builder |
Aggregate.Builder.project(DocumentAssignable projection)
Adds a $project operation to the pipeline to create a
projection of the documents passing this point in the pipeline.
|
Find.Builder |
Find.Builder.projection(DocumentAssignable projection)
Sets the value of the fields to be projected from the matching
documents to the new value.
|
Count.Builder |
Count.Builder.query(DocumentAssignable query)
Sets the value of the query document to the new value.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.query(DocumentAssignable query)
Sets the optional query for further refining the documents to add to
the pipeline.
|
Find.Builder |
Find.Builder.query(DocumentAssignable query)
Sets the value of the query document to the new value.
|
Distinct.Builder |
Distinct.Builder.query(DocumentAssignable query)
Sets the value of the query to select the documents to run the
distinct against.
|
Text.Builder |
Text.Builder.query(DocumentAssignable query)
Deprecated.
Sets the standard MongoDB query document to limit the final results
to the new value.
|
GroupBy.Builder |
GroupBy.Builder.query(DocumentAssignable query)
Sets the value of the query to select the documents to run the group
against.
|
MapReduce.Builder |
MapReduce.Builder.query(DocumentAssignable query)
Sets the query to select the documents to run the map/reduce against.
|
FindAndModify.Builder |
FindAndModify.Builder.query(DocumentAssignable query)
Sets the query to locate the document to update.
|
Aggregate.Builder |
Aggregate.Builder.redact(DocumentAssignable ifExpression,
RedactOption thenOption,
RedactOption elseOption)
Adds a $redact operation to potentially prune sub-documents
from the results.
|
Find.Builder |
Find.Builder.returnFields(DocumentAssignable returnFields)
Deprecated.
Replaced with the MongoDB standardized name:
projection . This
method will be removed on or after the 1.4 release. |
Text.Builder |
Text.Builder.returnFields(DocumentAssignable returnFields)
Deprecated.
Sets the fields to return from the query to the new value.
|
BatchedWrite.Builder |
BatchedWrite.Builder.save(DocumentAssignable document)
Saves the
document to MongoDB. |
MapReduce.Builder |
MapReduce.Builder.scope(DocumentAssignable scope)
Sets the scoped values to expose to the map/reduce/finalize
functions.
|
FindAndModify.Builder |
FindAndModify.Builder.setFields(DocumentAssignable fields)
Sets the subset of fields to retrieve from the matched document.
|
Find.Builder |
Find.Builder.setHint(DocumentAssignable indexFields)
Sets the value of hint as to which index should be used to execute
the query.
|
GroupBy.Builder |
GroupBy.Builder.setInitialValue(DocumentAssignable initialValue)
Sets the value of the initial value for the group.
|
Find.Builder |
Find.Builder.setMaximumRange(DocumentAssignable maximumRange)
Sets the value of maximum range for the index used to the new value.
|
Find.Builder |
Find.Builder.setMinimumRange(DocumentAssignable minimumRange)
Sets the value of minimum range for the index used to the new value.
|
Find.Builder |
Find.Builder.setProjection(DocumentAssignable projection)
Sets the value of the fields to be projected or returned from the
matching documents to the new value.
|
Count.Builder |
Count.Builder.setQuery(DocumentAssignable query)
Sets the value of the query document to the new value.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setQuery(DocumentAssignable query)
Sets the optional query for further refining the documents to add to
the pipeline.
|
Find.Builder |
Find.Builder.setQuery(DocumentAssignable query)
Sets the value of the query document to the new value.
|
Distinct.Builder |
Distinct.Builder.setQuery(DocumentAssignable query)
Sets the value of the query to select the documents to run the
distinct against.
|
Text.Builder |
Text.Builder.setQuery(DocumentAssignable query)
Deprecated.
Sets the standard MongoDB query document to limit the final results
to the new value.
|
GroupBy.Builder |
GroupBy.Builder.setQuery(DocumentAssignable query)
Sets the value of the query to select the documents to run the group
against.
|
MapReduce.Builder |
MapReduce.Builder.setQuery(DocumentAssignable query)
Sets the query to select the documents to run the map/reduce against.
|
FindAndModify.Builder |
FindAndModify.Builder.setQuery(DocumentAssignable query)
Sets the query to locate the document to update.
|
Find.Builder |
Find.Builder.setReturnFields(DocumentAssignable returnFields)
Deprecated.
Replaced with the MongoDB standardized name:
projection . This method will be
removed on or after the 1.4 release. |
Text.Builder |
Text.Builder.setReturnFields(DocumentAssignable returnFields)
Deprecated.
Sets the fields to return from the query to the new value.
|
MapReduce.Builder |
MapReduce.Builder.setScope(DocumentAssignable scope)
Sets the scoped values to expose to the map/reduce/finalize
functions.
|
Find.Builder |
Find.Builder.setSort(DocumentAssignable sortFields)
Sets the value of the fields to to sort matching documents by.
|
MapReduce.Builder |
MapReduce.Builder.setSort(DocumentAssignable sort)
Sets the sort to apply to the input objects.
|
FindAndModify.Builder |
FindAndModify.Builder.setSort(DocumentAssignable sort)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
FindAndModify.Builder |
FindAndModify.Builder.setUpdate(DocumentAssignable update)
Sets the updates to be applied to the document.
|
Find.Builder |
Find.Builder.sort(DocumentAssignable sortFields)
Sets the value of the fields to to sort matching documents by.
|
MapReduce.Builder |
MapReduce.Builder.sort(DocumentAssignable sort)
Sets the sort to apply to the input objects.
|
FindAndModify.Builder |
FindAndModify.Builder.sort(DocumentAssignable sort)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
Aggregate.Builder |
Aggregate.Builder.step(String operator,
DocumentAssignable stepDocument)
Adds a generic step to the builder's pipeline.
|
FindAndModify.Builder |
FindAndModify.Builder.update(DocumentAssignable update)
Sets the updates to be applied to the document.
|
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.
|
static BatchedWrite |
BatchedWrite.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Create a batched write with a single update operation.
|
ConditionBuilder |
ConditionBuilder.within(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is within the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.within(DocumentAssignable geoJsonDoc,
boolean uniqueDocs)
Deprecated.
$uniqueDocs was removed in MongoDB 2.6. This method
will not be removed until two releases after the MongoDB 2.6
release (e.g. 2.10 if the releases are 2.8 and 2.10). |
Constructor and Description |
---|
AggregationGroupId(DocumentAssignable builder)
Creates a new AggregationGroupId.
|
Count.Builder(DocumentAssignable query)
Creates a new Builder.
|
Find.Builder(DocumentAssignable query)
Creates a new Builder.
|
TextResult(DocumentAssignable document)
Deprecated.
Creates a new Text.
|
Modifier and Type | Method and Description |
---|---|
LetBuilder |
LetBuilder.let(String name,
DocumentAssignable document)
Adds a variable to the
$let expression. |
static LetBuilder |
Expressions.let(String name,
DocumentAssignable document)
Starts the creation of a
$let expression. |
static Element |
Expressions.set(String name,
DocumentAssignable document)
Returns an element to set the value to.
|
Constructor and Description |
---|
DeleteOperation(DocumentAssignable query,
boolean singleDelete)
Creates a new DeleteOperation.
|
InsertOperation(DocumentAssignable document)
Creates a new InsertOperation.
|
UpdateOperation(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Creates a new UpdateOperation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MongoDatabaseImpl.addOptions(String command,
DocumentAssignable options,
DocumentBuilder builder)
Adds the options to the document builder.
|
protected void |
SynchronousMongoCollectionImpl.addOptions(String command,
DocumentAssignable options,
DocumentBuilder builder)
Adds the options to the document builder.
|
long |
SynchronousMongoCollectionImpl.count(DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
long |
SynchronousMongoCollectionImpl.count(DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(Callback<Long> results,
DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(Callback<Long> results,
DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.countAsync(DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.countAsync(DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(LambdaCallback<Long> results,
DocumentAssignable query)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(LambdaCallback<Long> results,
DocumentAssignable query,
ReadPreference readPreference)
Counts the set of documents matching the query document in the
collection.
|
boolean |
MongoDatabaseImpl.createCollection(String name,
DocumentAssignable options)
Creates the collection with the specified name on the server.
|
void |
SynchronousMongoCollectionImpl.createIndex(DocumentAssignable options,
Element... keys)
Creates an index with a generated name, across the keys specified
allowing duplicate entries.
|
void |
SynchronousMongoCollectionImpl.createIndex(String name,
DocumentAssignable options,
Element... keys)
Creates an index with a generated name, across the keys specified
allowing duplicate entries.
|
long |
SynchronousMongoCollectionImpl.delete(DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
long |
SynchronousMongoCollectionImpl.delete(DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
long |
SynchronousMongoCollectionImpl.delete(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
long |
SynchronousMongoCollectionImpl.delete(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractMongoOperations.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
|
void |
AbstractAsyncMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.deleteAsync(DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.deleteAsync(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
boolean singleDelete)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractAsyncMongoCollection.deleteAsync(LambdaCallback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
protected void |
AbstractMongoOperations.doInsertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
Version requiredServerVersion,
DocumentAssignable... documents)
Sends an
Insert message to the server. |
Document |
SynchronousMongoCollectionImpl.explain(DocumentAssignable query)
Explains the way that the query will be performed.
|
MongoIterator<Document> |
SynchronousMongoCollectionImpl.find(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
AbstractAsyncMongoCollection.findAsync(Callback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
ListenableFuture<MongoIterator<Document>> |
AbstractAsyncMongoCollection.findAsync(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
AbstractAsyncMongoCollection.findAsync(LambdaCallback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
Document |
SynchronousMongoCollectionImpl.findOne(DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
AbstractAsyncMongoCollection.findOneAsync(Callback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
ListenableFuture<Document> |
AbstractAsyncMongoCollection.findOneAsync(DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
AbstractAsyncMongoCollection.findOneAsync(LambdaCallback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
int |
SynchronousMongoCollectionImpl.insert(boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
SynchronousMongoCollectionImpl.insert(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
SynchronousMongoCollectionImpl.insert(DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
SynchronousMongoCollectionImpl.insert(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.insertAsync(boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.insertAsync(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(Callback<Integer> results,
boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractMongoOperations.insertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
|
void |
AbstractAsyncMongoCollection.insertAsync(Callback<Integer> results,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(Callback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.insertAsync(DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.insertAsync(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
boolean continueOnError,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractAsyncMongoCollection.insertAsync(LambdaCallback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
MongoIterator<Document> |
SerialClientImpl.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
MongoIterator<Document> |
MongoClientImpl.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
MongoIterator<Document> |
ClientImpl.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
MongoIterator<Document> |
Client.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
MongoCursorControl |
MongoClientImpl.restart(LambdaCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
MongoCursorControl |
SerialClientImpl.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
MongoCursorControl |
MongoClientImpl.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
MongoCursorControl |
ClientImpl.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
MongoCursorControl |
Client.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
Document |
MongoDatabaseImpl.runAdminCommand(String command,
DocumentAssignable options)
Runs an administrative command against the 'admin' database.
|
Document |
MongoDatabaseImpl.runAdminCommand(String commandName,
String commandValue,
DocumentAssignable options)
Runs an administrative command against the 'admin' database.
|
Document |
MongoDatabaseImpl.runCommand(DocumentAssignable command)
Runs a command against the database.
|
Document |
MongoDatabaseImpl.runCommand(String command,
DocumentAssignable options)
Runs a command against the database.
|
Document |
MongoDatabaseImpl.runCommand(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Document |
MongoDatabaseImpl.runCommand(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
DocumentAssignable command,
Version requireServerVersion)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
String command,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabaseImpl.runCommandAsync(DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
String command,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabaseImpl.runCommandAsync(String command,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabaseImpl.runCommandAsync(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
ListenableFuture<Document> |
MongoDatabaseImpl.runCommandAsync(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
int |
SynchronousMongoCollectionImpl.save(DocumentAssignable document)
Saves the
document to the collection. |
int |
SynchronousMongoCollectionImpl.save(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
AbstractAsyncMongoCollection.saveAsync(Callback<Integer> results,
DocumentAssignable document)
Saves the
document to the collection. |
void |
AbstractMongoOperations.saveAsync(Callback<Integer> results,
DocumentAssignable document,
Durability durability)
Constructs a
Insert of Update message based on if the
document contains a AbstractMongoOperations.ID_FIELD_NAME and sends it to the server via
the Client . |
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.saveAsync(DocumentAssignable document)
Saves the
document to the collection. |
ListenableFuture<Integer> |
AbstractAsyncMongoCollection.saveAsync(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
AbstractAsyncMongoCollection.saveAsync(LambdaCallback<Integer> results,
DocumentAssignable document)
Saves the
document to the collection. |
void |
AbstractAsyncMongoCollection.saveAsync(LambdaCallback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
MongoCursorControl |
AbstractAsyncMongoCollection.streamingFind(Callback<Document> results,
DocumentAssignable query)
Deprecated.
|
MongoCursorControl |
AbstractAsyncMongoCollection.streamingFind(LambdaCallback<Document> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection
and streams them to the provided callback one at a time.
|
MongoCursorControl |
AbstractAsyncMongoCollection.streamingFind(StreamCallback<Document> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection
and streams them to the provided callback one at a time.
|
long |
SynchronousMongoCollectionImpl.update(DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
long |
SynchronousMongoCollectionImpl.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
long |
SynchronousMongoCollectionImpl.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
long |
SynchronousMongoCollectionImpl.update(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
void |
AbstractMongoOperations.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
|
void |
AbstractAsyncMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AbstractAsyncMongoCollection.updateAsync(LambdaCallback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Document |
SynchronousMongoCollectionImpl.updateOptions(DocumentAssignable options)
Updates the collection's options or flags using the
collMod
command. |
Constructor and Description |
---|
CreateIndexCommand(String databaseName,
String collectionName,
Element[] keys,
String indexName,
DocumentAssignable options)
Create a new CreateIndexCommand.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.