Class 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 Detail

      • 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.
      • 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

        @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.