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.groupBy(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
AsyncMongoCollection.groupByAsync(Callback<MongoIterator<Element>> results,
GroupBy.Builder command)
Invokes a group command on the server.
|
ListenableFuture<MongoIterator<Element>> |
AsyncMongoCollection.groupByAsync(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
AsyncMongoCollection.groupByAsync(LambdaCallback<MongoIterator<Element>> results,
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.maximumTime(long timeLimit,
TimeUnit timeLimitUnits)
Sets the maximum number of milliseconds to allow the command to run
before aborting the request on the server.
|
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.setMaximumTimeMilliseconds(long maximumTimeMilliseconds)
Sets the maximum number of milliseconds to allow the command to run
before aborting the request on the server.
|
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 |
---|---|
MongoIterator<Element> |
SynchronousMongoCollectionImpl.groupBy(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
AbstractAsyncMongoCollection.groupByAsync(Callback<MongoIterator<Element>> results,
GroupBy.Builder command)
Invokes a group command on the server.
|
ListenableFuture<MongoIterator<Element>> |
AbstractAsyncMongoCollection.groupByAsync(GroupBy.Builder command)
Invokes a group command on the server.
|
void |
AbstractAsyncMongoCollection.groupByAsync(LambdaCallback<MongoIterator<Element>> results,
GroupBy.Builder command)
Invokes a group command on the server.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.