Class Serie


  • public class Serie
    extends java.lang.Object
    Represents a single data point series for an InfluxDB query Result.

    If this Series was the result of a query that grouped by tags, the Serie represents a single result group, with a common set of tags as specified by tags.

    If the Serie was the result of a query that did not group by tags, the Serie is the single result group and no tags field is specified.

    See Also:
    Result
    • Constructor Summary

      Constructors 
      Constructor Description
      Serie​(java.lang.String name, java.util.List<java.lang.String> tags, java.util.List<java.lang.String> columns, java.util.List<java.util.List<java.lang.Object>> values)
      Creates a Serie.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<java.lang.String> getColumns()
      Holds the column names selected in the SELECT clause.
      java.lang.String getName()
      The name of the measurement that was requested in the FROM clause.
      java.util.List<java.lang.String> getTags()
      The grouping tags shared by all data points in this Series.
      java.util.List<java.util.List<java.lang.Object>> getValues()
      The data points in the Series as a list of [<time>, <col1-value>, <col2-value>, ...] tuples.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Serie

        public Serie​(java.lang.String name,
                     java.util.List<java.lang.String> tags,
                     java.util.List<java.lang.String> columns,
                     java.util.List<java.util.List<java.lang.Object>> values)
        Creates a Serie.
        Parameters:
        name - The name of the measurement that was requested in the FROM clause.
        tags - The grouping tags shared by all data points in this Series. Only set if the query grouped by tag, otherwise null.
        columns - Holds the column names selected in the SELECT clause. The first column is always time.
        values - The data points in the Series as a list of [<time>, <col1-value>, <col2-value>, ...] tuples.
    • Method Detail

      • getName

        public java.lang.String getName()
        The name of the measurement that was requested in the FROM clause.
        Returns:
      • getTags

        public java.util.List<java.lang.String> getTags()
        The grouping tags shared by all data points in this Series. Only set if the query grouped by tag, otherwise null.
        Returns:
      • getColumns

        public java.util.List<java.lang.String> getColumns()
        Holds the column names selected in the SELECT clause. The first column is always time.
        Returns:
      • getValues

        public java.util.List<java.util.List<java.lang.Object>> getValues()
        The data points in the Series as a list of [<time>, <col1-value>, <col2-value>, ...] tuples.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object