private Boolean isVectorizedGroupByThatOutputsRows(Operator<? extends OperatorDesc> op) throws SemanticException { if (op.getType().equals(OperatorType.GROUPBY)) { GroupByDesc desc = (GroupByDesc) op.getConf(); return !((VectorGroupByDesc) desc.getVectorDesc()).isVectorOutput(); } return false; }
if (!(this_present_operatorType && that_present_operatorType)) return false; if (!this.operatorType.equals(that.operatorType)) return false;
if (!(this_present_operatorType && that_present_operatorType)) return false; if (!this.operatorType.equals(that.operatorType)) return false;
public Boolean nonVectorizableChildOfGroupBy(Operator<? extends OperatorDesc> op) { Operator<? extends OperatorDesc> currentOp = op; while (currentOp.getParentOperators().size() > 0) { currentOp = currentOp.getParentOperators().get(0); if (currentOp.getType().equals(OperatorType.GROUPBY)) { GroupByDesc desc = (GroupByDesc)currentOp.getConf(); boolean isVectorOutput = desc.getVectorDesc().isVectorOutput(); if (isVectorOutput) { // This GROUP BY does vectorize its output. return false; } return true; } } return false; }
if (!(this_present_operatorType && that_present_operatorType)) return false; if (!this.operatorType.equals(that.operatorType)) return false;
if (!(this_present_operatorType && that_present_operatorType)) return false; if (!this.operatorType.equals(that.operatorType)) return false;