public class DimensionIdFilter extends Object implements DataSourceFilter
DataSourceFilter
which uses dimensionApiFilters to match partition data sources.
The matching algorithm requires that for each dimension specified, the query filters must match one of the
corresponding values.Constructor and Description |
---|
DimensionIdFilter(Map<Dimension,Set<String>> dimensionMappingValues)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
anyRowsMatch(Dimension dimension,
Set<ApiFilter> constraintFilters)
Check if for a given set of request filters, adding in the filters for this `DataSourceFilter` there is a
corresponding row.
|
Boolean |
apply(DataSourceConstraint constraint) |
boolean |
equals(Object obj) |
int |
hashCode() |
protected boolean anyRowsMatch(@NotNull Dimension dimension, @NotNull Set<ApiFilter> constraintFilters)
dimensionKeySelectFilters
dimension
- The dimension whose rows are being tested on.constraintFilters
- The api filters from the constraintpublic Boolean apply(DataSourceConstraint constraint)
apply
in interface Function<DataSourceConstraint,Boolean>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.