Uses of Interface
io.trino.sql.ir.Expression
Packages that use Expression
Package
Description
-
Uses of Expression in io.trino.cost
Methods in io.trino.cost with parameters of type ExpressionModifier and TypeMethodDescriptionScalarStatsCalculator.calculate(Expression scalarExpression, PlanNodeStatsEstimate inputStatistics, Session session) FilterStatsCalculator.filterStats(PlanNodeStatsEstimate statsEstimate, Expression predicate, Session session) -
Uses of Expression in io.trino.sql
Methods in io.trino.sql that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input) static ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input, Comparison.Operator operator) static ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input, Comparison.Operator operator, boolean nullAllowed) DynamicFilters.Descriptor.getInput()static ExpressionDynamicFilters.replaceDynamicFilterId(Call dynamicFilterFunctionCall, DynamicFilterId newId) Methods in io.trino.sql that return types with arguments of type ExpressionMethods in io.trino.sql with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input) static ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input, Comparison.Operator operator) static ExpressionDynamicFilters.createDynamicFilterExpression(Metadata metadata, DynamicFilterId id, Type inputType, Expression input, Comparison.Operator operator, boolean nullAllowed) static DynamicFilters.ExtractResultDynamicFilters.extractDynamicFilters(Expression expression) static Optional<DynamicFilters.Descriptor> DynamicFilters.getDescriptor(Expression expression) static booleanDynamicFilters.isDynamicFilter(Expression expression) Constructors in io.trino.sql with parameters of type ExpressionModifierConstructorDescriptionDescriptor(DynamicFilterId id, Expression input) Descriptor(DynamicFilterId id, Expression input, Comparison.Operator operator) Descriptor(DynamicFilterId id, Expression input, Comparison.Operator operator, boolean nullAllowed) Constructor parameters in io.trino.sql with type arguments of type ExpressionModifierConstructorDescriptionExtractResult(List<Expression> staticConjuncts, List<DynamicFilters.Descriptor> dynamicConjuncts) -
Uses of Expression in io.trino.sql.ir
Classes in io.trino.sql.ir with type parameters of type ExpressionClasses in io.trino.sql.ir that implement ExpressionModifier and TypeClassDescriptionfinal recordfinal recordfinal recordBind(values, targetFunction)final recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordNULLIF(V1,V2): CASE WHEN V1=V2 THEN NULL ELSE V1 ENDfinal recordfinal recordfinal recordMethods in io.trino.sql.ir with type parameters of type ExpressionModifier and TypeMethodDescription<T extends Expression>
TExpressionTreeRewriter.defaultRewrite(T node, C context) Invoke the default rewrite logic explicitly.static <T extends Expression>
NodeRef<T> NodeRef.of(T node) <T extends Expression>
Tstatic <C,T extends Expression>
TExpressionTreeRewriter.rewriteWith(ExpressionRewriter<C> rewriter, T node, C context) static <T extends Expression>
TExpressionTreeRewriter.rewriteWith(ExpressionRewriter<Void> rewriter, T node) Methods in io.trino.sql.ir that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionIrUtils.and(Expression... expressions) static ExpressionIrUtils.and(Collection<Expression> expressions) FieldReference.base()Returns the value of thebaserecord component.Lambda.body()Returns the value of thebodyrecord component.static ExpressionIrUtils.combineConjuncts(Expression... expressions) static ExpressionIrUtils.combineConjuncts(Collection<Expression> expressions) static ExpressionIrUtils.combineConjunctsWithDuplicates(Collection<Expression> expressions) static ExpressionIrUtils.combineDisjuncts(Expression... expressions) static ExpressionIrUtils.combineDisjuncts(Collection<Expression> expressions) static ExpressionIrUtils.combineDisjunctsWithDefault(Collection<Expression> expressions, Expression emptyDefault) static ExpressionIrUtils.combinePredicates(Logical.Operator operator, Collection<Expression> expressions) Case.defaultValue()Returns the value of thedefaultValuerecord component.Switch.defaultValue()Returns the value of thedefaultValuerecord component.Cast.expression()Returns the value of theexpressionrecord component.static ExpressionIrUtils.filterConjuncts(Expression expression, Predicate<Expression> predicate) static ExpressionIrUtils.filterDeterministicConjuncts(Expression expression) static ExpressionIrUtils.filterNonDeterministicConjuncts(Expression expression) NullIf.first()Returns the value of thefirstrecord component.WhenClause.getOperand()WhenClause.getResult()static ExpressionIrExpressions.ifExpression(Expression condition, Expression trueCase) static ExpressionIrExpressions.ifExpression(Expression condition, Expression trueCase, Expression falseCase) Comparison.left()Returns the value of theleftrecord component.static ExpressionIrUtils.logicalExpression(Logical.Operator operator, Collection<Expression> expressions) Between.max()Returns the value of themaxrecord component.Between.min()Returns the value of theminrecord component.Switch.operand()Returns the value of theoperandrecord component.static ExpressionIrUtils.or(Expression... expressions) static ExpressionIrUtils.or(Collection<Expression> expressions) ExpressionRewriter.rewriteArray(Array node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteBetween(Between node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteBind(Bind node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteCall(Call node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteCase(Case node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteCast(Cast node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteCoalesce(Coalesce node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteComparison(Comparison node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteConstant(Constant node, C context, ExpressionTreeRewriter<C> treeRewriter) protected ExpressionExpressionRewriter.rewriteExpression(Expression node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteIn(In node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteIsNull(IsNull node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteLambda(Lambda node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteLogical(Logical node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteNot(Not node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteNullIf(NullIf node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteReference(Reference node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteRow(Row node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteSubscript(FieldReference node, C context, ExpressionTreeRewriter<C> treeRewriter) ExpressionRewriter.rewriteSwitch(Switch node, C context, ExpressionTreeRewriter<C> treeRewriter) Comparison.right()Returns the value of therightrecord component.NullIf.second()Returns the value of thesecondrecord component.Between.value()Returns the value of thevaluerecord component.In.value()Returns the value of thevaluerecord component.IsNull.value()Returns the value of thevaluerecord component.Not.value()Returns the value of thevaluerecord component.Methods in io.trino.sql.ir that return types with arguments of type ExpressionModifier and TypeMethodDescriptionCall.arguments()Returns the value of theargumentsrecord component.List<? extends Expression> Array.children()List<? extends Expression> Between.children()List<? extends Expression> Bind.children()List<? extends Expression> Call.children()List<? extends Expression> Case.children()List<? extends Expression> Cast.children()List<? extends Expression> Coalesce.children()List<? extends Expression> Comparison.children()List<? extends Expression> Constant.children()List<? extends Expression> Expression.children()List<? extends Expression> FieldReference.children()List<? extends Expression> In.children()List<? extends Expression> IsNull.children()List<? extends Expression> Lambda.children()List<? extends Expression> Logical.children()List<? extends Expression> Not.children()List<? extends Expression> NullIf.children()List<? extends Expression> Reference.children()List<? extends Expression> Row.children()List<? extends Expression> Switch.children()Array.elements()Returns the value of theelementsrecord component.static Function<Expression, Expression> IrUtils.expressionOrNullSymbols(Predicate<Symbol>... nullSymbolScopes) static Function<Expression, Expression> IrUtils.expressionOrNullSymbols(Predicate<Symbol>... nullSymbolScopes) static List<Expression> IrUtils.extractConjuncts(Expression expression) static List<Expression> IrUtils.extractDisjuncts(Expression expression) static List<Expression> IrUtils.extractPredicates(Logical expression) static List<Expression> IrUtils.extractPredicates(Logical.Operator operator, Expression expression) Row.items()Returns the value of theitemsrecord component.Coalesce.operands()Returns the value of theoperandsrecord component.static Stream<Expression> IrUtils.preOrder(Expression node) Logical.terms()Returns the value of thetermsrecord component.In.valueList()Returns the value of thevalueListrecord component.Bind.values()Returns the value of thevaluesrecord component.Methods in io.trino.sql.ir with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionIrUtils.and(Expression... expressions) static LogicalLogical.and(Expression left, Expression right) static ExpressionIrUtils.combineConjuncts(Expression... expressions) static ExpressionIrUtils.combineDisjuncts(Expression... expressions) static ExpressionIrUtils.combineDisjunctsWithDefault(Collection<Expression> expressions, Expression emptyDefault) static List<Expression> IrUtils.extractConjuncts(Expression expression) static List<Expression> IrUtils.extractDisjuncts(Expression expression) static List<Expression> IrUtils.extractPredicates(Logical.Operator operator, Expression expression) static ExpressionIrUtils.filterConjuncts(Expression expression, Predicate<Expression> predicate) static ExpressionIrUtils.filterDeterministicConjuncts(Expression expression) static ExpressionIrUtils.filterNonDeterministicConjuncts(Expression expression) static StringExpressionFormatter.formatExpression(Expression expression) static ExpressionIrExpressions.ifExpression(Expression condition, Expression trueCase) static ExpressionIrExpressions.ifExpression(Expression condition, Expression trueCase, Expression falseCase) static booleanIrExpressions.mayFail(PlannerContext plannerContext, Expression expression) static ExpressionIrUtils.or(Expression... expressions) static LogicalLogical.or(Expression left, Expression right) static Stream<Expression> IrUtils.preOrder(Expression node) IrVisitor.process(Expression node) IrVisitor.process(Expression node, C context) protected ExpressionExpressionRewriter.rewriteExpression(Expression node, C context, ExpressionTreeRewriter<C> treeRewriter) protected StringExpressionFormatter.Formatter.visitExpression(Expression node, Void context) protected RIrVisitor.visitExpression(Expression node, C context) Method parameters in io.trino.sql.ir with type arguments of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionIrUtils.and(Collection<Expression> expressions) static ExpressionIrUtils.combineConjuncts(Collection<Expression> expressions) static ExpressionIrUtils.combineConjunctsWithDuplicates(Collection<Expression> expressions) static ExpressionIrUtils.combineDisjuncts(Collection<Expression> expressions) static ExpressionIrUtils.combineDisjunctsWithDefault(Collection<Expression> expressions, Expression emptyDefault) static ExpressionIrUtils.combinePredicates(Logical.Operator operator, Collection<Expression> expressions) static ExpressionIrUtils.filterConjuncts(Expression expression, Predicate<Expression> predicate) static ExpressionIrUtils.logicalExpression(Logical.Operator operator, Collection<Expression> expressions) static ExpressionIrUtils.or(Collection<Expression> expressions) Constructors in io.trino.sql.ir with parameters of type ExpressionModifierConstructorDescriptionBetween(Expression value, Expression min, Expression max) Creates an instance of aBetweenrecord class.Case(List<WhenClause> whenClauses, Expression defaultValue) Creates an instance of aCaserecord class.Cast(Expression expression, Type type) Cast(Expression expression, Type type, boolean safe) Creates an instance of aCastrecord class.Coalesce(Expression first, Expression second, Expression... additional) Comparison(Comparison.Operator operator, Expression left, Expression right) Creates an instance of aComparisonrecord class.FieldReference(Expression base, int field) Creates an instance of aFieldReferencerecord class.In(Expression value, List<Expression> valueList) Creates an instance of aInrecord class.IsNull(Expression value) Creates an instance of aIsNullrecord class.Lambda(List<Symbol> arguments, Expression body) Creates an instance of aLambdarecord class.Not(Expression value) Creates an instance of aNotrecord class.NullIf(Expression first, Expression second) Creates an instance of aNullIfrecord class.Switch(Expression operand, List<WhenClause> whenClauses, Expression defaultValue) Creates an instance of aSwitchrecord class.WhenClause(Expression operand, Expression result) Constructor parameters in io.trino.sql.ir with type arguments of type ExpressionModifierConstructorDescriptionArray(Type elementType, List<Expression> elements) Creates an instance of aArrayrecord class.Bind(List<Expression> values, Lambda function) Creates an instance of aBindrecord class.Call(ResolvedFunction function, List<Expression> arguments) Creates an instance of aCallrecord class.Coalesce(List<Expression> operands) Creates an instance of aCoalescerecord class.In(Expression value, List<Expression> valueList) Creates an instance of aInrecord class.Logical(Logical.Operator operator, List<Expression> terms) Creates an instance of aLogicalrecord class.Row(List<Expression> items) Creates an instance of aRowrecord class. -
Uses of Expression in io.trino.sql.planner
Methods in io.trino.sql.planner that return ExpressionModifier and TypeMethodDescriptionPartitioning.ArgumentBinding.getExpression()TranslationMap.ParametersRow.getParametersRow()DomainTranslator.ExtractionResult.getRemainingExpression()SortExpressionContext.getSortExpression()static ExpressionExpressionSymbolInliner.inlineSymbols(Function<Symbol, Expression> mapping, Expression expression) static ExpressionExpressionSymbolInliner.inlineSymbols(Map<Symbol, ? extends Expression> mapping, Expression expression) IrExpressionInterpreter.optimize()IrExpressionInterpreter.optimize(SymbolResolver inputs) ConnectorExpressionTranslator.ConnectorExpressionTranslation.remainingExpression()Returns the value of theremainingExpressionrecord component.static ExpressionExpressionNodeInliner.replaceExpression(Expression expression, Map<? extends Expression, ? extends Expression> mappings) static ExpressionReferenceAwareExpressionNodeInliner.replaceExpression(Expression expression, Map<NodeRef<Expression>, Expression> mappings) EqualityInference.rewrite(Expression expression, Set<Symbol> scope) Attempts to rewrite an Expression in terms of the symbols allowed by the symbol scope given the known equalities.TranslationMap.rewrite(Expression root) protected ExpressionExpressionNodeInliner.rewriteExpression(Expression node, Void context, ExpressionTreeRewriter<Void> treeRewriter) protected ExpressionReferenceAwareExpressionNodeInliner.rewriteExpression(Expression node, Void context, ExpressionTreeRewriter<Void> treeRewriter) static ExpressionGroupingOperationRewriter.rewriteGroupingOperation(GroupingOperation expression, Type type, List<Set<Integer>> groupingSets, Map<NodeRef<Expression>, ResolvedField> columnReferenceFields, Optional<Symbol> groupIdSymbol, Metadata metadata) static ExpressionDomainTranslator.toPredicate(TupleDomain<Symbol> tupleDomain) static ExpressionConnectorExpressionTranslator.translate(Session session, ConnectorExpression expression, PlannerContext plannerContext, Map<String, Symbol> variableMappings) Methods in io.trino.sql.planner that return types with arguments of type ExpressionModifier and TypeMethodDescriptionstatic List<Expression> ExpressionExtractor.extractExpressions(PlanNode plan) static List<Expression> ExpressionExtractor.extractExpressions(PlanNode plan, Lookup lookup) static List<Expression> ExpressionExtractor.extractExpressionsNonRecursive(PlanNode plan) static Map<NodeRef<Expression>, ConnectorExpression> PartialTranslator.extractPartialTranslations(Expression inputExpression, Session session) ProducesConnectorExpressiontranslations for disjoint components in the input expression in a top-down manner.EqualityInference.EqualityPartition.getScopeComplementEqualities()EqualityInference.EqualityPartition.getScopeEqualities()EqualityInference.EqualityPartition.getScopeStraddlingEqualities()SortExpressionContext.getSearchExpressions()static Stream<Expression> EqualityInference.nonInferrableConjuncts(Expression expression) Provides a convenience Stream of Expression conjuncts which have not been added to the inferenceMethods in io.trino.sql.planner with parameters of type ExpressionModifier and TypeMethodDescriptionBuiltinFunctionCallBuilder.addArgument(Type type, Expression value) BuiltinFunctionCallBuilder.addArgument(TypeSignature typeSignature, Expression value) ResolvedFunctionCallBuilder.addArgument(Expression value) static Partitioning.ArgumentBindingPartitioning.ArgumentBinding.expressionBinding(Expression expression) SymbolsExtractor.extractAll(Expression expression) static Map<NodeRef<Expression>, ConnectorExpression> PartialTranslator.extractPartialTranslations(Expression inputExpression, Session session) ProducesConnectorExpressiontranslations for disjoint components in the input expression in a top-down manner.static Optional<SortExpressionContext> SortExpressionExtractor.extractSortExpression(Set<Symbol> buildSymbols, Expression filter) SymbolsExtractor.extractUnique(Expression expression) static SymbolSymbol.from(Expression expression) DomainTranslator.getExtractionResult(PlannerContext plannerContext, Session session, Expression predicate) Convert an Expression predicate into an ExtractionResult consisting of: 1) A successfully extracted TupleDomain 2) An Expression fragment which represents the part of the original Expression that will need to be re-evaluated after filtering with the TupleDomain.static ExpressionExpressionSymbolInliner.inlineSymbols(Function<Symbol, Expression> mapping, Expression expression) static ExpressionExpressionSymbolInliner.inlineSymbols(Map<Symbol, ? extends Expression> mapping, Expression expression) static booleanDeterminismEvaluator.isDeterministic(Expression expression) static booleanEqualityInference.isInferenceCandidate(Expression expression) Determines whether an Expression may be successfully applied to the equality inferencestatic booleanNullabilityAnalyzer.mayReturnNullOnNonNullInput(Expression expression) TODO: this currently produces a very conservative estimate.SymbolAllocator.newSymbol(Expression expression) static Stream<Expression> EqualityInference.nonInferrableConjuncts(Expression expression) Provides a convenience Stream of Expression conjuncts which have not been added to the inferencestatic ExpressionExpressionNodeInliner.replaceExpression(Expression expression, Map<? extends Expression, ? extends Expression> mappings) static ExpressionReferenceAwareExpressionNodeInliner.replaceExpression(Expression expression, Map<NodeRef<Expression>, Expression> mappings) EqualityInference.rewrite(Expression expression, Set<Symbol> scope) Attempts to rewrite an Expression in terms of the symbols allowed by the symbol scope given the known equalities.protected ExpressionExpressionNodeInliner.rewriteExpression(Expression node, Void context, ExpressionTreeRewriter<Void> treeRewriter) protected ExpressionReferenceAwareExpressionNodeInliner.rewriteExpression(Expression node, Void context, ExpressionTreeRewriter<Void> treeRewriter) static Optional<ConnectorExpression> ConnectorExpressionTranslator.translate(Session session, Expression expression) ConnectorExpressionTranslator.translateConjuncts(Session session, Expression expression) protected Optional<ConnectorExpression> ConnectorExpressionTranslator.SqlToConnectorExpressionTranslator.visitExpression(Expression node, Void context) Method parameters in io.trino.sql.planner with type arguments of type ExpressionModifier and TypeMethodDescriptionSymbolsExtractor.extractUnique(Iterable<? extends Expression> expressions) static voidExpressionExtractor.forEachExpression(PlanNode plan, Consumer<Expression> expressionConsumer) static ExpressionExpressionSymbolInliner.inlineSymbols(Function<Symbol, Expression> mapping, Expression expression) static ExpressionExpressionSymbolInliner.inlineSymbols(Map<Symbol, ? extends Expression> mapping, Expression expression) static ExpressionExpressionNodeInliner.replaceExpression(Expression expression, Map<? extends Expression, ? extends Expression> mappings) static ExpressionExpressionNodeInliner.replaceExpression(Expression expression, Map<? extends Expression, ? extends Expression> mappings) static ExpressionReferenceAwareExpressionNodeInliner.replaceExpression(Expression expression, Map<NodeRef<Expression>, Expression> mappings) static ExpressionReferenceAwareExpressionNodeInliner.replaceExpression(Expression expression, Map<NodeRef<Expression>, Expression> mappings) ResolvedFunctionCallBuilder.setArguments(List<Expression> values) Constructors in io.trino.sql.planner with parameters of type ExpressionModifierConstructorDescriptionArgumentBinding(Expression expression, NullableValue constant) ConnectorExpressionTranslation(ConnectorExpression connectorExpression, Expression remainingExpression) Creates an instance of aConnectorExpressionTranslationrecord class.EqualityInference(Expression... expressions) ExtractionResult(TupleDomain<Symbol> tupleDomain, Expression remainingExpression) IrExpressionInterpreter(Expression expression, PlannerContext plannerContext, Session session) LayoutConstraintEvaluator(PlannerContext plannerContext, Session session, Map<Symbol, ColumnHandle> assignments, Expression expression) ParametersRow(Expression parametersRow, List<String> parametersOrder) SortExpressionContext(Expression sortExpression, List<Expression> searchExpressions) Constructor parameters in io.trino.sql.planner with type arguments of type ExpressionModifierConstructorDescriptionEqualityInference(Collection<Expression> expressions) EqualityPartition(Iterable<Expression> scopeEqualities, Iterable<Expression> scopeComplementEqualities, Iterable<Expression> scopeStraddlingEqualities) ExpressionNodeInliner(Map<? extends Expression, ? extends Expression> mappings) ExpressionNodeInliner(Map<? extends Expression, ? extends Expression> mappings) SortExpressionContext(Expression sortExpression, List<Expression> searchExpressions) -
Uses of Expression in io.trino.sql.planner.iterative.rule
Methods in io.trino.sql.planner.iterative.rule that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionCanonicalizeExpressionRewriter.canonicalizeExpression(Expression expression, PlannerContext plannerContext) static ExpressionExtractCommonPredicatesExpressionRewriter.extractCommonPredicates(Expression expression) static ExpressionUnwrapCastInComparison.falseIfNotNull(Expression argument) PushJoinIntoTableScan.getEffectiveFilter(JoinNode node) static ExpressionNormalizeOrExpressionRewriter.normalizeOrExpression(Expression expression) static ExpressionPushDownNegationsExpressionRewriter.pushDownNegations(Expression expression) static ExpressionCanonicalizeExpressionRewriter.rewrite(Expression expression, PlannerContext plannerContext) ExpressionRewriteRuleSet.ExpressionRewriter.rewrite(Expression expression, Rule.Context context) static ExpressionLambdaCaptureDesugaringRewriter.rewrite(Expression expression, SymbolAllocator symbolAllocator) static ExpressionSimplifyExpressions.rewrite(Expression expression, Session session, PlannerContext plannerContext) static ExpressionUnwrapCastInComparison.trueIfNotNull(Expression argument) static ExpressionUnwrapCastInComparison.unwrapCasts(Session session, PlannerContext plannerContext, Expression expression) Methods in io.trino.sql.planner.iterative.rule with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionCanonicalizeExpressionRewriter.canonicalizeExpression(Expression expression, PlannerContext plannerContext) static ExpressionExtractCommonPredicatesExpressionRewriter.extractCommonPredicates(Expression expression) static ExpressionUnwrapCastInComparison.falseIfNotNull(Expression argument) static ExpressionNormalizeOrExpressionRewriter.normalizeOrExpression(Expression expression) static ExpressionPushDownNegationsExpressionRewriter.pushDownNegations(Expression expression) static ExpressionCanonicalizeExpressionRewriter.rewrite(Expression expression, PlannerContext plannerContext) ExpressionRewriteRuleSet.ExpressionRewriter.rewrite(Expression expression, Rule.Context context) static ExpressionLambdaCaptureDesugaringRewriter.rewrite(Expression expression, SymbolAllocator symbolAllocator) static ExpressionSimplifyExpressions.rewrite(Expression expression, Session session, PlannerContext plannerContext) static ExpressionUnwrapCastInComparison.trueIfNotNull(Expression argument) static ExpressionUnwrapCastInComparison.unwrapCasts(Session session, PlannerContext plannerContext, Expression expression) -
Uses of Expression in io.trino.sql.planner.optimizations
Methods in io.trino.sql.planner.optimizations that return ExpressionMethods in io.trino.sql.planner.optimizations that return types with arguments of type ExpressionModifier and TypeMethodDescriptionPlanNodeDecorrelator.DecorrelatedNode.getCorrelatedPredicates()static Optional<Expression> HashGenerationOptimizer.getHashExpression(Metadata metadata, SymbolAllocator symbolAllocator, List<Symbol> symbols) Methods in io.trino.sql.planner.optimizations with parameters of type ExpressionConstructor parameters in io.trino.sql.planner.optimizations with type arguments of type ExpressionModifierConstructorDescriptionDecorrelatedNode(List<Expression> correlatedPredicates, PlanNode node) -
Uses of Expression in io.trino.sql.planner.optimizations.joins
Methods in io.trino.sql.planner.optimizations.joins that return types with arguments of type ExpressionMethods in io.trino.sql.planner.optimizations.joins with parameters of type Expression -
Uses of Expression in io.trino.sql.planner.plan
Methods in io.trino.sql.planner.plan that return ExpressionModifier and TypeMethodDescriptionAssignments.Assignment.getExpression()CorrelatedJoinNode.getFilter()SpatialJoinNode.getFilter()FilterNode.getPredicate()Methods in io.trino.sql.planner.plan that return types with arguments of type ExpressionModifier and TypeMethodDescriptionAssignments.entrySet()static Property<CorrelatedJoinNode, Lookup, Expression> Patterns.CorrelatedJoin.filter()AggregationNode.Aggregation.getArguments()WindowNode.Function.getArguments()Assignments.getExpressions()JoinNode.getFilter()Assignments.getMap()ValuesNode.getRows()static Property<ValuesNode, Lookup, Optional<List<Expression>>> Patterns.Values.rows()Methods in io.trino.sql.planner.plan with parameters of type ExpressionModifier and TypeMethodDescriptionstatic AssignmentsAssignments.of(Symbol symbol, Expression expression) static AssignmentsAssignments.of(Symbol symbol1, Expression expression1, Symbol symbol2, Expression expression2) Assignments.Builder.put(Symbol symbol, Expression expression) Method parameters in io.trino.sql.planner.plan with type arguments of type ExpressionModifier and TypeMethodDescriptionstatic AssignmentsAssignments.copyOf(Map<Symbol, Expression> assignments) voidAssignments.forEach(BiConsumer<Symbol, Expression> consumer) static AssignmentsAssignments.of(Collection<? extends Expression> expressions, SymbolAllocator symbolAllocator) Assignments.Builder.put(Map.Entry<Symbol, Expression> assignment) Assignments.Builder.putAll(Map<Symbol, ? extends Expression> assignments) Assignments.rewrite(Function<Expression, Expression> rewrite) Assignments.rewrite(Function<Expression, Expression> rewrite) Constructors in io.trino.sql.planner.plan with parameters of type ExpressionModifierConstructorDescriptionAssignment(Symbol output, Expression expression) CorrelatedJoinNode(PlanNodeId id, PlanNode input, PlanNode subquery, List<Symbol> correlation, JoinType type, Expression filter, Node originSubquery) FilterNode(PlanNodeId id, PlanNode source, Expression predicate) SpatialJoinNode(PlanNodeId id, SpatialJoinNode.Type type, PlanNode left, PlanNode right, List<Symbol> outputSymbols, Expression filter, Optional<Symbol> leftPartitionSymbol, Optional<Symbol> rightPartitionSymbol, Optional<String> kdbTree) Constructor parameters in io.trino.sql.planner.plan with type arguments of type ExpressionModifierConstructorDescriptionAggregation(ResolvedFunction resolvedFunction, List<Expression> arguments, boolean distinct, Optional<Symbol> filter, Optional<OrderingScheme> orderingScheme, Optional<Symbol> mask) Assignments(Map<Symbol, Expression> assignments) Function(ResolvedFunction resolvedFunction, List<Expression> arguments, WindowNode.Frame frame, boolean ignoreNulls) JoinNode(PlanNodeId id, JoinType type, PlanNode left, PlanNode right, List<JoinNode.EquiJoinClause> criteria, List<Symbol> leftOutputSymbols, List<Symbol> rightOutputSymbols, boolean maySkipOutputDuplicates, Optional<Expression> filter, Optional<Symbol> leftHashSymbol, Optional<Symbol> rightHashSymbol, Optional<JoinNode.DistributionType> distributionType, Optional<Boolean> spillable, Map<DynamicFilterId, Symbol> dynamicFilters, Optional<PlanNodeStatsAndCostSummary> reorderJoinStatsAndCost) ValuesNode(PlanNodeId id, List<Symbol> outputSymbols, int rowCount, Optional<List<Expression>> rows) -
Uses of Expression in io.trino.sql.planner.planprinter
Methods in io.trino.sql.planner.planprinter with parameters of type ExpressionModifier and TypeMethodDescriptionAnonymizer.anonymize(Expression expression) CounterBasedAnonymizer.anonymize(Expression expression) NoOpAnonymizer.anonymize(Expression expression) -
Uses of Expression in io.trino.sql.planner.rowpattern
Methods in io.trino.sql.planner.rowpattern that return ExpressionMethods in io.trino.sql.planner.rowpattern that return types with arguments of type ExpressionConstructors in io.trino.sql.planner.rowpattern with parameters of type ExpressionModifierConstructorDescriptionExpressionAndValuePointers(Expression expression, List<ExpressionAndValuePointers.Assignment> assignments) Constructor parameters in io.trino.sql.planner.rowpattern with type arguments of type ExpressionModifierConstructorDescriptionAggregationValuePointer(ResolvedFunction function, AggregatedSetDescriptor setDescriptor, List<Expression> arguments, Optional<Symbol> classifierSymbol, Optional<Symbol> matchNumberSymbol) -
Uses of Expression in io.trino.sql.relational
Methods in io.trino.sql.relational with parameters of type ExpressionModifier and TypeMethodDescriptionstatic RowExpressionSqlToRowExpressionTranslator.translate(Expression expression, Map<Symbol, Integer> layout, Metadata metadata, TypeManager typeManager) protected RowExpressionSqlToRowExpressionTranslator.Visitor.visitExpression(Expression node, Void context) -
Uses of Expression in io.trino.util
Methods in io.trino.util with parameters of type ExpressionModifier and TypeMethodDescriptionstatic List<Comparison> SpatialJoinUtils.extractSupportedSpatialComparisons(Expression filterExpression) Returns a subset of conjuncts matching one the following shapes:ST_Distance(...) <= ...ST_Distance(...) < ...... >= ST_Distance(...)... > ST_Distance(...)SpatialJoinUtils.extractSupportedSpatialFunctions(Expression filterExpression) Returns a subset of conjuncts matching one of the following shapes: - ST_Contains(...) - ST_Within(...) - ST_Intersects(...)