Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
Modifier and Type | Method and Description |
---|---|
long |
MongoCollection.count(Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(Callback<Long> results,
Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AsyncMongoCollection.countAsync(Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
void |
AsyncMongoCollection.countAsync(LambdaCallback<Long> results,
Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
Modifier and Type | Method and Description |
---|---|
static Count.Builder |
Count.builder()
Creates a new builder for a
Count . |
Count.Builder |
Count.Builder.maximumTime(long timeLimit,
TimeUnit timeLimitUnits)
Sets the maximum number of milliseconds to allow the query to run
before aborting the request on the server.
|
Count.Builder |
Count.Builder.query(DocumentAssignable query)
Sets the value of the query document to the new value.
|
Count.Builder |
Count.Builder.readPreference(ReadPreference readPreference)
Sets the preference for the set of servers to retrieve the results
from.
|
Count.Builder |
Count.Builder.reset()
Resets the builder back to its initial state for reuse.
|
Count.Builder |
Count.Builder.setMaximumTimeMilliseconds(long maximumTimeMilliseconds)
Sets the maximum number of milliseconds to allow the query to run
before aborting the request on the server.
|
Count.Builder |
Count.Builder.setQuery(DocumentAssignable query)
Sets the value of the query document to the new value.
|
Count.Builder |
Count.Builder.setReadPreference(ReadPreference readPreference)
Sets the preference for the set of servers to retrieve the results
from.
|
Constructor and Description |
---|
Count(Count.Builder builder)
Creates a new Count.
|
Modifier and Type | Method and Description |
---|---|
long |
SynchronousMongoCollectionImpl.count(Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(Callback<Long> results,
Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
ListenableFuture<Long> |
AbstractAsyncMongoCollection.countAsync(Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
void |
AbstractAsyncMongoCollection.countAsync(LambdaCallback<Long> results,
Count.Builder count)
Counts the set of documents matching the query document in the
collection.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.