Search in sources :

Example 6 with FilterExecutor

use of org.apache.carbondata.core.scan.filter.executer.FilterExecutor in project carbondata by apache.

the class BlockIndex method isScanRequired.

@Override
public boolean isScanRequired(FilterResolverIntf filterExp) {
    FilterExecutor filterExecutor = FilterUtil.getFilterExecutorTree(filterExp, getSegmentProperties(), null, getMinMaxCacheColumns(), false);
    IndexRow unsafeRow = taskSummaryDMStore.getIndexRow(getTaskSummarySchema(), taskSummaryDMStore.getRowCount() - 1);
    boolean isScanRequired = FilterExpressionProcessor.isScanRequired(filterExecutor, getMinMaxValue(unsafeRow, TASK_MAX_VALUES_INDEX), getMinMaxValue(unsafeRow, TASK_MIN_VALUES_INDEX), getMinMaxFlag(unsafeRow, TASK_MIN_MAX_FLAG));
    return isScanRequired;
}
Also used : ImplicitColumnFilterExecutor(org.apache.carbondata.core.scan.filter.executer.ImplicitColumnFilterExecutor) FilterExecutor(org.apache.carbondata.core.scan.filter.executer.FilterExecutor) IndexRow(org.apache.carbondata.core.indexstore.row.IndexRow)

Aggregations

FilterExecutor (org.apache.carbondata.core.scan.filter.executer.FilterExecutor)6 ArrayList (java.util.ArrayList)4 SegmentProperties (org.apache.carbondata.core.datastore.block.SegmentProperties)4 Index (org.apache.carbondata.core.index.dev.Index)3 CoarseGrainIndex (org.apache.carbondata.core.index.dev.cgindex.CoarseGrainIndex)3 FineGrainBlocklet (org.apache.carbondata.core.index.dev.fgindex.FineGrainBlocklet)3 Blocklet (org.apache.carbondata.core.indexstore.Blocklet)3 ExtendedBlocklet (org.apache.carbondata.core.indexstore.ExtendedBlocklet)3 BlockIndex (org.apache.carbondata.core.indexstore.blockletindex.BlockIndex)3 BitSet (java.util.BitSet)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 Expression (org.apache.carbondata.core.scan.expression.Expression)2 List (java.util.List)1 Callable (java.util.concurrent.Callable)1 ExecutionException (java.util.concurrent.ExecutionException)1 ExecutorService (java.util.concurrent.ExecutorService)1 Future (java.util.concurrent.Future)1 IndexFilter (org.apache.carbondata.core.index.IndexFilter)1