public static class DateOperators.DateToString extends Object
AggregationExpression
for $dateToString
.Modifier and Type | Class and Description |
---|---|
static interface |
DateOperators.DateToString.FormatBuilder |
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.DateToString.FormatBuilder |
dateOf(AggregationExpression expression)
Creates new
DateOperators.DateToString.FormatBuilder allowing to define the date format to apply. |
static DateOperators.DateToString.FormatBuilder |
dateOf(String fieldReference)
Creates new
DateOperators.DateToString.FormatBuilder allowing to define the date format to apply. |
protected String |
getMongoMethod() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static DateOperators.DateToString.FormatBuilder dateOf(String fieldReference)
DateOperators.DateToString.FormatBuilder
allowing to define the date format to apply.fieldReference
- must not be null.public static DateOperators.DateToString.FormatBuilder dateOf(AggregationExpression expression)
DateOperators.DateToString.FormatBuilder
allowing to define the date format to apply.expression
- must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpression
toDbObject
in interface AggregationExpression
public com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.