public static class AccumulatorOperators.Min extends Object
AggregationExpression
for $min
.Modifier and Type | Method and Description |
---|---|
AccumulatorOperators.Min |
and(AggregationExpression expression)
Creates new
AccumulatorOperators.Min with all previously added arguments appending the given one. |
AccumulatorOperators.Min |
and(String fieldReference)
Creates new
AccumulatorOperators.Min 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.Min |
minOf(AggregationExpression expression)
Creates new
AccumulatorOperators.Min . |
static AccumulatorOperators.Min |
minOf(String fieldReference)
Creates new
AccumulatorOperators.Min . |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static AccumulatorOperators.Min minOf(String fieldReference)
AccumulatorOperators.Min
.fieldReference
- must not be null.public static AccumulatorOperators.Min minOf(AggregationExpression expression)
AccumulatorOperators.Min
.expression
- must not be null.public AccumulatorOperators.Min and(String fieldReference)
AccumulatorOperators.Min
with all previously added arguments appending the given one. $project
stage.fieldReference
- must not be null.public AccumulatorOperators.Min and(AggregationExpression expression)
AccumulatorOperators.Min
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.