|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.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 java.util.Map |
getVariableValues(Command command,
QueryMetadataInterface metadata)
|
static TempMetadataStore |
resolveCommand(Command currentCommand,
java.util.Map externalMetadata,
boolean useMetadataCommands,
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,
boolean useMetadataCommands,
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 |
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 void resolveCommand(Command command, QueryMetadataInterface metadata, AnalysisRecord analysis) throws QueryResolverException, MetaMatrixComponentException
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
MetaMatrixComponentException
public static void resolveCommand(Command command, QueryMetadataInterface metadata) throws QueryResolverException, MetaMatrixComponentException
command
- Command the SQL command we are running (Select, Update, Insert, Delete)metadata
- QueryMetadataInterface the metadata
QueryResolverException
MetaMatrixComponentException
public static TempMetadataStore resolveCommand(Command currentCommand, java.util.Map externalMetadata, boolean useMetadataCommands, QueryMetadataInterface metadata, AnalysisRecord analysis) throws QueryResolverException, MetaMatrixComponentException
command
- Command the SQL command we are running (Select, Update, Insert, Delete)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 variablesuseMetadataCommands
- True if resolver should use metadata commands to completely resolve
the command tree all the way to physical. False if resolver should resolve only the visible commandmetadata
- QueryMetadataInterface the metadataanalysis
- The analysis record which can be used to add anotations and debug information.
QueryResolverException
MetaMatrixComponentException
public static TempMetadataStore resolveCommand(Command currentCommand, java.util.Map externalMetadata, boolean useMetadataCommands, QueryMetadataInterface metadata, AnalysisRecord analysis, boolean resolveNullLiterals) throws QueryResolverException, MetaMatrixComponentException
QueryResolverException
MetaMatrixComponentException
public static void resolveCriteria(Criteria criteria, QueryMetadataInterface metadata) throws QueryResolverException, QueryMetadataException, MetaMatrixComponentException
criteria
- Criteria to resolvemetadata
- Metadata implementation
QueryResolverException
QueryMetadataException
MetaMatrixComponentException
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, MetaMatrixComponentException
QueryMetadataException
QueryResolverException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |