public class ExpressionAnalyzer extends Object
| Constructor and Description |
|---|
ExpressionAnalyzer(FunctionRegistry functionRegistry,
TypeManager typeManager,
Function<Node,io.prestosql.sql.analyzer.StatementAnalyzer> statementAnalyzerFactory,
Session session,
TypeProvider symbolTypes,
List<Expression> parameters,
WarningCollector warningCollector,
boolean isDescribe) |
public ExpressionAnalyzer(FunctionRegistry functionRegistry, TypeManager typeManager, Function<Node,io.prestosql.sql.analyzer.StatementAnalyzer> statementAnalyzerFactory, Session session, TypeProvider symbolTypes, List<Expression> parameters, WarningCollector warningCollector, boolean isDescribe)
public Map<NodeRef<FunctionCall>,Signature> getResolvedFunctions()
public Map<NodeRef<Expression>,Type> getExpressionTypes()
public Type setExpressionType(Expression expression, Type type)
public Map<NodeRef<Expression>,Type> getExpressionCoercions()
public Set<NodeRef<Expression>> getTypeOnlyCoercions()
public Set<NodeRef<InPredicate>> getSubqueryInPredicates()
public Map<NodeRef<Expression>,FieldId> getColumnReferences()
public Map<NodeRef<Identifier>,LambdaArgumentDeclaration> getLambdaArgumentReferences()
public Type analyze(Expression expression, Scope scope)
public Set<NodeRef<SubqueryExpression>> getScalarSubqueries()
public Set<NodeRef<ExistsPredicate>> getExistsSubqueries()
public Set<NodeRef<QuantifiedComparisonExpression>> getQuantifiedComparisons()
public Set<NodeRef<FunctionCall>> getWindowFunctions()
public com.google.common.collect.Multimap<QualifiedObjectName,String> getTableColumnReferences()
public static Signature resolveFunction(FunctionCall node, List<TypeSignatureProvider> argumentTypes, FunctionRegistry functionRegistry)
public static ExpressionAnalysis analyzeExpressions(Session session, Metadata metadata, SqlParser sqlParser, TypeProvider types, Iterable<Expression> expressions, List<Expression> parameters, WarningCollector warningCollector, boolean isDescribe)
public static ExpressionAnalysis analyzeExpression(Session session, Metadata metadata, AccessControl accessControl, SqlParser sqlParser, Scope scope, Analysis analysis, Expression expression, WarningCollector warningCollector)
public static ExpressionAnalyzer create(Analysis analysis, Session session, Metadata metadata, SqlParser sqlParser, AccessControl accessControl, TypeProvider types, WarningCollector warningCollector)
public static ExpressionAnalyzer createConstantAnalyzer(Metadata metadata, Session session, List<Expression> parameters, WarningCollector warningCollector)
public static ExpressionAnalyzer createConstantAnalyzer(Metadata metadata, Session session, List<Expression> parameters, WarningCollector warningCollector, boolean isDescribe)
public static ExpressionAnalyzer createWithoutSubqueries(FunctionRegistry functionRegistry, TypeManager typeManager, Session session, List<Expression> parameters, SemanticErrorCode errorCode, String message, WarningCollector warningCollector, boolean isDescribe)
public static ExpressionAnalyzer createWithoutSubqueries(FunctionRegistry functionRegistry, TypeManager typeManager, Session session, TypeProvider symbolTypes, List<Expression> parameters, Function<? super Node,? extends RuntimeException> statementAnalyzerRejection, WarningCollector warningCollector, boolean isDescribe)
Copyright © 2012–2019. All rights reserved.