Java 类com.facebook.presto.sql.tree.InputReference 实例源码

项目:presto    文件:SymbolToInputRewriter.java   
@Override
public Expression rewriteQualifiedNameReference(QualifiedNameReference node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
{
    Integer channel = symbolToChannelMapping.get(Symbol.fromQualifiedName(node.getName()));
    Preconditions.checkArgument(channel != null, "Cannot resolve symbol %s", node.getName());

    return new InputReference(channel);
}
项目:presto    文件:ExpressionAnalyzer.java   
@Override
public Type visitInputReference(InputReference node, StackableAstVisitorContext<AnalysisContext> context)
{
    Type type = tupleDescriptor.getFieldByIndex(node.getChannel()).getType();
    expressionTypes.put(node, type);
    return type;
}
项目:hue    文件:VeroGenExpFormatter.java   
@Override
public String visitInputReference(InputReference node, Void context)
{
    // add colon so this won't parse
    return ":input(" + node.getChannel() + ")";
}
项目:presto    文件:SqlToRowExpressionTranslator.java   
@Override
protected RowExpression visitInputReference(InputReference node, Void context)
{
    return field(node.getChannel(), types.get(node));
}
项目:presto    文件:InterpretedProjectionFunction.java   
@Override
protected Void visitInputReference(InputReference node, Void context)
{
    inputChannels.add(node.getChannel());
    return null;
}
项目:presto    文件:ExpressionInterpreter.java   
@Override
protected Void visitInputReference(InputReference node, Void context)
{
    throw new SemanticException(EXPRESSION_NOT_CONSTANT, expression, "Constant expression cannot contain column references");
}
项目:presto    文件:ExpressionFormatter.java   
@Override
public String visitInputReference(InputReference node, Boolean unmangleNames)
{
    // add colon so this won't parse
    return ":input(" + node.getChannel() + ")";
}
项目:EchoQuery    文件:ExpressionFormatter.java   
@Override
public String visitInputReference(InputReference node, Boolean unmangleNames)
{
    // add colon so this won't parse
    return ":input(" + node.getChannel() + ")";
}