public class FromTableDirectSource extends Object implements FromTableInterface
Constructor and Description |
---|
FromTableDirectSource(DatabaseConnection connection,
TableQueryDef table_query,
String unique_name,
TableName given_name,
TableName root_name)
Constructs the source.
|
Modifier and Type | Method and Description |
---|---|
Variable[] |
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.
|
QueryPlanNode |
createFetchQueryPlanNode()
Creates a QueryPlanNode to be added into a query tree that fetches the
table source.
|
TableName |
getGivenTableName()
Returns the given name of the table.
|
TableName |
getRootTableName()
Returns the root name of the table.
|
String |
getUniqueName()
Returns a unique name given to this table source.
|
boolean |
matchesReference(String catalog,
String schema,
String table)
Returns true if this source will match the given catalog, schema and
table.
|
Variable |
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.
|
int |
resolveColumnCount(String catalog,
String schema,
String table,
String column)
Returns the number of instances we can resolve the given catalog, schema,
table and column name to a column or columns within this item.
|
void |
setCaseInsensitive(boolean status)
Toggle the case sensitivity flag.
|
public FromTableDirectSource(DatabaseConnection connection, TableQueryDef table_query, String unique_name, TableName given_name, TableName root_name)
public TableName getGivenTableName()
public TableName getRootTableName()
public QueryPlanNode createFetchQueryPlanNode()
public void setCaseInsensitive(boolean status)
public String getUniqueName()
FromTableInterface
getUniqueName
in interface FromTableInterface
public boolean matchesReference(String catalog, String schema, String table)
FromTableInterface
Used for 'Part.*' type glob searches.
matchesReference
in interface FromTableInterface
public int resolveColumnCount(String catalog, String schema, String table, String column)
FromTableInterface
For example, say we need to resolve the column 'id' the arguments are null, null, null, "id". This may resolve to multiple columns if there is a mixture of tables with "id" as a column.
Note that parameters of 'null, null, null, null', 'null, null, null, not null', 'null, null, not null, not null', 'null, not null, not null, not null', and 'not null, not null, not null, not null' are only accepted.
resolveColumnCount
in interface FromTableInterface
public Variable resolveColumn(String catalog, String schema, String table, String column)
FromTableInterface
resolveColumn
in interface FromTableInterface
public Variable[] allColumns()
FromTableInterface
allColumns
in interface FromTableInterface
Copyright © 2015. All rights reserved.