Class Variable<TExpression>

  • Type Parameters:
    TExpression - the type of the value for the new variable

    public class Variable<TExpression>
    extends 
    Helps define new variable for the $lookup pipeline stage
    Since:
    3.7
    MongoDB documentation
    Since server release
    • Constructor Detail

      • Variable

        public Variable​( name,
                        TExpression value)
        Creates a new variable definition for use in $lookup pipeline stages
        Parameters:
        name - the name of the new variable
        value - the value of the new variable
        MongoDB documentation
    • Method Detail

      • getName

        public  getName()
        Returns:
        the name of the new variable
      • getValue

        public TExpression getValue()
        Returns:
        the value of the new variable
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class