public class AggregatableDimensionsMatcher extends Object implements PhysicalTableMatcher
If a given table contains non-agg dimensions, query must contain all these non-agg dimensions to use this table.
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
static ErrorMessageFormat |
MESSAGE_FORMAT |
Constructor and Description |
---|
AggregatableDimensionsMatcher(QueryPlanningConstraint requestConstraint)
Constructor saves metrics, dimensions, coarsest time grain, and logical table name (for logging).
|
Modifier and Type | Method and Description |
---|---|
NoMatchFoundException |
noneFoundException()
Exception to throw if no tables match.
|
boolean |
test(PhysicalTable table)
Determines whether this table matches a requirement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchNotEmpty
public static final org.slf4j.Logger LOG
public static final ErrorMessageFormat MESSAGE_FORMAT
public AggregatableDimensionsMatcher(QueryPlanningConstraint requestConstraint)
requestConstraint
- Contains the request constraints extracted from DataApiRequest and TemplateDruidQuerypublic boolean test(PhysicalTable table)
PhysicalTableMatcher
test
in interface PhysicalTableMatcher
test
in interface Predicate<PhysicalTable>
table
- The table being testedpublic NoMatchFoundException noneFoundException()
PhysicalTableMatcher
noneFoundException
in interface PhysicalTableMatcher
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.