public class TableUtils extends Object
Constructor and Description |
---|
TableUtils() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getColumnNames(DataApiRequest request,
DruidAggregationQuery<?> query)
Get the schema column names from the dimensions and metrics.
|
static Set<String> |
getColumnNames(DataApiRequest request,
DruidAggregationQuery<?> query,
PhysicalTable table)
Deprecated.
in favor of getColumnNames(DataApiRequest, DruidAggregationQuery) returning dimension api name
|
static SimplifiedIntervalList |
getConstrainedLogicalTableAvailability(LogicalTable logicalTable,
QueryPlanningConstraint queryPlanningConstraint)
Returns union of constrained availabilities of constrained logical table.
|
static Stream<Dimension> |
getDimensions(DataApiRequest request,
DruidAggregationQuery<?> query)
Get a stream returning all the fact store dimensions.
|
static SimplifiedIntervalList |
logicalTableAvailability(LogicalTable logicalTable)
Returns union of availabilities of the logical table.
|
@Deprecated public static Set<String> getColumnNames(DataApiRequest request, DruidAggregationQuery<?> query, PhysicalTable table)
NOTE: This method exists since TemplateDruidQuery's don't have a valid DataSource from which we can retrieve a valid PhysicalTable. Consequently, at time of resolution, the table should be passed in.
request
- A request which supplies grouping dimensions and filtering dimensionsquery
- A query model which has metric column and possibly dimension column namestable
- Physical table used in resolving dimension namespublic static Set<String> getColumnNames(DataApiRequest request, DruidAggregationQuery<?> query)
request
- A request which supplies grouping dimensions and filtering dimensionsquery
- A query model which has metric column and possibly dimension column namespublic static Stream<Dimension> getDimensions(DataApiRequest request, DruidAggregationQuery<?> query)
request
- A request which supplies grouping dimensions and filtering dimensionsquery
- A query model which may have dimension column namespublic static SimplifiedIntervalList getConstrainedLogicalTableAvailability(LogicalTable logicalTable, QueryPlanningConstraint queryPlanningConstraint)
logicalTable
- The constrained logical tablequeryPlanningConstraint
- The constraintpublic static SimplifiedIntervalList logicalTableAvailability(LogicalTable logicalTable)
logicalTable
- The logical tableCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.