|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.resolver.QueryResolver
public class QueryResolver
The QueryResolver is used between Parsing and QueryValidation. The SQL queries, inserts, updates and deletes are parsed and converted into objects. The language objects have variable names which resolved to fully qualified names using metadata information. The resolver is also used in transforming the values in language objects to their variable types defined in metadata.
| Constructor Summary | |
|---|---|
QueryResolver()
|
|
| Method Summary | |
|---|---|
static Command |
expandCommand(ProcedureContainer proc,
QueryMetadataInterface metadata,
AnalysisRecord analysisRecord)
|
static java.util.Map |
getVariableValues(Command command,
QueryMetadataInterface metadata)
|
static boolean |
isXMLQuery(Query query,
QueryMetadataInterface metadata)
Check to verify if the query would return XML results. |
static TempMetadataStore |
resolveCommand(Command currentCommand,
java.util.Map externalMetadata,
QueryMetadataInterface metadata,
AnalysisRecord analysis)
This implements an algorithm to resolve all the symbols created by the parser into real metadata IDs |
static TempMetadataStore |
resolveCommand(Command currentCommand,
java.util.Map externalMetadata,
QueryMetadataInterface metadata,
AnalysisRecord analysis,
boolean resolveNullLiterals)
|
static void |
resolveCommand(Command command,
QueryMetadataInterface metadata)
This implements an algorithm to resolve all the symbols created by the parser into real metadata IDs |
static void |
resolveCommand(Command command,
QueryMetadataInterface metadata,
AnalysisRecord analysis)
This implements an algorithm to resolve all the symbols created by the parser into real metadata IDs |
static void |
resolveCriteria(Criteria criteria,
QueryMetadataInterface metadata)
Resolve just a criteria. |
static void |
resolveSubqueries(Command command,
TempMetadataAdapter metadata,
AnalysisRecord analysis)
|
static void |
setChildMetadata(Command subCommand,
Command parent)
|
static void |
setChildMetadata(Command subCommand,
java.util.Map parentTempMetadata,
GroupContext parentContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResolver()
| Method Detail |
|---|
public static Command expandCommand(ProcedureContainer proc,
QueryMetadataInterface metadata,
AnalysisRecord analysisRecord)
throws QueryResolverException,
QueryMetadataException,
TeiidComponentException
QueryResolverException
QueryMetadataException
TeiidComponentException
public static void resolveCommand(Command command,
QueryMetadataInterface metadata,
AnalysisRecord analysis)
throws QueryResolverException,
TeiidComponentException
command - Command the SQL command we are running (Select, Update, Insert, Delete)metadata - QueryMetadataInterface the metadataanalysis - The analysis record which can be used to add anotations and debug information.
QueryResolverException
TeiidComponentException
public static void resolveCommand(Command command,
QueryMetadataInterface metadata)
throws QueryResolverException,
TeiidComponentException
command - Command the SQL command we are running (Select, Update, Insert, Delete)metadata - QueryMetadataInterface the metadata
QueryResolverException
TeiidComponentException
public static TempMetadataStore resolveCommand(Command currentCommand,
java.util.Map externalMetadata,
QueryMetadataInterface metadata,
AnalysisRecord analysis)
throws QueryResolverException,
TeiidComponentException
externalMetadata - Map of GroupSymbol to a List of ElementSymbol that identifies
valid external groups that can be resolved against. Any elements resolved against external
groups will be treated as variablesmetadata - QueryMetadataInterface the metadataanalysis - The analysis record which can be used to add anotations and debug information.command - Command the SQL command we are running (Select, Update, Insert, Delete)
QueryResolverException
TeiidComponentException
public static TempMetadataStore resolveCommand(Command currentCommand,
java.util.Map externalMetadata,
QueryMetadataInterface metadata,
AnalysisRecord analysis,
boolean resolveNullLiterals)
throws QueryResolverException,
TeiidComponentException
QueryResolverException
TeiidComponentException
public static boolean isXMLQuery(Query query,
QueryMetadataInterface metadata)
throws TeiidComponentException,
QueryMetadataException,
QueryResolverException
query - the query to checkmetadata - QueryMetadataInterface the metadata
TeiidComponentException
QueryMetadataException
QueryResolverException
public static void resolveCriteria(Criteria criteria,
QueryMetadataInterface metadata)
throws QueryResolverException,
QueryMetadataException,
TeiidComponentException
criteria - Criteria to resolvemetadata - Metadata implementation
QueryResolverException
QueryMetadataException
TeiidComponentException
public static void setChildMetadata(Command subCommand,
Command parent)
public static void setChildMetadata(Command subCommand,
java.util.Map parentTempMetadata,
GroupContext parentContext)
public static java.util.Map getVariableValues(Command command,
QueryMetadataInterface metadata)
throws QueryMetadataException,
QueryResolverException,
TeiidComponentException
QueryMetadataException
QueryResolverException
TeiidComponentException
public static void resolveSubqueries(Command command,
TempMetadataAdapter metadata,
AnalysisRecord analysis)
throws QueryResolverException,
TeiidComponentException
QueryResolverException
TeiidComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||