Class IsoDates
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- dev.morphia.aggregation.experimental.expressions.impls.IsoDates
-
public class IsoDates extends Expression
Reusable type for ISO Date related expressions.- See Also:
DateExpressions.isoDayOfWeek(Expression)
,DateExpressions.isoWeek(Expression)
,DateExpressions.isoWeekYear(Expression)
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description IsoDates(String operation, Expression date)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
IsoDates
timezone(Expression timezone)
The optional timezone to use to format the date.-
Methods inherited from class dev.morphia.aggregation.experimental.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
IsoDates
public IsoDates(String operation, Expression date)
-
-
Method Detail
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
- Overrides:
encode
in classExpression
- Parameters:
mapper
- the mapperwriter
- the writerencoderContext
- the context
-
timezone
public IsoDates timezone(Expression timezone)
The optional timezone to use to format the date. By default, it uses UTC.- Parameters:
timezone
- the expression- Returns:
- this
-
-