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 |
---|---|
MongoIterator<Element> |
MongoCollection.distinct(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
AsyncMongoCollection.distinctAsync(Callback<MongoIterator<Element>> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
ListenableFuture<MongoIterator<Element>> |
AsyncMongoCollection.distinctAsync(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
AsyncMongoCollection.distinctAsync(LambdaCallback<MongoIterator<Element>> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
Modifier and Type | Method and Description |
---|---|
static Distinct.Builder |
Distinct.builder()
Creates a new builder for a
Distinct . |
Distinct.Builder |
Distinct.Builder.key(String key)
Sets the name of the key to collect distinct values for.
|
Distinct.Builder |
Distinct.Builder.maximumTime(long timeLimit,
TimeUnit timeLimitUnits)
Sets the maximum number of milliseconds to allow the command to run
before aborting the request on the server.
|
Distinct.Builder |
Distinct.Builder.query(DocumentAssignable query)
Sets the value of the query to select the documents to run the
distinct against.
|
Distinct.Builder |
Distinct.Builder.readPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the Distinct command. |
Distinct.Builder |
Distinct.Builder.reset()
Resets the builder back to its initial state.
|
Distinct.Builder |
Distinct.Builder.setKey(String key)
Sets the name of the key to collect distinct values for.
|
Distinct.Builder |
Distinct.Builder.setMaximumTimeMilliseconds(long maximumTimeMilliseconds)
Sets the maximum number of milliseconds to allow the command to run
before aborting the request on the server.
|
Distinct.Builder |
Distinct.Builder.setQuery(DocumentAssignable query)
Sets the value of the query to select the documents to run the
distinct against.
|
Distinct.Builder |
Distinct.Builder.setReadPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the Distinct command. |
Constructor and Description |
---|
Distinct(Distinct.Builder builder)
Creates a new Distinct.
|
Modifier and Type | Method and Description |
---|---|
MongoIterator<Element> |
SynchronousMongoCollectionImpl.distinct(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
AbstractAsyncMongoCollection.distinctAsync(Callback<MongoIterator<Element>> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
ListenableFuture<MongoIterator<Element>> |
AbstractAsyncMongoCollection.distinctAsync(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
AbstractAsyncMongoCollection.distinctAsync(LambdaCallback<MongoIterator<Element>> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.