Class VarRef

  • All Implemented Interfaces:
    Expression, Node

    public class VarRef
    extends Object
    implements Expression
    Reference to variable of name of field / alias
    • Constructor Detail

      • VarRef

        public VarRef​(String value,
                      DataType type)
        Build a varRef from name and type
        Parameters:
        type - type
        value - value
      • VarRef

        public VarRef​(String expr)
        Build a varRef from name
        Parameters:
        expr - name
    • Method Detail

      • of

        public static VarRef of​(String expr)
        Build a reference given its name and datatype
        Parameters:
        expr - ref name
        Returns:
        a VarRef
      • of

        public static VarRef of​(String expr,
                                DataType type)
        Build a reference given its name and datatype
        Parameters:
        expr - ref name
        type - type
        Returns:
        a VarRef
      • toString

        public String toString()
        Description copied from interface: Node
        Convert the current Node to an influxql String that the parser must be able to read.
        Specified by:
        toString in interface Node
        Overrides:
        toString in class Object
        Returns:
        an InfluxQL string