@Override public Boolean visitConvertExpression(ConvertExpression e, ErrorCollector value) throws RuntimeException { return e.getInput().accept(this, value); }
@Override public Void visitConvertExpression(ConvertExpression e, ErrorCollector value) throws RuntimeException { return e.getInput().accept(this, value); }
@Override public Boolean visitConvertExpression(ConvertExpression e, ErrorCollector errors) throws RuntimeException { return e.getInput().accept(this, errors); }
@Override public Void visitConvertExpression(ConvertExpression e, StringBuilder sb) throws RuntimeException { sb.append(e.getConvertFunction()).append("("); e.getInput().accept(this, sb); sb.append(", '").append(e.getEncodingType()).append("')"); return null; }
if (e.getInput() instanceof FunctionCall) { FunctionCall call = (FunctionCall)e.getInput(); String functionName = call.getName(); if (!functionName.equalsIgnoreCase("byte_substr")) { if (e.getInput() instanceof SchemaPath) { ByteBuf bb = null; switch (encodingType) { case "UTF8": return e.getInput().accept(this, valueArg); default: bb = getByteBuf(valueArg, encodingType); this.path = (SchemaPath)e.getInput(); return true;
@Override public Boolean visitConvertExpression(ConvertExpression e, IdentityHashMap<LogicalExpression, Object> value) throws RuntimeException { return e.getInput().accept(this, value); }
@Override public Boolean visitConvertExpression(ConvertExpression e, ErrorCollector value) throws RuntimeException { return e.getInput().accept(this, value); }
@Override public Void visitConvertExpression(ConvertExpression e, ErrorCollector value) throws RuntimeException { return e.getInput().accept(this, value); }
@Override public Boolean visitConvertExpression(ConvertExpression e, ErrorCollector errors) throws RuntimeException { return e.getInput().accept(this, errors); }
@Override public Void visitConvertExpression(ConvertExpression e, StringBuilder sb) throws RuntimeException { sb.append(e.getConvertFunction()).append("("); e.getInput().accept(this, sb); sb.append(", '").append(e.getEncodingType()).append("')"); return null; }
@Override public LogicalExpression visitConvertExpression(ConvertExpression e, FunctionLookupContext functionLookupContext) { String convertFunctionName = e.getConvertFunction() + e.getEncodingType(); List<LogicalExpression> newArgs = Lists.newArrayList(); newArgs.add(e.getInput()); //input_expr FunctionCall fc = new FunctionCall(convertFunctionName, newArgs, e.getPosition()); return fc.accept(this, functionLookupContext); }
@Override public HoldingContainer visitConvertExpression(ConvertExpression e, ClassGenerator<?> value) throws RuntimeException { String convertFunctionName = e.getConvertFunction() + e.getEncodingType(); List<LogicalExpression> newArgs = Lists.newArrayList(); newArgs.add(e.getInput()); // input_expr FunctionCall fc = new FunctionCall(convertFunctionName, newArgs, e.getPosition()); return fc.accept(this, value); }
if (e.getInput() instanceof FunctionCall) { FunctionCall call = (FunctionCall)e.getInput(); String functionName = call.getName(); if (!functionName.equalsIgnoreCase("byte_substr")) { if (e.getInput() instanceof SchemaPath) { ByteBuf bb = null; switch (encodingType) { case "UTF8": return e.getInput().accept(this, valueArg); default: bb = getByteBuf(valueArg, encodingType); this.path = (SchemaPath)e.getInput(); return true;