@Singleton public class DruidResponseParser extends Object
Constructor and Description |
---|
DruidResponseParser() |
Modifier and Type | Method and Description |
---|---|
Stream<Column> |
buildSchemaColumns(DruidAggregationQuery<?> druidQuery)
Produce the schema-defining columns for a given druid query.
|
ResultSet |
parse(com.fasterxml.jackson.databind.JsonNode jsonResult,
ResultSetSchema schema,
QueryType queryType,
org.joda.time.DateTimeZone dateTimeZone)
Parse Druid GroupBy result into ResultSet.
|
public ResultSet parse(com.fasterxml.jackson.databind.JsonNode jsonResult, ResultSetSchema schema, QueryType queryType, org.joda.time.DateTimeZone dateTimeZone)
jsonResult
- Druid results in jsonschema
- Schema for resultsqueryType
- the type of query, note that this implementation only supports instances of
DefaultQueryType
dateTimeZone
- the time zone used for format the resultspublic Stream<Column> buildSchemaColumns(DruidAggregationQuery<?> druidQuery)
druidQuery
- The query being modelled.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.