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.groupBy(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
MongoCollection.groupByAsync(Callback<ArrayElement> results,
GroupBy.Builder command)
Invokes a group command on the server.
|
Future<ArrayElement> |
MongoCollection.groupByAsync(GroupBy.Builder command)
Invokes a group command on the server.
|
Modifier and Type | Method and Description |
---|---|
static GroupBy.Builder |
GroupBy.builder()
Creates a new builder for a
GroupBy . |
GroupBy.Builder |
GroupBy.Builder.finalize(String finalizeFunction)
Sets the value of the finalizer function to run for each group.
|
GroupBy.Builder |
GroupBy.Builder.initialValue(DocumentAssignable initialValue)
Sets the value of the initial value for the group.
|
GroupBy.Builder |
GroupBy.Builder.key(String keyFunction)
Sets the value of the function to return the key for a document.
|
GroupBy.Builder |
GroupBy.Builder.keys(Set<String> keys)
Sets the fields to group by
|
GroupBy.Builder |
GroupBy.Builder.query(DocumentAssignable query)
Sets the value of the query to select the documents to run the group
against.
|
GroupBy.Builder |
GroupBy.Builder.readPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the GroupBy command. |
GroupBy.Builder |
GroupBy.Builder.reduce(String reduceFunction)
Sets the value of the reduce function taking the previous value and
the current value and returning the new reduced value.
|
GroupBy.Builder |
GroupBy.Builder.reset()
Resets the builder back to its initial state.
|
GroupBy.Builder |
GroupBy.Builder.setFinalizeFunction(String finalizeFunction)
Sets the value of the finalizer function to run for each group.
|
GroupBy.Builder |
GroupBy.Builder.setInitialValue(DocumentAssignable initialValue)
Sets the value of the initial value for the group.
|
GroupBy.Builder |
GroupBy.Builder.setKeyFunction(String keyFunction)
Sets the value of the function to return the key for a document.
|
GroupBy.Builder |
GroupBy.Builder.setKeys(Set<String> keys)
Sets the fields to group by
|
GroupBy.Builder |
GroupBy.Builder.setQuery(DocumentAssignable query)
Sets the value of the query to select the documents to run the group
against.
|
GroupBy.Builder |
GroupBy.Builder.setReadPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the GroupBy command. |
GroupBy.Builder |
GroupBy.Builder.setReduceFunction(String reduceFunction)
Sets the value of the reduce function taking the previous value and
the current value and returning the new reduced value.
|
Constructor and Description |
---|
GroupBy(GroupBy.Builder builder)
Creates a new GroupBy.
|
Modifier and Type | Method and Description |
---|---|
ArrayElement |
AbstractMongoCollection.groupBy(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
AbstractMongoCollection.groupByAsync(Callback<ArrayElement> results,
GroupBy.Builder command)
Invokes a group command on the server.
|
Future<ArrayElement> |
AbstractMongoCollection.groupByAsync(GroupBy.Builder command)
Invokes a group command on the server.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.