@Immutable public class QueryResults extends Object implements QueryStatusInfo, QueryData
| Constructor and Description |
|---|
QueryResults(String id,
URI infoUri,
URI partialCancelUri,
URI nextUri,
List<Column> columns,
Iterable<List<Object>> data,
StatementStats stats,
QueryError error,
List<PrestoWarning> warnings,
String updateType,
Long updateCount) |
QueryResults(String id,
URI infoUri,
URI partialCancelUri,
URI nextUri,
List<Column> columns,
List<List<Object>> data,
StatementStats stats,
QueryError error,
List<PrestoWarning> warnings,
String updateType,
Long updateCount) |
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
getColumns()
Returns list of columns (with corresponding data types) present in the result set
|
Iterable<List<Object>> |
getData()
Returns an iterator to the payload (results)
|
QueryError |
getError()
Returns error encountered in query execution to the client
The client is expected to check this field before consuming results
|
String |
getId()
Returns identifier of query that produces this result set
|
URI |
getInfoUri()
Returns the URI at the coordinator that provides information about the query
|
URI |
getNextUri()
Returns URI to get next batch of query results
|
URI |
getPartialCancelUri()
Returns URI to a leaf stage that is currently executing in order to issue a cancel signal
|
StatementStats |
getStats()
Returns cumulative statistics on the query being executed
|
Long |
getUpdateCount()
Returns a count of number of rows updated by the query
|
String |
getUpdateType()
Returns the update type, if any, of the query as determined by the Analyzer
Could be INSERT, DELETE, CREATE, etc.
|
List<PrestoWarning> |
getWarnings()
Returns a list of warnings encountered in query execution to the client
|
String |
toString() |
public QueryResults(String id, URI infoUri, URI partialCancelUri, URI nextUri, List<Column> columns, List<List<Object>> data, StatementStats stats, QueryError error, List<PrestoWarning> warnings, String updateType, Long updateCount)
public QueryResults(String id, URI infoUri, URI partialCancelUri, URI nextUri, List<Column> columns, Iterable<List<Object>> data, StatementStats stats, QueryError error, List<PrestoWarning> warnings, String updateType, Long updateCount)
public String getId()
getId in interface QueryStatusInfopublic URI getInfoUri()
getInfoUri in interface QueryStatusInfoURI@Nullable public URI getPartialCancelUri()
getPartialCancelUri in interface QueryStatusInfoURI@Nullable public URI getNextUri()
getNextUri in interface QueryStatusInfoURI@Nullable public List<Column> getColumns()
getColumns in interface QueryStatusInfo@Nullable public Iterable<List<Object>> getData()
public StatementStats getStats()
getStats in interface QueryStatusInfoStatementStats@Nullable public QueryError getError()
getError in interface QueryStatusInfoQueryErrorpublic List<PrestoWarning> getWarnings()
getWarnings in interface QueryStatusInfoPrestoWarning@Nullable public String getUpdateType()
getUpdateType in interface QueryStatusInfo@Nullable public Long getUpdateCount()
getUpdateCount in interface QueryStatusInfoCopyright © 2012–2023. All rights reserved.