public static class DateOperators.IsoDayOfWeek extends DateOperators.TimezonedDateAggregationExpression
AggregationExpression for $isoDayOfWeek.| 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.
|
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() |
static DateOperators.IsoDayOfWeek |
isoDayOfWeek(AggregationExpression expression)
Creates new
DateOperators.IsoDayOfWeek. |
static DateOperators.IsoDayOfWeek |
isoDayOfWeek(String fieldReference)
Creates new
DateOperators.IsoDayOfWeek. |
static DateOperators.IsoDayOfWeek |
isoDayWeek(Object value)
Creates new
DateOperators.IsoDayOfWeek. |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
DateOperators.IsoDayOfWeek |
withTimezone(DateOperators.Timezone timezone)
Optionally set the
DateOperators.Timezone to use. |
appendTimezone, hasTimezonepublic static DateOperators.IsoDayOfWeek isoDayWeek(Object value)
DateOperators.IsoDayOfWeek.value - must not be null and resolve to field, expression or object that represents a date.DateOperators.IsoDayOfWeek.IllegalArgumentException - if given value is null.public static DateOperators.IsoDayOfWeek isoDayOfWeek(String fieldReference)
DateOperators.IsoDayOfWeek.fieldReference - must not be null.public static DateOperators.IsoDayOfWeek isoDayOfWeek(AggregationExpression expression)
DateOperators.IsoDayOfWeek.expression - must not be null.public DateOperators.IsoDayOfWeek 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.IsoDayOfWeek.IllegalArgumentException - if given timezone is null.protected String getMongoMethod()
public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionpublic com.mongodb.DBObject toDbObject(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–2018 Pivotal Software, Inc.. All rights reserved.