Class Result
- java.lang.Object
-
- com.elastisys.autoscaler.metricstreamers.influxdb.resultset.Result
-
public class Result extends java.lang.ObjectRepresents the results of a particular InfluxDBSELECTquery.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetError()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.inthashCode()booleanisError()Returnstrueif the query failed to execute.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Result
public Result(java.lang.String error, java.util.List<Serie> series)Creates aResult.- 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 singleSerie. However, if the result was produced for a query that grouped by tag (GROUP BY <tag>), this list will contain oneSeriefor each set of data points that share a commons set of tags (i.e. oneSeriefor each result group).
-
-
Method Detail
-
isError
public boolean isError()
Returnstrueif the query failed to execute. The error message can be retrieved fromgetError().- 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 singleSerie. However, if the result was produced for a query that grouped by tag (GROUP BY <tag>), this list will contain oneSeriefor each set of data points that share a commons set of tags (i.e. oneSeriefor each result group).- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-