public static class QueryResultRow.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryResultRow |
build() |
QueryResultRow.Builder |
copy(QueryResultRow model) |
QueryResultRow.Builder |
queryResultRowData(Map<String,Object> queryResultRowData)
A map containing the actual data represented by a single row of the query result.
|
QueryResultRow.Builder |
queryResultRowMetadata(Map<String,Object> queryResultRowMetadata)
A map containing metadata or add-on data for the data presented in the queryResultRowData
map.
|
public QueryResultRow.Builder queryResultRowData(Map<String,Object> queryResultRowData)
A map containing the actual data represented by a single row of the query result. The key is the column name or attribute specified in the show clause, or an aggregate function in the show clause. The value is the actual value of that attribute or aggregate function of the corresponding single row of the query result set. If an alias name is specified for an attribute or an aggregate function, then the key will be the alias name specified in the show clause. If an alias name is not specified for the group by aggregate function in the show clause, then the corresponding key will be the appropriate aggregate_function_name_column_name (For example: count(traces) will be keyed as count_traces). The datatype of the value is presented in the queryResultRowTypeSummaries list in the queryResultMetadata structure, where the i-th queryResultRowTypeSummary object represents the datatype of the i-th value when this map is iterated in order.
queryResultRowData
- the value to setpublic QueryResultRow.Builder queryResultRowMetadata(Map<String,Object> queryResultRowMetadata)
A map containing metadata or add-on data for the data presented in the queryResultRowData map. Data required to present drill down information from the queryResultRowData is presented as key-value pairs.
queryResultRowMetadata
- the value to setpublic QueryResultRow build()
public QueryResultRow.Builder copy(QueryResultRow model)
Copyright © 2016–2024. All rights reserved.