exprNodeDesc constant2 = new exprNodeConstantDesc(2);
measureSpeed("concat(col1[1], cola[1])",
basetimes * 10,
ExprNodeEvaluatorFactory.get(
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
new exprNodeIndexDesc(new exprNodeColumnDesc(col1Type, "col1"), constant1),
new exprNodeIndexDesc(new exprNodeColumnDesc(colaType, "cola"), constant1))),
r,
"1b");
measureSpeed("concat(concat(col1[1], cola[1]), col1[2])",
basetimes * 10,
ExprNodeEvaluatorFactory.get(
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
new exprNodeIndexDesc(new exprNodeColumnDesc(col1Type, "col1"), constant1),
new exprNodeIndexDesc(new exprNodeColumnDesc(colaType, "cola"), constant1)),
new exprNodeIndexDesc(new exprNodeColumnDesc(col1Type, "col1"), constant2))),
r,
"1b2");
measureSpeed("concat(concat(concat(col1[1], cola[1]), col1[2]), cola[2])",
basetimes * 10,
ExprNodeEvaluatorFactory.get(
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
TypeCheckProcFactory.DefaultExprProcessor.getFuncExprNodeDesc("concat",
new exprNodeIndexDesc(new exprNodeColumnDesc(col1Type, "col1"), constant1),
new exprNodeIndexDesc(new exprNodeColumnDesc(colaType, "cola"), constant1)),
new exprNodeIndexDesc(new exprNodeColumnDesc(col1Type, "col1"), constant2)),
new exprNodeIndexDesc(new exprNodeColumnDesc(colaType, "cola"), constant2))),
r,
"1b2c");
} catch (Throwable e) {
e.printStackTrace();