Package | Description |
---|---|
com.mongodb.binding |
This package contains classes that manage binding to MongoDB servers for various operations.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ReadWriteBinding
A factory of connection sources to servers that can be read from or written to.
|
Modifier and Type | Class and Description |
---|---|
class |
ClusterBinding
A simple ReadWriteBinding implementation that supplies write connection sources bound to a possibly different primary each time, and a
read connection source bound to a possible different server each time.
|
class |
SingleConnectionReadBinding
A read binding that is bound to a single connection.
|
class |
SingleServerBinding
A simple binding where all connection sources are bound to the server specified in the constructor.
|
Modifier and Type | Method and Description |
---|---|
ReadBinding |
ReadBinding.retain() |
ReadBinding |
SingleConnectionReadBinding.retain() |
Modifier and Type | Method and Description |
---|---|
Long |
CountOperation.execute(ReadBinding binding) |
T |
ReadOperation.execute(ReadBinding binding)
General execute which can return anything of type T
|
T |
CommandReadOperation.execute(ReadBinding binding) |
BatchCursor<T> |
GroupOperation.execute(ReadBinding binding)
Will return a cursor of Documents containing the results of the group operation.
|
BatchCursor<T> |
DistinctOperation.execute(ReadBinding binding) |
BatchCursor<T> |
ListIndexesOperation.execute(ReadBinding binding) |
BatchCursor<T> |
AggregateOperation.execute(ReadBinding binding) |
BatchCursor<T> |
ListCollectionsOperation.execute(ReadBinding binding) |
BatchCursor<T> |
ListDatabasesOperation.execute(ReadBinding binding)
Executing this will return a list of all the databases names in the MongoDB instance.
|
List<BatchCursor<T>> |
ParallelCollectionScanOperation.execute(ReadBinding binding) |
Boolean |
UserExistsOperation.execute(ReadBinding binding) |
BatchCursor<T> |
FindOperation.execute(ReadBinding binding) |
BsonDocument |
CurrentOpOperation.execute(ReadBinding binding) |
MapReduceBatchCursor<T> |
MapReduceWithInlineResultsOperation.execute(ReadBinding binding)
Executing this will return a cursor with your results and the statistics in.
|
Copyright © 2016. All Rights Reserved.