public static class DateOperators.DayOfYear extends Object
AggregationExpression for $dayOfYear.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected static List<Field> |
asFields(String... fieldRefs) |
static DateOperators.DayOfYear |
dayOfYear(AggregationExpression expression)
Creates new
DateOperators.DayOfYear. |
static DateOperators.DayOfYear |
dayOfYear(String fieldReference)
Creates new
DateOperators.DayOfYear. |
protected String |
getMongoMethod() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static DateOperators.DayOfYear dayOfYear(String fieldReference)
DateOperators.DayOfYear.fieldReference - must not be null.public static DateOperators.DayOfYear dayOfYear(AggregationExpression expression)
DateOperators.DayOfYear.expression - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.