case CONSTANT:
VXQueryConstantValue cv = (VXQueryConstantValue) ((ConstantExpression) expr).getValue();
return new ConstantEvaluatorFactory(cv.getValue());
case VARIABLE:
VariableReferenceExpression vrExpr = (VariableReferenceExpression) expr;
int tupleFieldIndex = inputSchemas[0].findVariable(vrExpr.getVariableReference());
return new TupleFieldEvaluatorFactory(tupleFieldIndex);
case FUNCTION_CALL:
ScalarFunctionCallExpression fcExpr = (ScalarFunctionCallExpression) expr;
Function fn = (Function) fcExpr.getFunctionInfo();