Class Result


  • public class Result
    extends java.lang.Object
    Represents the results of a particular InfluxDB SELECT query.
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(java.lang.String error, java.util.List<Serie> series)
      Creates a Result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getError()
      Contains an error message if the query failed to execute and did not produce any result.
      java.util.List<Serie> getSeries()
      The collection of series that resulted from the query.
      int hashCode()  
      boolean isError()
      Returns true if the query failed to execute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Result

        public Result​(java.lang.String error,
                      java.util.List<Serie> series)
        Creates a Result.
        Parameters:
        error - Contains an error message if the query failed to execute and did not produce any result.
        series - The collection of series that resulted from the query. Normally, the result only a contains a single Serie. However, if the result was produced for a query that grouped by tag (GROUP BY <tag>), this list will contain one Serie for each set of data points that share a commons set of tags (i.e. one Serie for each result group).
    • Method Detail

      • isError

        public boolean isError()
        Returns true if the query failed to execute. The error message can be retrieved from getError().
        Returns:
      • getError

        public java.lang.String getError()
        Contains an error message if the query failed to execute and did not produce any result.
        Returns:
      • getSeries

        public java.util.List<Serie> getSeries()
        The collection of series that resulted from the query. Normally, the result only a contains a single Serie. However, if the result was produced for a query that grouped by tag (GROUP BY <tag>), this list will contain one Serie for each set of data points that share a commons set of tags (i.e. one Serie for each result group).
        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