Class Field

  • All Implemented Interfaces:
    Node

    public class Field
    extends Object
    implements Node
    Basic selection Field
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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
      • field

        public static Field field​(String name)
        Build a field by name
        Parameters:
        name - field name
        Returns:
        a field
      • field

        public static Field field​(String name,
                                  DataType type)
        Build a field with name and datatype
        Parameters:
        name - name
        type - type
        Returns:
        the Field
      • wildcard

        public static Field wildcard()
        Create a wildcard field
        Returns:
        field
      • wildcardFields

        public static Field wildcardFields()
        Create a field that wildcard all field but not tags
        Returns:
        a field
      • wildcardTags

        public static Field wildcardTags()
        Create a field that wildcard all tags but not field
        Returns:
        a field
      • of

        public static Field of​(Expression expression)
        Build a generic field based on an expression
        Parameters:
        expression - the expresion for the field
        Returns:
        a field