DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = pushedPredicate; decomposedPredicate.residualPredicate = residualPredicate;
DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions( searchConditions);
DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions(conditions); decomposedPredicate.residualPredicate = residualPredicate;
DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions(searchConditions); decomposedPredicate.residualPredicate = residualPredicate;
/** * * @param conf * Configuration * @param desc * predicate expression node. * @return DecomposedPredicate containing translated search conditions the analyzer can support. */ public DecomposedPredicate decompose(Configuration conf, ExprNodeDesc desc) { IndexPredicateAnalyzer analyzer = newAnalyzer(conf); List<IndexSearchCondition> sConditions = new ArrayList<IndexSearchCondition>(); ExprNodeDesc residualPredicate = analyzer.analyzePredicate(desc, sConditions); if (sConditions.size() == 0) { if (log.isInfoEnabled()) log.info("nothing to decompose. Returning"); return null; } DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions(sConditions); decomposedPredicate.residualPredicate = (ExprNodeGenericFuncDesc) residualPredicate; return decomposedPredicate; }
/** * * @param conf * Configuration * @param desc * predicate expression node. * @return DecomposedPredicate containing translated search conditions the analyzer can support. */ public DecomposedPredicate decompose(Configuration conf, ExprNodeDesc desc) { IndexPredicateAnalyzer analyzer = newAnalyzer(conf); List<IndexSearchCondition> sConditions = new ArrayList<IndexSearchCondition>(); ExprNodeDesc residualPredicate = analyzer.analyzePredicate(desc, sConditions); if (sConditions.size() == 0) { LOG.info("nothing to decompose. Returning"); return null; } DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions(sConditions); decomposedPredicate.residualPredicate = (ExprNodeGenericFuncDesc) residualPredicate; return decomposedPredicate; }
public DecomposedPredicate decomposePredicate(String keyColName, ExprNodeDesc predicate) { IndexPredicateAnalyzer analyzer = IndexPredicateAnalyzer.createAnalyzer(true); analyzer.allowColumnName(keyColName); analyzer.setAcceptsFields(true); analyzer.setFieldValidator(getFieldValidator()); DecomposedPredicate decomposed = new DecomposedPredicate(); List<IndexSearchCondition> conditions = new ArrayList<IndexSearchCondition>(); decomposed.residualPredicate = (ExprNodeGenericFuncDesc) analyzer.analyzePredicate(predicate, conditions); if (!conditions.isEmpty()) { decomposed.pushedPredicate = analyzer.translateSearchConditions(conditions); try { decomposed.pushedPredicateObject = getScanRange(conditions); } catch (Exception e) { LOG.warn("Failed to decompose predicates", e); return null; } } return decomposed; }
public DecomposedPredicate decomposePredicate(ExprNodeDesc predicate) { if (LOG.isDebugEnabled()) { LOG.debug("predicate - " + predicate.toString()); } IndexPredicateAnalyzer analyzer = PredicateAnalyzerFactory.createPredicateAnalyzer (columnNameList, getFieldValidator()); DecomposedPredicate decomposed = new DecomposedPredicate(); List<IndexSearchCondition> conditions = new ArrayList<IndexSearchCondition>(); decomposed.residualPredicate = (ExprNodeGenericFuncDesc) analyzer.analyzePredicate (predicate, conditions); if (!conditions.isEmpty()) { decomposed.pushedPredicate = analyzer.translateSearchConditions(conditions); try { searchConditionList = conditions; calledPPD = true; } catch (Exception e) { LOG.warn("Failed to decompose predicates", e); return null; } } if (LOG.isDebugEnabled()) { LOG.debug("decomposed predicate - residualPredicate: " + decomposed.residualPredicate + ", pushedPredicate: " + decomposed.pushedPredicate); } return decomposed; }
DecomposedPredicate decomposedPredicate = new DecomposedPredicate(); decomposedPredicate.pushedPredicate = analyzer.translateSearchConditions(searchConditions); decomposedPredicate.residualPredicate = residualPredicate;
@Override public DecomposedPredicate decomposePredicate(JobConf jobConf, Deserializer deserializer, ExprNodeDesc predicate) { String keyColName = keyMapping.columnName; IndexPredicateAnalyzer analyzer = IndexPredicateAnalyzer.createAnalyzer(false); analyzer.allowColumnName(keyColName); analyzer.setAcceptsFields(true); DecomposedPredicate decomposed = new DecomposedPredicate(); List<IndexSearchCondition> searchConditions = new ArrayList<IndexSearchCondition>(); decomposed.residualPredicate = (ExprNodeGenericFuncDesc)analyzer.analyzePredicate(predicate, searchConditions); if (!searchConditions.isEmpty()) { decomposed.pushedPredicate = analyzer.translateSearchConditions(searchConditions); try { decomposed.pushedPredicateObject = setupFilter(keyColName, searchConditions); } catch (IOException e) { throw new RuntimeException(e); } } return decomposed; }
public DecomposedPredicate decomposePredicate(String keyColName, ExprNodeDesc predicate) { IndexPredicateAnalyzer analyzer = IndexPredicateAnalyzer.createAnalyzer(true); analyzer.allowColumnName(keyColName); analyzer.setAcceptsFields(true); analyzer.setFieldValidator(getFieldValidator()); DecomposedPredicate decomposed = new DecomposedPredicate(); List<IndexSearchCondition> conditions = new ArrayList<IndexSearchCondition>(); decomposed.residualPredicate = (ExprNodeGenericFuncDesc) analyzer.analyzePredicate(predicate, conditions); if (!conditions.isEmpty()) { decomposed.pushedPredicate = analyzer.translateSearchConditions(conditions); try { decomposed.pushedPredicateObject = getScanRange(conditions); } catch (Exception e) { LOG.warn("Failed to decompose predicates", e); return null; } } return decomposed; }