public class ProjectionCompiler extends Object
Modifier and Type | Method and Description |
---|---|
static RowProjector |
compile(StatementContext context,
SelectStatement statement,
GroupByCompiler.GroupBy groupBy) |
static RowProjector |
compile(StatementContext context,
SelectStatement statement,
GroupByCompiler.GroupBy groupBy,
List<? extends PDatum> targetColumns,
Expression where)
Builds the projection for the scan
|
public static RowProjector compile(StatementContext context, SelectStatement statement, GroupByCompiler.GroupBy groupBy) throws SQLException
SQLException
public static RowProjector compile(StatementContext context, SelectStatement statement, GroupByCompiler.GroupBy groupBy, List<? extends PDatum> targetColumns, Expression where) throws SQLException
context
- query context kept between compilation of different query clausesstatement
- TODOgroupBy
- compiled GROUP BY clausetargetColumns
- list of columns, parallel to aliasedNodes, that are being set for an
UPSERT SELECT statement. Used to coerce expression types to the expected target type.SQLException
Copyright © 2019 Apache Software Foundation. All Rights Reserved.