Spring Data MongoDB - Core

org.springframework.data.mongodb.core.aggregation
Class TypedAggregation<I>

java.lang.Object
  extended by org.springframework.data.mongodb.core.aggregation.Aggregation
      extended by org.springframework.data.mongodb.core.aggregation.TypedAggregation<I>

public class TypedAggregation<I>
extends Aggregation

A TypedAggregation is a special Aggregation that holds information of the input aggregation type.

Author:
Thomas Darimont, Oliver Gierke

Field Summary
 
Fields inherited from class org.springframework.data.mongodb.core.aggregation.Aggregation
DEFAULT_CONTEXT
 
Constructor Summary
TypedAggregation(Class<I> inputType, AggregationOperation... operations)
          Creates a new TypedAggregation from the given AggregationOperations.
 
Method Summary
 Class<I> getInputType()
          Returns the input type for the Aggregation.
 
Methods inherited from class org.springframework.data.mongodb.core.aggregation.Aggregation
bind, fields, group, group, limit, match, newAggregation, newAggregation, previousOperation, project, project, skip, sort, sort, toDbObject, toString, unwind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedAggregation

public TypedAggregation(Class<I> inputType,
                        AggregationOperation... operations)
Creates a new TypedAggregation from the given AggregationOperations.

Parameters:
operations - must not be null or empty.
Method Detail

getInputType

public Class<I> getInputType()
Returns the input type for the Aggregation.

Returns:
the inputType will never be null.

Spring Data MongoDB - Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.