use of org.apache.carbondata.core.scan.filter.intf.FilterOptimizerBasic in project carbondata by apache.
the class CarbonInputFormatUtil method processFilterExpression.
public static void processFilterExpression(Expression filterExpression, CarbonTable carbonTable) {
List<CarbonDimension> dimensions = carbonTable.getDimensionByTableName(carbonTable.getFactTableName());
List<CarbonMeasure> measures = carbonTable.getMeasureByTableName(carbonTable.getFactTableName());
QueryModel.processFilterExpression(filterExpression, dimensions, measures);
if (null != filterExpression) {
// Optimize Filter Expression and fit RANGE filters is conditions apply.
FilterOptimizer rangeFilterOptimizer = new RangeFilterOptmizer(new FilterOptimizerBasic(), filterExpression);
rangeFilterOptimizer.optimizeFilter();
}
}
Aggregations