public class TypedAggregation<I> extends Aggregation
TypedAggregation is a special Aggregation that holds information of the input aggregation type.CURRENT, DEFAULT_CONTEXT, DEFAULT_OPTIONS, operations, ROOT| Constructor and Description |
|---|
TypedAggregation(Class<I> inputType,
AggregationOperation... operations)
Creates a new
TypedAggregation from the given AggregationOperations. |
TypedAggregation(Class<I> inputType,
List<AggregationOperation> operations)
Creates a new
TypedAggregation from the given AggregationOperations. |
TypedAggregation(Class<I> inputType,
List<AggregationOperation> operations,
AggregationOptions options)
Creates a new
TypedAggregation from the given AggregationOperations and the given
AggregationOptions. |
| Modifier and Type | Method and Description |
|---|---|
Class<I> |
getInputType()
Returns the input type for the
Aggregation. |
TypedAggregation<I> |
withOptions(AggregationOptions options)
Returns a copy of this
Aggregation with the given AggregationOptions set. |
asAggregationList, bind, bucket, bucket, bucketAuto, bucketAuto, count, facet, facet, fields, geoNear, getOptions, graphLookup, group, group, limit, lookup, lookup, match, match, newAggregation, newAggregation, newAggregation, newAggregation, newAggregationOptions, out, previousOperation, project, project, replaceRoot, replaceRoot, replaceRoot, sample, skip, skip, sort, sort, toDocument, toString, unwind, unwind, unwind, unwindpublic TypedAggregation(Class<I> inputType, AggregationOperation... operations)
TypedAggregation from the given AggregationOperations.inputType - must not be null.operations - must not be null or empty.public TypedAggregation(Class<I> inputType, List<AggregationOperation> operations)
TypedAggregation from the given AggregationOperations.inputType - must not be null.operations - must not be null or empty.public TypedAggregation(Class<I> inputType, List<AggregationOperation> operations, AggregationOptions options)
TypedAggregation from the given AggregationOperations and the given
AggregationOptions.inputType - must not be null.operations - must not be null or empty.options - must not be null.public Class<I> getInputType()
Aggregation.public TypedAggregation<I> withOptions(AggregationOptions options)
AggregationAggregation with the given AggregationOptions set. Note that options are
supported in MongoDB version 2.6+.withOptions in class Aggregationoptions - must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.