Package | Description |
---|---|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
BsonJavaScript |
GroupOperation.getFinalizeFunction()
Gets the function that runs each item in the result before returning the final value.
|
BsonJavaScript |
MapReduceToCollectionOperation.getFinalizeFunction()
Gets the JavaScript function that follows the reduce method and modifies the output.
|
BsonJavaScript |
MapReduceWithInlineResultsOperation.getFinalizeFunction()
Gets the JavaScript function that follows the reduce method and modifies the output.
|
BsonJavaScript |
GroupOperation.getKeyFunction()
Gets the function that creates a "key object" for use as the grouping key.
|
BsonJavaScript |
MapReduceToCollectionOperation.getMapFunction()
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
|
BsonJavaScript |
MapReduceWithInlineResultsOperation.getMapFunction()
Gets the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
|
BsonJavaScript |
GroupOperation.getReduceFunction()
Gets the aggregation function that operates on the documents during the grouping operation.
|
BsonJavaScript |
MapReduceToCollectionOperation.getReduceFunction()
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
|
BsonJavaScript |
MapReduceWithInlineResultsOperation.getReduceFunction()
Gets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
|
Modifier and Type | Method and Description |
---|---|
GroupOperation<T> |
GroupOperation.finalizeFunction(BsonJavaScript finalizeFunction)
Sets the function that runs each item in the result set before returning the final value.
|
MapReduceToCollectionOperation |
MapReduceToCollectionOperation.finalizeFunction(BsonJavaScript finalizeFunction)
Sets the JavaScript function that follows the reduce method and modifies the output.
|
MapReduceWithInlineResultsOperation<T> |
MapReduceWithInlineResultsOperation.finalizeFunction(BsonJavaScript finalizeFunction)
Sets the JavaScript function that follows the reduce method and modifies the output.
|
GroupOperation<T> |
GroupOperation.keyFunction(BsonJavaScript keyFunction)
Sets the function that creates a "key object" for use as the grouping key.
|
Constructor and Description |
---|
GroupOperation(MongoNamespace namespace,
BsonJavaScript reduceFunction,
BsonDocument initial,
Decoder<T> decoder)
Create an operation that will perform a Group on a given collection.
|
MapReduceToCollectionOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
String collectionName)
Construct a MapReduceOperation with all the criteria it needs to execute
|
MapReduceWithInlineResultsOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
Decoder<T> decoder)
Construct a MapReduceOperation with all the criteria it needs to execute.
|
Modifier and Type | Method and Description |
---|---|
BsonJavaScript |
BsonValue.asJavaScript()
Gets this value as a
BsonJavaScript if it is one, otherwise throws exception |
Modifier and Type | Method and Description |
---|---|
BsonJavaScript |
BsonJavaScriptCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<BsonJavaScript> |
BsonJavaScriptCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonJavaScriptCodec.encode(BsonWriter writer,
BsonJavaScript value,
EncoderContext encoderContext) |
Copyright © 2016. All Rights Reserved.