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.io |
Provides the ability to serialize and deserialize BSON
Document s. |
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.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
com.allanbank.mongodb.connection.message |
Low level messages to be sent to the MongoDB server.
|
com.allanbank.mongodb.connection.state |
Support for tracking the state of a set of MongoDB servers.
|
com.allanbank.mongodb.error |
Exceptions for common MongoDB error conditions.
|
Modifier and Type | Field and Description |
---|---|
static Document |
MongoCollection.ALL
An (empty) query document to find all documents.
|
Modifier and Type | Method and Description |
---|---|
Document |
MongoCursorControl.asDocument()
Returns a
Document that can be used to restart the
cursor/iterator. |
Document |
ReadPreference.asDocument()
Converts the object into a document.
|
Document |
Durability.asDocument()
Returns a suitable getlasterror command's document.
|
Document |
MongoCollection.explain(DocumentAssignable query)
Explains the way that the document will be performed.
|
Document |
MongoCollection.explain(Find.Builder query)
Explains the way that the document will be performed.
|
Document |
MongoCollection.explain(Find query)
Explains the way that the document will be performed.
|
Document |
MongoCollection.findAndModify(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Document |
MongoCollection.findAndModify(FindAndModify command)
Invokes a findAndModify command on the server.
|
Document |
MongoCollection.findOne(DocumentAssignable query)
Finds a single matching document in the collection.
|
Document |
MongoCollection.findOne(Find.Builder query)
Finds a single matching document in the collection.
|
Document |
MongoCollection.findOne(Find query)
Finds a single matching document in the collection.
|
Document |
MongoDatabase.runAdminCommand(String command)
Runs an administrative command against the 'admin' database.
|
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(String 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.
|
Document |
MongoDatabase.stats()
Returns the statistics for the database.
|
Document |
MongoCollection.stats()
Returns the statistics for the collection.
|
Document |
MongoCollection.updateOptions(DocumentAssignable options)
Updates the collection's options or flags using the
collMod
command. |
Document |
MongoCollection.validate(MongoCollection.ValidateMode mode)
Validates the collections contents.
|
Modifier and Type | Method and Description |
---|---|
List<Document> |
MongoCollection.aggregate(Aggregate.Builder command)
Invokes a aggregate command on the server.
|
List<Document> |
MongoCollection.aggregate(Aggregate command)
Invokes a aggregate command on the server.
|
Future<List<Document>> |
MongoCollection.aggregateAsync(Aggregate.Builder command)
Invokes a aggregate command on the server.
|
Future<List<Document>> |
MongoCollection.aggregateAsync(Aggregate command)
Invokes a aggregate command on the server.
|
Future<Document> |
MongoCollection.explainAsync(Find.Builder query)
Explains the way that the document will be performed.
|
Future<Document> |
MongoCollection.explainAsync(Find query)
Explains the way that the document will be performed.
|
MongoIterator<Document> |
MongoCollection.find(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
MongoIterator<Document> |
MongoCollection.find(Find.Builder query)
Finds the set of documents matching the query in the collection.
|
MongoIterator<Document> |
MongoCollection.find(Find query)
Finds the set of documents matching the query in the collection.
|
Future<Document> |
MongoCollection.findAndModifyAsync(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Future<Document> |
MongoCollection.findAndModifyAsync(FindAndModify command)
Invokes a findAndModify command on the server.
|
Future<MongoIterator<Document>> |
MongoCollection.findAsync(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
Future<MongoIterator<Document>> |
MongoCollection.findAsync(Find.Builder query)
Finds the set of documents matching the query in the collection.
|
Future<MongoIterator<Document>> |
MongoCollection.findAsync(Find query)
Finds the set of documents matching the query in the collection.
|
Future<Document> |
MongoCollection.findOneAsync(DocumentAssignable query)
Finds a single matching document in the collection.
|
Future<Document> |
MongoCollection.findOneAsync(Find.Builder query)
Finds a single matching document in the collection.
|
Future<Document> |
MongoCollection.findOneAsync(Find query)
Finds a single matching document in the collection.
|
List<Document> |
ReadPreference.getTagMatchingDocuments()
Returns the list of tag matching documents to control the secondaries
used.
|
List<Document> |
MongoCollection.mapReduce(MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
List<Document> |
MongoCollection.mapReduce(MapReduce command)
Invokes a mapReduce command on the server.
|
Future<List<Document>> |
MongoCollection.mapReduceAsync(MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
Future<List<Document>> |
MongoCollection.mapReduceAsync(MapReduce command)
Invokes a mapReduce command on the server.
|
MongoIterator<Document> |
MongoClient.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
Future<Document> |
MongoDatabase.runCommandAsync(String command)
Runs a command against the database.
|
Future<Document> |
MongoDatabase.runCommandAsync(String command,
DocumentAssignable options)
Runs a command against the database.
|
Future<Document> |
MongoDatabase.runCommandAsync(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Future<Document> |
MongoDatabase.runCommandAsync(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ReadPreference.matches(Document tags)
Returns true if this
ReadPreference matches the tags
document. |
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.aggregateAsync(Callback<List<Document>> results,
Aggregate.Builder command)
Invokes a aggregate command on the server.
|
void |
MongoCollection.aggregateAsync(Callback<List<Document>> results,
Aggregate command)
Invokes a aggregate command on the server.
|
void |
MongoCollection.explainAsync(Callback<Document> results,
Find.Builder query)
Explains the way that the document will be performed.
|
void |
MongoCollection.explainAsync(Callback<Document> results,
Find query)
Explains the way that the document will be performed.
|
void |
MongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
void |
MongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify command)
Invokes a findAndModify command on the server.
|
void |
MongoCollection.findAsync(Callback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
MongoCollection.findAsync(Callback<MongoIterator<Document>> results,
Find.Builder query)
Finds the set of documents matching the query in the collection.
|
void |
MongoCollection.findAsync(Callback<MongoIterator<Document>> results,
Find query)
Finds the set of documents matching the query in the collection.
|
void |
MongoCollection.findOneAsync(Callback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
MongoCollection.findOneAsync(Callback<Document> results,
Find.Builder query)
Finds a single matching document in the collection.
|
void |
MongoCollection.findOneAsync(Callback<Document> results,
Find query)
Finds a single matching document in the collection.
|
void |
MongoCollection.mapReduceAsync(Callback<List<Document>> results,
MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
void |
MongoCollection.mapReduceAsync(Callback<List<Document>> results,
MapReduce command)
Invokes a mapReduce command on the server.
|
MongoCursorControl |
MongoClient.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
String command)
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.
|
MongoCursorControl |
MongoCollection.streamingFind(Callback<Document> results,
DocumentAssignable query)
Deprecated.
Use the
MongoCollection.streamingFind(StreamCallback, DocumentAssignable)
method instead. This method will be removed after the 1.3.0
release. |
MongoCursorControl |
MongoCollection.streamingFind(Callback<Document> results,
Find query)
Deprecated.
Use the
MongoCollection.streamingFind(StreamCallback, Find) method
instead. This method will be removed after the 1.3.0 release. |
MongoCursorControl |
MongoCollection.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.
|
MongoCursorControl |
MongoCollection.streamingFind(StreamCallback<Document> results,
Find.Builder query)
Finds the set of documents matching the query in the collection and
streams them to the provided callback one at a time.
|
MongoCursorControl |
MongoCollection.streamingFind(StreamCallback<Document> results,
Find query)
Finds the set of documents matching the query in the collection and
streams them to the provided callback one at a time.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentAssignable.asDocument()
Converts the object into a document.
|
Document |
DocumentReference.asDocument()
Converts the object into a document.
|
Modifier and Type | Method and Description |
---|---|
void |
Visitor.visitJavaScript(String name,
String code,
Document scope)
Visits a JavaScript with Scope element.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentBuilder.build()
Returns the
Document being constructed. |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentBuilderImpl.asDocument()
Converts the object into a document.
|
Document |
DocumentBuilderImpl.build()
Returns the
Document being constructed. |
Modifier and Type | Class and Description |
---|---|
class |
DocumentElement
Wraps a single BSON document that may contain nested documents.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentElement.asDocument()
Converts the object into a document.
|
Document |
DocumentElement.getDocument()
Returns the element's document.
|
Document |
JavaScriptWithScopeElement.getScope()
Returns the BSON JavaScript scope.
|
Document |
DocumentElement.getValueAsObject()
Returns the value for BSON element as a Java
Object type. |
Document |
JavaScriptWithScopeElement.getValueAsObject()
Returns the value for BSON element as a Java
Object type. |
Modifier and Type | Method and Description |
---|---|
void |
JsonSerializationVisitor.visitJavaScript(String name,
String code,
Document scope)
Visits a JavaScript with Scope element.
|
Constructor and Description |
---|
DocumentElement(String name,
Document value)
Constructs a new
DocumentElement . |
JavaScriptWithScopeElement(String name,
String javaScript,
Document scope)
Constructs a new
JavaScriptWithScopeElement . |
Modifier and Type | Class and Description |
---|---|
class |
EmptyDocument
An immutable empty document.
|
class |
RootDocument
A root level document.
|
Modifier and Type | Method and Description |
---|---|
Document |
EmptyDocument.asDocument()
Converts the object into a document.
|
Document |
RootDocument.asDocument()
Converts the object into a document.
|
Modifier and Type | Method and Description |
---|---|
Document |
BsonInputStream.readDocument()
Reads a BSON document element:
|
Modifier and Type | Method and Description |
---|---|
int |
BsonOutputStream.sizeOf(Document document)
Returns the size of the writing the
Document as a BSON document. |
void |
SizeOfVisitor.visitJavaScript(String name,
String code,
Document scope)
Visits a JavaScript with Scope element.
|
long |
BufferingBsonOutputStream.write(Document doc)
Writes the Document in BSON format to the underlying stream.
|
void |
BsonOutputStream.writeDocument(Document document)
Writes a BSON
Document to the stream. |
Modifier and Type | Method and Description |
---|---|
static Document |
Json.parse(Reader input)
Parses the document from the reader into a BSON
Document . |
static Document |
Json.parse(String input)
Parses the document from the reader into a BSON
Document . |
Modifier and Type | Field and Description |
---|---|
static Document |
Find.ALL
An (empty) query document to find all documents.
|
protected Document |
FindAndModify.Builder.myFields
Retrieve a subset of fields from the matched document.
|
protected Document |
Find.Builder.myHint
The hint for which index to use.
|
protected Document |
GroupBy.Builder.myInitialValue
The initial value for the group.
|
protected Document |
Find.Builder.myMaximumRange
If set then controls the maximum value for the range within the used
index.
|
protected Document |
Find.Builder.myMinimumRange
If set then controls the minimum value for the range within the used
index.
|
protected Document |
Distinct.Builder.myQuery
The query to select document to perform a distinct query across.
|
protected Document |
Find.Builder.myQuery
The query document.
|
protected Document |
MapReduce.Builder.myQuery
The query to select the document to run the map/reduce against.
|
protected Document |
Text.Builder.myQuery
A standard MongoDB query document to limit the final results.
|
protected Document |
GroupBy.Builder.myQuery
The query to select the documents to run the group against.
|
protected Document |
FindAndModify.Builder.myQuery
A query to locate the document to update.
|
protected Document |
AggregationGeoNear.Builder.myQuery
The optional query for further refining the documents to add to the
pipeline.
|
protected Document |
Find.Builder.myReturnFields
The fields to be returned from the matching documents.
|
protected Document |
Text.Builder.myReturnFields
The fields to return from the query.
|
protected Document |
MapReduce.Builder.myScope
The scoped values to expose to the map/reduce/finalize functions.
|
protected Document |
Find.Builder.mySort
The fields to order the document on.
|
protected Document |
MapReduce.Builder.mySort
The sort to apply to the input objects.
|
protected Document |
FindAndModify.Builder.mySort
If multiple docs match, choose the first one in the specified sort
order as the object to manipulate.
|
protected Document |
FindAndModify.Builder.myUpdate
Updates to be applied to the document.
|
Modifier and Type | Method and Description |
---|---|
static Document |
QueryBuilder.and(DocumentAssignable... criteria)
Creates a single document that is the conjunction of the criteria
provided.
|
Document |
QueryBuilder.asDocument()
Converts the object into a document.
|
Document |
AggregationGeoNear.asDocument()
Converts the object into a document.
|
Document |
ConditionBuilder.asDocument()
Converts the object into a document.
|
Document |
QueryBuilder.build()
Construct the final query document.
|
Document |
ConditionBuilder.build()
Returns the results of building the parent
QueryBuilder . |
Document |
TextResult.getDocument()
Returns the document.
|
Document |
FindAndModify.getFields()
Returns the subset of fields to retrieve from the matched document.
|
Document |
Find.getHint()
Returns the hint for which index to use.
|
Document |
GroupBy.getInitialValue()
Returns the initial value for each group.
|
Document |
Find.getMaximumRange()
Returns a non-null value to controls the maximum value for the range
within the used index.
|
Document |
Find.getMinimumRange()
Returns a non-null value to controls the minimum value for the range
within the used index.
|
Document |
Distinct.getQuery()
Returns the query to select the documents to run the distinct against.
|
Document |
Find.getQuery()
Returns the query document.
|
Document |
MapReduce.getQuery()
Returns the query to select the documents to run the map/reduce against.
|
Document |
Text.getQuery()
Returns the query document to limit the final results.
|
Document |
GroupBy.getQuery()
Returns the query to select the documents to run the group against.
|
Document |
FindAndModify.getQuery()
Returns the query to locate the document to update.
|
Document |
AggregationGeoNear.getQuery()
If set returns the optional query for further refining the documents to
add to the pipeline.
|
Document |
TextResult.getRawDocument()
Returns the un-processed result document.
|
Document |
Find.getReturnFields()
Returns the fields to be returned from the matching documents.
|
Document |
Text.getReturnFields()
Returns the fields to return from the query.
|
Document |
MapReduce.getScope()
Returns the scoped values to expose to the map/reduce/finalize functions.
|
Document |
Find.getSort()
Returns the fields to order document by.
|
Document |
MapReduce.getSort()
Returns the sort to apply to the input objects.
|
Document |
FindAndModify.getSort()
Returns the sort to apply if multiple docs match, choose the first one as
the object to manipulate.
|
Document |
FindAndModify.getUpdate()
Returns the updates to be applied to the document.
|
static Document |
GeoJson.lineString(List<? extends Point2D> points)
Constructs a GeoJSON 'LineString' document from the coordinates provided.
|
static Document |
GeoJson.lineString(Point2D p1,
Point2D p2,
Point2D... remaining)
Constructs a GeoJSON 'LineString' document from the coordinates provided.
|
static Document |
GeoJson.multiLineString(List<? extends Point2D> firstLineString,
List<? extends Point2D>... additionalLineStrings)
Constructs a GeoJSON 'MultiLineString' document from the coordinates
provided.
|
static Document |
GeoJson.multiPoint(List<? extends Point2D> positions)
Constructs a GeoJSON 'MultiPoint' document from the positions provided.
|
static Document |
GeoJson.multiPoint(Point2D firstPosition,
Point2D... additionalPositions)
Constructs a GeoJSON 'MultiPoint' document from the positions provided.
|
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.
|
static Document |
QueryBuilder.or(DocumentAssignable... criteria)
Creates a single document that is the disjunction of the criteria
provided.
|
static Document |
GeoJson.point(Point2D position)
Constructs a GeoJSON 'Point' document from the coordinates provided.
|
static Document |
GeoJson.polygon(List<? extends Point2D> boundary)
Constructs a GeoJSON 'Polygon' document from the coordinates provided.
|
static Document |
GeoJson.polygon(List<? extends Point2D> boundary,
List<? extends Point2D>... holes)
Constructs a GeoJSON 'Polygon' document from the coordinates provided.
|
Document |
Find.toQueryRequest(boolean explain)
This method is not intended for applications to use.
|
Document |
Find.toQueryRequest(boolean explain,
ReadPreference readPreference)
This method is not intended for applications to use.
|
Modifier and Type | Field and Description |
---|---|
static Document |
AbstractMongoCollection.EMPTY_INDEX_OPTIONS
The default empty index options.
|
static Document |
MongoDatabaseImpl.EMPTY_QUERY
An empty query document.
|
static Document |
AbstractMongoCollection.UNIQUE_INDEX_OPTIONS
The default for a UNIQUE index options.
|
Modifier and Type | Method and Description |
---|---|
Document |
MongoIteratorImpl.asDocument()
Returns a
Document that can be used to restart the
cursor/iterator. |
Document |
AbstractMongoCollection.explain(DocumentAssignable query)
Explains the way that the document will be performed.
|
Document |
AbstractMongoCollection.explain(Find.Builder query)
Explains the way that the document will be performed.
|
Document |
AbstractMongoCollection.explain(Find query)
Explains the way that the document will be performed.
|
Document |
AbstractMongoCollection.findAndModify(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Document |
AbstractMongoCollection.findAndModify(FindAndModify command)
Invokes a findAndModify command on the server.
|
Document |
AbstractMongoCollection.findOne(DocumentAssignable query)
Finds a single matching document in the collection.
|
Document |
AbstractMongoCollection.findOne(Find.Builder query)
Finds a single matching document in the collection.
|
Document |
AbstractMongoCollection.findOne(Find query)
Overridden to call the
AbstractMongoCollection.findOneAsync(Callback, Find) . |
Document |
MongoIteratorImpl.next() |
Document |
MongoDatabaseImpl.runAdminCommand(String command)
Runs an administrative command against the 'admin' database.
|
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(String 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.
|
Document |
MongoDatabaseImpl.stats()
Returns the statistics for the database.
|
Document |
MongoCollectionImpl.stats()
Returns the statistics for the collection.
|
Document |
MongoCollectionImpl.updateOptions(DocumentAssignable options)
Updates the collection's options or flags using the
collMod
command. |
Document |
MongoCollectionImpl.validate(MongoCollection.ValidateMode mode)
Validates the collections contents.
|
Modifier and Type | Method and Description |
---|---|
List<Document> |
AbstractMongoCollection.aggregate(Aggregate.Builder command)
Invokes a aggregate command on the server.
|
List<Document> |
AbstractMongoCollection.aggregate(Aggregate command)
Invokes a aggregate command on the server.
|
Future<List<Document>> |
AbstractMongoCollection.aggregateAsync(Aggregate.Builder command)
Invokes a aggregate command on the server.
|
Future<List<Document>> |
AbstractMongoCollection.aggregateAsync(Aggregate command)
Invokes a aggregate command on the server.
|
protected List<Document> |
ReplyResultCallback.convert(Reply reply)
Converts the
Reply into the final response type. |
Future<Document> |
AbstractMongoCollection.explainAsync(Find.Builder query)
Explains the way that the document will be performed.
|
Future<Document> |
AbstractMongoCollection.explainAsync(Find query)
Explains the way that the document will be performed.
|
MongoIterator<Document> |
AbstractMongoCollection.find(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
MongoIterator<Document> |
AbstractMongoCollection.find(Find.Builder query)
Finds the set of documents matching the query in the collection.
|
MongoIterator<Document> |
AbstractMongoCollection.find(Find query)
Finds the set of documents matching the query in the collection.
|
Future<Document> |
AbstractMongoCollection.findAndModifyAsync(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Future<Document> |
AbstractMongoCollection.findAndModifyAsync(FindAndModify command)
Invokes a findAndModify command on the server.
|
Future<MongoIterator<Document>> |
AbstractMongoCollection.findAsync(DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
Future<MongoIterator<Document>> |
AbstractMongoCollection.findAsync(Find.Builder query)
Finds the set of documents matching the query in the collection.
|
Future<MongoIterator<Document>> |
AbstractMongoCollection.findAsync(Find query)
Finds the set of documents matching the query in the collection.
|
Future<Document> |
AbstractMongoCollection.findOneAsync(DocumentAssignable query)
Finds a single matching document in the collection.
|
Future<Document> |
AbstractMongoCollection.findOneAsync(Find.Builder query)
Finds a single matching document in the collection.
|
Future<Document> |
AbstractMongoCollection.findOneAsync(Find query)
Finds a single matching document in the collection.
|
Iterator<Document> |
MongoIteratorImpl.iterator() |
protected List<Document> |
MongoIteratorImpl.loadDocuments(boolean blockForTailable)
Loads more documents into the iterator.
|
List<Document> |
AbstractMongoCollection.mapReduce(MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
List<Document> |
AbstractMongoCollection.mapReduce(MapReduce command)
Invokes a mapReduce command on the server.
|
Future<List<Document>> |
AbstractMongoCollection.mapReduceAsync(MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
Future<List<Document>> |
AbstractMongoCollection.mapReduceAsync(MapReduce command)
Invokes a mapReduce command on the server.
|
MongoIterator<Document> |
ClientImpl.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
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> |
Client.restart(DocumentAssignable cursorDocument)
Restarts an iterator that was previously saved.
|
Future<Document> |
MongoDatabaseImpl.runCommandAsync(String command)
Runs a command against the database.
|
Future<Document> |
MongoDatabaseImpl.runCommandAsync(String command,
DocumentAssignable options)
Runs a command against the database.
|
Future<Document> |
MongoDatabaseImpl.runCommandAsync(String commandName,
int commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Future<Document> |
MongoDatabaseImpl.runCommandAsync(String commandName,
String commandValue,
DocumentAssignable options)
Runs a command against the database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClientImpl.isCursorDocument(Document doc)
Returns true if the document looks like a cursor restart document.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractMongoCollection.aggregateAsync(Callback<List<Document>> results,
Aggregate.Builder command)
Invokes a aggregate command on the server.
|
abstract void |
AbstractMongoCollection.aggregateAsync(Callback<List<Document>> results,
Aggregate command)
Invokes a aggregate command on the server.
|
void |
MongoCollectionImpl.aggregateAsync(Callback<List<Document>> results,
Aggregate command)
Invokes a aggregate command on the server.
|
void |
TextCallback.callback(List<Document> result)
Called when the MongoDB operation has completed with the result of the
operation.
|
void |
AbstractMongoCollection.explainAsync(Callback<Document> results,
Find.Builder query)
Explains the way that the document will be performed.
|
abstract void |
AbstractMongoCollection.explainAsync(Callback<Document> results,
Find query)
Explains the way that the document will be performed.
|
void |
MongoCollectionImpl.explainAsync(Callback<Document> results,
Find query)
Explains the way that the document will be performed.
|
void |
AbstractMongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
abstract void |
AbstractMongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify command)
Invokes a findAndModify command on the server.
|
void |
MongoCollectionImpl.findAndModifyAsync(Callback<Document> results,
FindAndModify command)
Invokes a findAndModify command on the server.
|
void |
AbstractMongoCollection.findAsync(Callback<MongoIterator<Document>> results,
DocumentAssignable query)
Finds the set of documents matching the query document in the collection.
|
void |
AbstractMongoCollection.findAsync(Callback<MongoIterator<Document>> results,
Find.Builder query)
Finds the set of documents matching the query in the collection.
|
abstract void |
AbstractMongoCollection.findAsync(Callback<MongoIterator<Document>> results,
Find query)
Finds the set of documents matching the query in the collection.
|
void |
MongoCollectionImpl.findAsync(Callback<MongoIterator<Document>> results,
Find query)
Finds the set of documents matching the query in the collection.
|
void |
AbstractMongoCollection.findOneAsync(Callback<Document> results,
DocumentAssignable query)
Finds a single matching document in the collection.
|
void |
AbstractMongoCollection.findOneAsync(Callback<Document> results,
Find.Builder query)
Finds a single matching document in the collection.
|
abstract void |
AbstractMongoCollection.findOneAsync(Callback<Document> results,
Find query)
Finds a single matching document in the collection.
|
void |
MongoCollectionImpl.findOneAsync(Callback<Document> results,
Find query)
Finds a single matching document in the collection.
|
void |
AbstractMongoCollection.mapReduceAsync(Callback<List<Document>> results,
MapReduce.Builder command)
Invokes a mapReduce command on the server.
|
abstract void |
AbstractMongoCollection.mapReduceAsync(Callback<List<Document>> results,
MapReduce command)
Invokes a mapReduce command on the server.
|
void |
MongoCollectionImpl.mapReduceAsync(Callback<List<Document>> results,
MapReduce command)
Invokes a mapReduce command on the server.
|
MongoCursorControl |
ClientImpl.restart(StreamCallback<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 |
Client.restart(StreamCallback<Document> results,
DocumentAssignable cursorDocument)
Restarts a document stream from a cursor that was previously saved.
|
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
String command)
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.
|
MongoCursorControl |
AbstractMongoCollection.streamingFind(Callback<Document> results,
DocumentAssignable query)
Deprecated.
|
MongoCursorControl |
AbstractMongoCollection.streamingFind(Callback<Document> results,
Find query)
Deprecated.
|
MongoCursorControl |
AbstractMongoCollection.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.
|
MongoCursorControl |
AbstractMongoCollection.streamingFind(StreamCallback<Document> results,
Find.Builder query)
Finds the set of documents matching the query in the collection and
streams them to the provided callback one at a time.
|
abstract MongoCursorControl |
AbstractMongoCollection.streamingFind(StreamCallback<Document> results,
Find query)
Finds the set of documents matching the query in the collection and
streams them to the provided callback one at a time.
|
MongoCursorControl |
MongoCollectionImpl.streamingFind(StreamCallback<Document> results,
Find query)
Finds the set of documents matching the query in the collection and
streams them to the provided callback one at a time.
|
Constructor and Description |
---|
MongoIteratorImpl(Document cursorDocument,
Client client)
Create a new MongoIteratorImpl from a cursor document.
|
Constructor and Description |
---|
ReplyResultCallback(Callback<List<Document>> forwardCallback)
Create a new ReplyResultCallback.
|
ReplyResultCallback(String field,
Callback<List<Document>> forwardCallback)
Create a new ReplyResultCallback.
|
Modifier and Type | Field and Description |
---|---|
static Document |
IsMaster.IS_MASTER
The ismaster "query" document.
|
static Document |
ReplicaSetStatus.REPLICA_SET_STATUS
The serverStatus "query" document.
|
static Document |
ServerStatus.SERVER_STATUS
The serverStatus "query" document.
|
Modifier and Type | Method and Description |
---|---|
Document |
Update.getQuery()
Returns the query to select the document to update.
|
Document |
Query.getQuery()
Returns the query document containing the expression to select documents
from the collection.
|
Document |
Delete.getQuery()
Returns the query
Document . |
Document |
Query.getReturnFields()
Returns the optional document containing the fields to be returned.
|
Document |
Update.getUpdate()
Returns the updates to apply to the selected document(s).
|
Modifier and Type | Method and Description |
---|---|
List<Document> |
Insert.getDocuments()
Returns the documents to insert.
|
List<Document> |
Reply.getResults()
Returns the query results.
|
Constructor and Description |
---|
AdminCommand(Document commandDocument)
Create a new Command.
|
Command(String databaseName,
Document commandDocument)
Create a new Command.
|
Command(String databaseName,
Document commandDocument,
ReadPreference readPreference)
Create a new Command.
|
Delete(String databaseName,
String collectionName,
Document query,
boolean singleDelete)
Create a new Delete message.
|
Query(String databaseName,
String collectionName,
Document query,
Document returnFields,
int batchSize,
int limit,
int numberToSkip,
boolean tailable,
ReadPreference readPreference,
boolean noCursorTimeout,
boolean awaitData,
boolean exhaust,
boolean partial)
Creates a new Query.
|
Update(String databaseName,
String collectionName,
Document query,
Document update,
boolean multiUpdate,
boolean upsert)
Creates a new Update.
|
Constructor and Description |
---|
Insert(String databaseName,
String collectionName,
List<Document> documents,
boolean continueOnError)
Creates a new Insert.
|
Reply(int responseToId,
long cursorId,
int cursorOffset,
List<Document> results,
boolean awaitCapable,
boolean cursorNotFound,
boolean queryFailed,
boolean shardConfigStale)
Creates a new Reply.
|
Modifier and Type | Method and Description |
---|---|
Document |
ServerState.getTags()
Returns the tags for the server.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerState.setTags(Document tags)
Sets the tags for the server.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentToLargeException.getDocument()
Returns the document that was too big.
|
Constructor and Description |
---|
DocumentToLargeException(int size,
int maximum,
Document document)
Creates a new DocumentToLargeException.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.