public static class DateOperators.DateFromString extends DateOperators.TimezonedDateAggregationExpression
appendTimezone, hasTimezonepublic static DateOperators.DateFromString fromString(Object value)
DateOperators.DateFromString.value - must not be null.DateOperators.DateFromString.IllegalArgumentException - if given value is null.public static DateOperators.DateFromString fromStringOf(String fieldReference)
DateOperators.DateFromString.fieldReference - must not be null.DateOperators.DateFromString.IllegalArgumentException - if given fieldReference is null.public static DateOperators.DateFromString fromStringOf(AggregationExpression expression)
DateOperators.DateFromString.expression - must not be null.DateOperators.DateFromString.IllegalArgumentException - if given expression is null.public DateOperators.DateFromString 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.DateFromString.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–2018 Pivotal Software, Inc.. All rights reserved.