Class SortField

  • All Implemented Interfaces:
    Node

    public class SortField
    extends Object
    implements Node
    A Field used to sort the data.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • asc

        public static SortField asc​(String name)
        Create an ASC based sort field
        Parameters:
        name - the field name
        Returns:
        a sort field
      • desc

        public static SortField desc​(String name)
        Create an DESC based sort field
        Parameters:
        name - the field name
        Returns:
        a sort field
      • 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