public static class DateOperators.DayOfMonth extends DateOperators.TimezonedDateAggregationExpression
AggregationExpression for $dayOfMonth.| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
protected static List<Field> |
asFields(String... fieldRefs) |
protected boolean |
contains(Object key)
Check if the given key is available.
|
static DateOperators.DayOfMonth |
dayOfMonth(AggregationExpression expression)
Creates new
DateOperators.DayOfMonth. |
static DateOperators.DayOfMonth |
dayOfMonth(Object value)
Creates new
DateOperators.DayOfMonth. |
static DateOperators.DayOfMonth |
dayOfMonth(String fieldReference)
Creates new
DateOperators.DayOfMonth. |
protected <T> T |
get(int index)
Get the value at a given index.
|
protected <T> T |
get(Object key)
Get the value for a given key.
|
protected String |
getMongoMethod() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
DateOperators.DayOfMonth |
withTimezone(DateOperators.Timezone timezone)
Optionally set the
DateOperators.Timezone to use. |
appendTimezone, hasTimezonepublic static DateOperators.DayOfMonth dayOfMonth(Object value)
DateOperators.DayOfMonth.value - must not be null and resolve to field, expression or object that represents a date.DateOperators.DayOfMonth.IllegalArgumentException - if given value is null.public static DateOperators.DayOfMonth dayOfMonth(String fieldReference)
DateOperators.DayOfMonth.fieldReference - must not be null.public static DateOperators.DayOfMonth dayOfMonth(AggregationExpression expression)
DateOperators.DayOfMonth.expression - must not be null.public DateOperators.DayOfMonth withTimezone(DateOperators.Timezone timezone)
DateOperators.Timezone to use. If not specified UTC is used.withTimezone in class DateOperators.TimezonedDateAggregationExpressiontimezone - must not be null. Consider DateOperators.Timezone.none() instead.DateOperators.DayOfMonth.IllegalArgumentException - if given timezone is null.protected String getMongoMethod()
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.