Class ObjectExpressions.MergeObjects

  • Enclosing class:
    ObjectExpressions

    public static class ObjectExpressions.MergeObjects
    extends dev.morphia.aggregation.expressions.impls.Expression
    Defines the values to be merged.
    • Constructor Detail

      • MergeObjects

        protected MergeObjects()
    • Method Detail

      • add

        public ObjectExpressions.MergeObjects add​(dev.morphia.aggregation.expressions.impls.Expression expression)
        Adds an expression to be merged
        Parameters:
        expression - the expression
        Returns:
        this
      • encode

        public void encode​(Datastore datastore,
                           BsonWriter writer,
                           EncoderContext encoderContext)
        Overrides:
        encode in class dev.morphia.aggregation.expressions.impls.Expression
        Parameters:
        datastore - the datastore
        writer - the writer
        encoderContext - the context