Package | Description |
---|---|
com.mckoi.database |
The core database classes for Mckoi.
|
com.mckoi.database.interpret | |
com.mckoi.database.sql |
These classes parse SQL statements in Mckoi.
|
Modifier and Type | Method and Description |
---|---|
Variable[] |
QueryPlan.SubsetNode.getNewColumnNames()
Returns the list of new column names that represent the new columns
in this subset.
|
Variable[] |
QueryPlan.SubsetNode.getOriginalColumns()
Returns the list of original columns that represent the mappings from
the columns in this subset.
|
Variable |
DefaultDataTable.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
TableAccessState.getResolvedVariable(int column)
Returns the TableName of the given column of this table.
|
Variable |
JoinedTable.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
DataTable.getResolvedVariable(int column) |
Variable |
FilterTable.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
abstract Variable |
Table.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
ReferenceTable.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
SubsetColumnTable.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
CompositeTable.getResolvedVariable(int column) |
Variable |
DataTableFilter.getResolvedVariable(int column)
Returns a fully qualified Variable object that represents the name of
the column at the given index.
|
Variable |
CorrelatedVariable.getVariable()
Returns the wrapped Variable.
|
Variable |
Assignment.getVariable()
Returns the variable for this assignment.
|
Variable |
Expression.getVariable()
Returns the Variable if this expression evaluates to a single variable,
otherwise returns null.
|
static Variable |
Variable.resolve(String name)
Attempts to resolve a string '[table_name].[column]' to a Variable
instance.
|
static Variable |
Variable.resolve(TableName tname,
String name)
Attempts to resolve a string '[table_name].[column]' to a Variable
instance.
|
Variable |
Variable.resolveTableName(TableName tablen)
Returns a ColumnName that is resolved against a table name context only
if the ColumnName is unknown in this object.
|
Variable |
Variable.set(Variable from)
Sets this Variable object with information from the given Variable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Database.canUserInsertIntoTableObject(DatabaseQueryContext context,
User user,
TableName table,
Variable[] columns)
Returns true if the user can insert into a table or view with the given
name and given columns, otherwise returns false.
|
boolean |
Database.canUserSelectFromTableObject(DatabaseQueryContext context,
User user,
TableName table,
Variable[] columns)
Returns true if the user can select from a table or view with the given
name and given columns, otherwise returns false.
|
boolean |
Database.canUserUpdateTableObject(DatabaseQueryContext context,
User user,
TableName table,
Variable[] columns)
Returns true if the user can update a table or view with the given
name and given columns, otherwise returns false.
|
void |
FunctionTable.createGroupMatrix(Variable[] col_list)
Creates a grouping matrix for the given tables.
|
int |
Table.fastFindFieldName(Variable col)
A faster way to find a column index given a string column name.
|
int |
DefaultDataTable.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
JoinedTable.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
DataTable.findFieldName(Variable v) |
int |
FilterTable.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
abstract int |
Table.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
ReferenceTable.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
SubsetColumnTable.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
int |
CompositeTable.findFieldName(Variable v) |
int |
DataTableFilter.findFieldName(Variable v)
Given a fully qualified variable field name, ie.
|
TType |
Table.getTTypeForColumn(Variable v)
Returns a TType object that would represent values in the given
column.
|
Table |
FunctionTable.mergeWithReference(Variable max_column)
Returns a Table that is this function table merged with the cross
reference table.
|
VirtualTable |
Table.orderByColumn(Variable column) |
VirtualTable |
Table.orderByColumn(Variable column,
boolean ascending) |
Table |
Table.rangeSelect(Variable col_var,
SelectableRange[] ranges)
A single column range select on this table.
|
TObject |
VariableResolver.resolve(Variable variable)
Returns the value of a given variable.
|
TObject |
GroupResolver.resolve(Variable variable,
int set_index)
Returns the value of a variable of a group.
|
TType |
VariableResolver.returnTType(Variable variable)
Returns the TType of object the given variable is.
|
Variable |
Variable.set(Variable from)
Sets this Variable object with information from the given Variable.
|
void |
SubsetColumnTable.setColumnMap(int[] mapping,
Variable[] aliases)
Adds a column map into this table.
|
Table |
Table.simpleJoin(QueryContext context,
Table table,
Variable lhs_var,
Operator op,
Expression rhs)
A simple join operation.
|
Table |
Table.simpleSelect(QueryContext context,
Variable lhs_var,
Operator op,
Expression rhs)
A simple select on this table.
|
Constructor and Description |
---|
Assignment(Variable variable,
Expression expression)
Constructs the assignment.
|
CorrelatedVariable(Variable variable,
int level_offset)
Constructs the CorrelatedVariable.
|
DistinctNode(QueryPlanNode child,
Variable[] columns) |
EquiJoinNode(QueryPlanNode left,
QueryPlanNode right,
Variable[] left_cols,
Variable[] right_cols) |
EquiJoinNode(QueryPlanNode left,
QueryPlanNode right,
Variable[] left_cols,
Variable[] right_cols) |
GroupNode(QueryPlanNode child,
Variable[] columns,
Variable group_max_column,
Expression[] function_list,
String[] name_list)
Groups over the given columns from the child.
|
GroupNode(QueryPlanNode child,
Variable[] columns,
Variable group_max_column,
Expression[] function_list,
String[] name_list)
Groups over the given columns from the child.
|
GroupNode(QueryPlanNode child,
Variable group_max_column,
Expression[] function_list,
String[] name_list)
Groups over the entire child (always ends in 1 result in set).
|
JoinNode(QueryPlanNode left,
QueryPlanNode right,
Variable left_var,
Operator join_op,
Expression right_expression) |
MultiColumnEquiSelectNode(QueryPlanNode child,
Variable[] columns,
Expression[] values) |
NonCorrelatedAnyAllNode(QueryPlanNode left,
QueryPlanNode right,
Variable[] left_vars,
Operator subquery_op) |
SimpleSelectNode(QueryPlanNode child,
Variable left_var,
Operator op,
Expression right_expression) |
SortNode(QueryPlanNode child,
Variable[] columns,
boolean[] ascending) |
SubsetNode(QueryPlanNode child,
Variable[] original_columns,
Variable[] new_column_names) |
SubsetNode(QueryPlanNode child,
Variable[] original_columns,
Variable[] new_column_names) |
Variable(Variable v) |
Modifier and Type | Field and Description |
---|---|
Variable |
TableSelectExpression.group_max
The group max variable or null if no group max.
|
Variable |
SelectColumn.internal_name
The name of this column used internally to reference it.
|
Variable |
ByColumn.name
The name of the column in the 'by'.
|
Variable |
SelectColumn.resolved_name
The fully resolved name that this column is given in the resulting table.
|
Modifier and Type | Method and Description |
---|---|
Variable[] |
FromTableDirectSource.allColumns() |
Variable[] |
FromTableSubQuerySource.allColumns() |
Variable[] |
FromTableInterface.allColumns()
Returns an array of Variable objects that references each column
available in this table set item in order from left column to
right column.
|
Variable |
FromTableDirectSource.resolveColumn(String catalog,
String schema,
String table,
String column) |
Variable |
FromTableSubQuerySource.resolveColumn(String catalog,
String schema,
String table,
String column) |
Variable |
FromTableInterface.resolveColumn(String catalog,
String schema,
String table,
String column)
Returns a Variable that is a fully resolved form of the given column in
this table set.
|
Variable |
Statement.resolveVariableName(Variable v)
Given a Variable object, this will resolve the name into a column name
the database understands (substitutes aliases, etc).
|
Modifier and Type | Method and Description |
---|---|
Variable |
Statement.resolveVariableName(Variable v)
Given a Variable object, this will resolve the name into a column name
the database understands (substitutes aliases, etc).
|
Modifier and Type | Method and Description |
---|---|
Variable |
SQL.ColumnNameVariable() |
Variable |
SQL.GroupMaxColumn()
NOTE: This is an extension, allows for us to specify a column to return the
max value for each row representing a group.
|
Copyright © 2015. All rights reserved.