public final class QueryResult extends Object
A result will contain more than one series if more than one measurement were queried. For instance, the following query will return a result with two series:
SELECT * FROM measurement_1, measurement_2
QueryResult.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
QueryResult.Builder
Creates instances of
QueryResult. |
| Modifier and Type | Method and Description |
|---|---|
String |
getError()
Gets the error message for this result if available.
|
List<Measurement> |
getResults()
Gets the series contained in this result.
|
int |
getStatementId()
Gets the ID of the statement that this result corresponds to.
|
String |
toString() |
public int getStatementId()
The ID is a zero-based index used to differentiate the multiple results for multi-statement queries. For single statement queries this will just be zero and can be ignored.
public String getError()
null if nonepublic List<Measurement> getResults()
Copyright © 2020. All rights reserved.