public static class AccumulatorOperators.Max extends Object
AggregationExpression
for $max
.Modifier and Type | Method and Description |
---|---|
AccumulatorOperators.Max |
and(AggregationExpression expression)
Creates new
AccumulatorOperators.Max with all previously added arguments appending the given one. |
AccumulatorOperators.Max |
and(String fieldReference)
Creates new
AccumulatorOperators.Max with all previously added arguments appending the given one. |
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected static List<Field> |
asFields(String... fieldRefs) |
protected String |
getMongoMethod() |
static AccumulatorOperators.Max |
maxOf(AggregationExpression expression)
Creates new
AccumulatorOperators.Max . |
static AccumulatorOperators.Max |
maxOf(String fieldReference)
Creates new
AccumulatorOperators.Max . |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static AccumulatorOperators.Max maxOf(String fieldReference)
AccumulatorOperators.Max
.fieldReference
- must not be null.public static AccumulatorOperators.Max maxOf(AggregationExpression expression)
AccumulatorOperators.Max
.expression
- must not be null.public AccumulatorOperators.Max and(String fieldReference)
AccumulatorOperators.Max
with all previously added arguments appending the given one. $project
stage.fieldReference
- must not be null.public AccumulatorOperators.Max and(AggregationExpression expression)
AccumulatorOperators.Max
with all previously added arguments appending the given one. $project
stage.expression
- must not be null.public com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpression
toDbObject
in interface AggregationExpression
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.