@CompileStatic class GinqAstOptimizer extends GinqAstBaseVisitor
Optimize the execution plan of GINQ through transforming AST.
Note:The optimizer only optimizes the AST for inner/left joins for now, e.g.
    from n1 in nums1
    innerjoin n2 in nums2 on n1 == n2
    where n1 > 1 && n2 <= 3
    select n1, n2
 
 will be optimized to
 
    from n1 in (
      from alias86329782 in nums1
      where alias86329782 > 1
      select alias86329782
    )
    innerjoin n2 in (
      from alias23802906 in nums2
      where alias23802906 <= 3
      select alias23802906
    ) on n1 == n2
    select n1, n2
  | Constructor and description | 
|---|
| GinqAstOptimizer() | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | Void | visitGinqExpression(GinqExpression ginqExpression) | 
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.