uk.org.ogsadai.dqp.common
Interface CompilerConfiguration

All Known Implementing Classes:
SimpleCompilerConfiguration

public interface CompilerConfiguration

Configuration for the query compiler.

Author:
The OGSA-DAI Project Team.

Field Summary
static java.lang.String DEFAULT_BUILDER
          Default builder key.
 
Method Summary
 java.util.Map<java.lang.String,ActivityPipelineBuilder> getBuilders(OperatorID operatorID)
          Gets the activity pipeline builders corresponding to an operator ID.
 CardinalityEstimator getCardinalityEstimator()
          Returns cardinality estimator object.
 java.util.List<CoordinatorExtension> getCoordinatorExtensions()
          Returns a list of coordinator extension objects or the empty list if none were defined.
 java.lang.Class<? extends Operator> getFunctionOperatorClass(java.lang.String functionName)
          Returns the operator class corresponding to a function name.
 java.util.List<Optimiser> getOptimisationChain()
          Returns an optimisation chain - an ordered list of Optimiser objects that will be used to transform LQP.
 QueryPlanBuilder getQueryPlanBuilder()
          Returns the query plan builder that will be used to build query plans corresponding to user queries.
 TableScanQueryFactory getTableScanQueryFactory()
          Returns the table scan query factory.
 

Field Detail

DEFAULT_BUILDER

static final java.lang.String DEFAULT_BUILDER
Default builder key.

See Also:
Constant Field Values
Method Detail

getFunctionOperatorClass

java.lang.Class<? extends Operator> getFunctionOperatorClass(java.lang.String functionName)
Returns the operator class corresponding to a function name.

Parameters:
functionName - function name
Returns:
class of the operator, or null if no operator is registered for this function name.

getBuilders

java.util.Map<java.lang.String,ActivityPipelineBuilder> getBuilders(OperatorID operatorID)
Gets the activity pipeline builders corresponding to an operator ID. An operator ID may have one or more activity pipeline builders associated with it. There must be a default activity pipeline builder. This default builder can be accessed from the map returned using the string "DEFAULT" as the key. Alternative activity pipeline builders map be accessed using other keys.

Parameters:
operatorID - operator ID
Returns:
a mapping from a string to an activity pipeline builder. The mapping will have an entry with the key "DEFAULT" and may also have alternative activity pipeline builders with other keys.

getOptimisationChain

java.util.List<Optimiser> getOptimisationChain()
Returns an optimisation chain - an ordered list of Optimiser objects that will be used to transform LQP.

Returns:
a list of optimiser objects

getCardinalityEstimator

CardinalityEstimator getCardinalityEstimator()
Returns cardinality estimator object.

Returns:
cardinality estimator

getTableScanQueryFactory

TableScanQueryFactory getTableScanQueryFactory()
Returns the table scan query factory. This is a factory that is used to create that implement the TableScanQuery interface. These objects represent the query that will be sent to a database to implement a table scan operation. Some advanced optimisers will need more functionality for this table scan query object so the having a factory supports configuration of a factory that provides the desired concrete implementation.

Returns:
table scan query factory.

getQueryPlanBuilder

QueryPlanBuilder getQueryPlanBuilder()
Returns the query plan builder that will be used to build query plans corresponding to user queries.

Returns:
query plan builder

getCoordinatorExtensions

java.util.List<CoordinatorExtension> getCoordinatorExtensions()
Returns a list of coordinator extension objects or the empty list if none were defined.

Returns:
a list of coordinator extension objects