Package ortus.boxlang.runtime.jdbc.qoq
Class QoQSelectExecution
java.lang.Object
ortus.boxlang.runtime.jdbc.qoq.QoQSelectExecution
A wrapper class to hold together both the SQL AST being executed as well as the runtime values for a given execution of the query
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartition(String partitionName, int[] partition) Add a partitionvoidCalculate the order by columnscalculateResultColumns(boolean firstSelect) Calculate the result columnsgetIndepententSubQuery(SQLSelectStatement subquery) Indepenant sub queries are not based on the context of the outer query and can be cached here.List<int[]> getPartition(String partitionName) Get a partitionGet all partitionsGet the result columnsGet the select nodeGet the select statement executionGet the table lookupstatic QoQSelectExecutionFactory methodvoidsetQoQSelectStatementExecution(QoQSelectStatementExecution selectStatementExecution) Set the select statement executionvoidsetResultColumns(Map<Key, QoQExecutionService.TypedResultColumn> resultColumns) Set the result columns
-
Field Details
-
select
-
resultColumns
-
tableLookup
-
selectStatementExecution
-
partitions
-
-
Method Details
-
of
Factory method- Parameters:
select- select AST nodetableLookup- table lookup- Returns:
- new QoQSelectExecution instance
-
getSelect
Get the select node -
getTableLookup
Get the table lookup- Returns:
- table lookup
-
getResultColumns
Get the result columns- Returns:
- result columns
-
setResultColumns
Set the result columns- Parameters:
resultColumns- result columns
-
getSelectStatementExecution
Get the select statement execution- Returns:
- select statement execution
-
setQoQSelectStatementExecution
Set the select statement execution- Parameters:
selectStatementExecution- select statement execution
-
calculateResultColumns
Calculate the result columns- Parameters:
firstSelect- whether this is the first select- Returns:
- result columns
-
calculateOrderBys
public void calculateOrderBys()Calculate the order by columns -
getIndepententSubQuery
Indepenant sub queries are not based on the context of the outer query and can be cached here.- Parameters:
subquery-- Returns:
-
addPartition
Add a partition- Parameters:
partitionName- Name of the partitionpartition- The partition
-
getPartition
Get a partition- Parameters:
partitionName- Name of the partition- Returns:
- The partition
-
getPartitions
Get all partitions- Returns:
- All partitions
-