Package dev.morphia.aggregation.codecs
Class ExpressionHelper
- java.lang.Object
-
- dev.morphia.aggregation.codecs.ExpressionHelper
-
@MorphiaInternal public final class ExpressionHelper extends Object
- Since:
- 2.1
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
array(Datastore datastore, BsonWriter writer, String name, List<dev.morphia.aggregation.expressions.impls.Expression> list, EncoderContext encoderContext)
static void
array(BsonWriter writer, Runnable body)
static void
array(BsonWriter writer, String name, Runnable body)
static Document
document(Mapper mapper, Document seed, Consumer<BsonWriter> body)
static void
document(BsonWriter writer, Runnable body)
static void
document(BsonWriter writer, String name, Runnable body)
static void
encode(BsonWriter writer, Sort sort)
static void
expression(Datastore datastore, BsonWriter writer, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
expression(Datastore datastore, BsonWriter writer, String name, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
value(Datastore datastore, BsonWriter writer, Object value, EncoderContext encoderContext)
static void
value(Datastore datastore, BsonWriter writer, String name, Object value, EncoderContext encoderContext)
static void
value(BsonWriter writer, String name, Boolean value)
static void
value(BsonWriter writer, String name, Double value)
static void
value(BsonWriter writer, String name, Integer value)
static void
value(BsonWriter writer, String name, Long value)
static void
value(BsonWriter writer, String name, String value)
static void
wrapExpression(Datastore datastore, BsonWriter writer, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
wrapExpression(Datastore datastore, BsonWriter writer, String name, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
-
-
-
Method Detail
-
array
public static void array(BsonWriter writer, Runnable body)
-
array
public static void array(Datastore datastore, BsonWriter writer, String name, @Nullable List<dev.morphia.aggregation.expressions.impls.Expression> list, EncoderContext encoderContext)
-
array
public static void array(BsonWriter writer, String name, Runnable body)
-
wrapExpression
@MorphiaInternal public static void wrapExpression(Datastore datastore, BsonWriter writer, @Nullable dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-expression
-encoderContext
-- Since:
- 2.3
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
document
public static void document(BsonWriter writer, Runnable body)
-
document
public static void document(BsonWriter writer, String name, Runnable body)
-
document
public static Document document(Mapper mapper, Document seed, Consumer<BsonWriter> body)
-
encode
public static void encode(BsonWriter writer, Sort sort)
-
expression
@MorphiaInternal public static void expression(Datastore datastore, BsonWriter writer, String name, @Nullable dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-name
-expression
-encoderContext
-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
expression
@MorphiaInternal public static void expression(Datastore datastore, BsonWriter writer, @Nullable dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-expression
-encoderContext
-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
value
@MorphiaInternal public static void value(Datastore datastore, BsonWriter writer, String name, @Nullable Object value, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-name
-value
-encoderContext
-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
value
public static void value(BsonWriter writer, String name, @Nullable Boolean value)
-
value
public static void value(BsonWriter writer, String name, @Nullable Integer value)
-
value
public static void value(BsonWriter writer, String name, @Nullable Double value)
-
value
public static void value(BsonWriter writer, String name, @Nullable Long value)
-
value
public static void value(BsonWriter writer, String name, @Nullable String value)
-
value
@MorphiaInternal public static void value(Datastore datastore, BsonWriter writer, @Nullable Object value, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-value
-encoderContext
-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
wrapExpression
@MorphiaInternal public static void wrapExpression(Datastore datastore, BsonWriter writer, String name, @Nullable dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
- Parameters:
datastore
-writer
-name
-expression
-encoderContext
-- Since:
- 2.3
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-