Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
com.allanbank.mongodb.client.message |
Low level messages to be sent to the MongoDB server.
|
com.allanbank.mongodb.client.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 Version |
Version.UNKNOWN
A version to use when we don't know the version.
|
static Version |
Version.VERSION
The driver's version.
|
static Version |
Version.VERSION_0
The "zero" version which should be before all other versions.
|
static Version |
Version.VERSION_2_0
Version 2.0
|
static Version |
Version.VERSION_2_2
Version 2.2
|
static Version |
Version.VERSION_2_4
Version 2.4
|
protected static Version |
Version.VERSION_2_5_2
Version 2.5.2 - Wire Protocol version = 1.
|
protected static Version |
Version.VERSION_2_5_4
Version 2.5.4 - Wire Protocol version = 2.
|
static Version |
Version.VERSION_2_6
Version 2.6
|
Modifier and Type | Method and Description |
---|---|
static Version |
Version.earlier(Version lhs,
Version rhs)
Returns the earlier of the two versions.
|
static Version |
Version.forWireVersion(int wireVersion)
Returns the best guess at the version of the server based on the wire
protocol version number.
|
static Version |
Version.later(Version lhs,
Version rhs)
Returns the later of the two versions.
|
static Version |
Version.parse(List<NumericElement> versionArray)
Parses a version from a version array.
|
static Version |
Version.parse(String version)
Parses a version of the general format 'int.int.int-suffix'.
|
Modifier and Type | Method and Description |
---|---|
int |
Version.compareTo(Version other) |
static Version |
Version.earlier(Version lhs,
Version rhs)
Returns the earlier of the two versions.
|
static Version |
Version.later(Version lhs,
Version rhs)
Returns the later of the two versions.
|
void |
MongoDatabase.runCommandAsync(Callback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
void |
MongoDatabase.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
Modifier and Type | Field and Description |
---|---|
static Version |
Aggregate.ALLOW_DISK_USAGE_REQUIRED_VERSION
The first version of MongoDB to support the
$geoNear pipeline
operator. |
static Version |
Aggregate.CURSOR_VERSION
The first version of MongoDB to support the
aggregate command
using a cursor. |
static Version |
Aggregate.EXPLAIN_VERSION
The first version of MongoDB to support the
aggregate command
with the explain option. |
static Version |
Aggregate.GEO_NEAR_REQUIRED_VERSION
The first version of MongoDB to support the
$geoNear pipeline
operator. |
static Version |
Count.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
count command with
the ability to limit the execution time on the server. |
static Version |
Aggregate.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
aggregate command
with the ability to limit the execution time on the server. |
static Version |
Find.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the queries with the ability to
limit the execution time on the server.
|
static Version |
Distinct.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
distinct command with
the ability to limit the execution time on the server. |
static Version |
GroupBy.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
group command with
the ability to limit the execution time on the server. |
static Version |
MapReduce.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
mapreduce command
with the ability to limit the execution time on the server. |
static Version |
FindAndModify.MAX_TIMEOUT_VERSION
The first version of MongoDB to support the
findAndModify command
with the ability to limit the execution time on the server. |
static Version |
GeoJson.MULTI_SUPPORT_VERSION
The version of MongoDB that provided support for Multi* GeoJSON objects.
|
protected Version |
Aggregate.Builder.myRequiredVersion
The version required for the aggregation.
|
static Version |
GeospatialOperator.POLYGON_VERSION
The version (2.0) of the MongoDB server that added support for the
"$polygon" modifier of
$within |
static Version |
Aggregate.REDACT_REQUIRED_VERSION
The first version of MongoDB to support the
$redact pipeline
operator. |
static Version |
Aggregate.REQUIRED_VERSION
The first version of MongoDB to support the
aggregate command. |
static Version |
BatchedWrite.REQUIRED_VERSION
The first version of MongoDB to support the
aggregate command. |
static Version |
Text.REQUIRED_VERSION
Deprecated.
The first version of MongoDB to support the text command.
|
static Version |
ParallelScan.REQUIRED_VERSION
The first version of MongoDB to support the
parallelCollectionScan command. |
static Version |
GeospatialOperator.UNIQUE_DOCS_REMOVED_VERSION
The version (2.5) of the MongoDB server that removed support for the
"$uniqueDocs" modifier.
|
Modifier and Type | Method and Description |
---|---|
Version |
Aggregate.getRequiredVersion()
Returns the version required for the aggregation.
|
Version |
GeospatialOperator.getVersion()
Returns the first MongoDB version to support the operator.
|
Version |
Operator.getVersion()
Returns the first MongoDB version to support the operator.
|
Version |
LogicalOperator.getVersion()
Returns the first MongoDB version to support the operator.
|
Version |
MiscellaneousOperator.getVersion()
Returns the first MongoDB version to support the operator.
|
Version |
ComparisonOperator.getVersion()
Returns the first MongoDB version to support the operator.
|
Modifier and Type | Method and Description |
---|---|
protected Version |
SynchronousMongoCollectionImpl.determineIndexServerVersion(Element[] keys)
Determines the minimum server version required to support the provided
index keys and options.
|
Version |
VersionRange.getLowerBounds()
Returns the lower, inclusive, bounds of the range.
|
Version |
VersionRange.getUpperBounds()
Returns the upper, exclusive, bounds of the range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VersionRange.contains(Version version)
Returns true if the version is within the bounds of this
VersionRange . |
protected void |
AbstractMongoOperations.doInsertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
Version requiredServerVersion,
DocumentAssignable... documents)
Sends an
Insert message to the server. |
static VersionRange |
VersionRange.maximum(Version maxVersion)
Returns a
VersionRange that is only limited by a maximum version. |
static VersionRange |
VersionRange.minimum(Version minVersion)
Returns a
VersionRange that is only limited by a minimum version. |
static VersionRange |
VersionRange.range(Version minVersion,
Version maxVersion)
Returns a
VersionRange based on the minimum and maximum versions
provided. |
void |
MongoDatabaseImpl.runCommandAsync(Callback<Document> reply,
DocumentAssignable command,
Version requireServerVersion)
Runs a command against the database.
|
void |
MongoDatabaseImpl.runCommandAsync(LambdaCallback<Document> reply,
DocumentAssignable command,
Version requiredServerVersion)
Runs a command against the database.
|
Modifier and Type | Field and Description |
---|---|
static Version |
CreateIndexCommand.REQUIRED_VERSION
The first version of MongoDB to support the
createIndexes
command. |
static Version |
ParallelScanCommand.REQUIRED_VERSION
The first version of MongoDB to support the
parallelCollectionScan command. |
Modifier and Type | Method and Description |
---|---|
Version |
QueryVersionVisitor.getMaximumServerVersion()
Returns the version of the server that removed the ability to process the
visited query.
|
Version |
QueryVersionVisitor.getRequiredServerVersion()
Returns the required server version to support the visited query.
|
Modifier and Type | Method and Description |
---|---|
Version |
Server.getVersion()
Returns the version of the server.
|
Modifier and Type | Method and Description |
---|---|
Version |
ServerVersionException.getActualVersion()
Returns the actual server version.
|
Version |
ServerVersionException.getMaximumVersion()
Returns the maximum (exclusive) server version for the operation.
|
Version |
ServerVersionException.getRequiredVersion()
Returns the required (inclusive) server version for the operation.
|
Constructor and Description |
---|
ServerVersionException(String operation,
VersionRange range,
Version actual,
Message message)
Creates a new ServerVersionException.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.