|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.resolver.ProcedureContainerResolver
public abstract class ProcedureContainerResolver
Constructor Summary | |
---|---|
ProcedureContainerResolver()
|
Method Summary | |
---|---|
static GroupSymbol |
addScalarGroup(java.lang.String name,
TempMetadataStore metadata,
GroupContext externalGroups,
java.util.List symbols)
|
void |
expandCommand(Command command,
QueryMetadataInterface metadata,
AnalysisRecord analysis)
Expand a command by finding and attaching all subcommands to the command. |
GroupContext |
findChildCommandMetadata(Command command,
TempMetadataStore discoveredMetadata,
boolean useMetadataCommands,
QueryMetadataInterface metadata)
Find all metadata defined by this command for it's children. |
protected abstract java.lang.String |
getPlan(QueryMetadataInterface metadata,
GroupSymbol group)
For a given resolver, this returns the unparsed command. |
void |
resolveCommand(Command command,
boolean useMetadataCommands,
TempMetadataAdapter metadata,
AnalysisRecord analysis,
boolean resolveNullLiterals)
Resolve the command using the metadata. |
protected void |
resolveGroup(TempMetadataAdapter metadata,
ProcedureContainer procCommand)
|
abstract void |
resolveProceduralCommand(Command command,
boolean useMetadataCommands,
TempMetadataAdapter metadata,
AnalysisRecord analysis)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcedureContainerResolver()
Method Detail |
---|
public abstract void resolveProceduralCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis) throws QueryMetadataException, QueryResolverException, MetaMatrixComponentException
QueryMetadataException
QueryResolverException
MetaMatrixComponentException
public void expandCommand(Command command, QueryMetadataInterface metadata, AnalysisRecord analysis) throws QueryMetadataException, QueryResolverException, MetaMatrixComponentException
command
- The command to expanduseMetadataCommands
- True if resolver should use metadata commands to completely resolvemetadata
- Metadata accessanalysis
- The analysis record that will be filled in if doing annotation.
QueryMetadataException
- If there is a metadata problem
QueryResolverException
- If the query cannot be resolved
MetaMatrixComponentException
- If there is an internal errorprotected abstract java.lang.String getPlan(QueryMetadataInterface metadata, GroupSymbol group) throws MetaMatrixComponentException, QueryMetadataException
metadata
- group
-
MetaMatrixComponentException
QueryMetadataException
public GroupContext findChildCommandMetadata(Command command, TempMetadataStore discoveredMetadata, boolean useMetadataCommands, QueryMetadataInterface metadata) throws QueryMetadataException, QueryResolverException, MetaMatrixComponentException
command
- The command to find metadata onchildMetadata
- The store to collect child metadata inuseMetadataCommands
- True if resolver should use metadata commands to completely resolvemetadata
- Metadata access
QueryMetadataException
- If there is a metadata problem
QueryResolverException
- If the query cannot be resolved
MetaMatrixComponentException
- If there is an internal errorpublic void resolveCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis, boolean resolveNullLiterals) throws QueryMetadataException, QueryResolverException, MetaMatrixComponentException
CommandResolver
resolveCommand
in interface CommandResolver
command
- The command to resolveuseMetadataCommands
- true if the resolver should use metadata commands to completely resolvemetadata
- MetadataresolveNullLiterals
- true if the resolver should consider replacing null literals with more appropriate types
QueryMetadataException
- If there is a metadata problem
QueryResolverException
- If the query cannot be resolved
MetaMatrixComponentException
- If there is an internal errorCommandResolver.resolveCommand(com.metamatrix.query.sql.lang.Command, boolean, com.metamatrix.query.metadata.TempMetadataAdapter, com.metamatrix.query.analysis.AnalysisRecord, boolean)
protected void resolveGroup(TempMetadataAdapter metadata, ProcedureContainer procCommand) throws MetaMatrixComponentException, QueryResolverException
metadata
- procCommand
-
MetaMatrixComponentException
QueryResolverException
public static GroupSymbol addScalarGroup(java.lang.String name, TempMetadataStore metadata, GroupContext externalGroups, java.util.List symbols)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |