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 |
---|---|
ArrayElement |
MongoCollection.distinct(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
MongoCollection.distinctAsync(Callback<ArrayElement> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
Future<ArrayElement> |
MongoCollection.distinctAsync(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.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.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 |
---|---|
ArrayElement |
AbstractMongoCollection.distinct(Distinct.Builder command)
Invokes a distinct command on the server.
|
void |
AbstractMongoCollection.distinctAsync(Callback<ArrayElement> results,
Distinct.Builder command)
Invokes a distinct command on the server.
|
Future<ArrayElement> |
AbstractMongoCollection.distinctAsync(Distinct.Builder command)
Invokes a distinct command on the server.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.