Class QueryProcContextBuilder
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.QueryProcContextBuilder
Such a builder can be used to create a customizable
QueryProcContext
object that provides access to components and options to be used by the
query-processing components of HeFQUIN.
The typical way to create such a builder is to use the
HeFQUINEngine.getQueryProcContextBuilder() function.
The builder can be used multiple times (i.e., to created multiple
QueryProcContext objects), and the QueryProcContext
objects that it creates can also be used multiple times (i.e., for
processing multiple queries).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutablePlanPrinterprotected final ExecutorServiceprotected final FederationAccessManagerprotected final FederationCatalogprotected booleanprotected LogicalPlanPrinterprotected PhysicalPlanPrinterprotected booleanprotected LogicalPlanPrinter -
Constructor Summary
ConstructorsConstructorDescriptionQueryProcContextBuilder(FederationCatalog fedCatalog, FederationAccessManager fedAccMgr, ExecutorService execServiceForPlanTasks) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the executable-plan printer to be used within the query processing context.setIsExperimentRun(boolean set) Sets the logical-plan printer to be used within the query processing context.Sets the physical-plan printer to be used within the query processing context.setSkipExecution(boolean set) Sets the source assignment printer to be used within the query processing context.
-
Field Details
-
fedCatalog
-
fedAccMgr
-
execServiceForPlanTasks
-
srcasgPrinter
-
lplanPrinter
-
pplanPrinter
-
eplanPrinter
-
isExperimentRun
protected boolean isExperimentRun -
skipExecution
protected boolean skipExecution
-
-
Constructor Details
-
QueryProcContextBuilder
public QueryProcContextBuilder(FederationCatalog fedCatalog, FederationAccessManager fedAccMgr, ExecutorService execServiceForPlanTasks)
-
-
Method Details
-
setSourceAssignmentPrinter
Sets the source assignment printer to be used within the query processing context.- Parameters:
p- - a logical-plan printer to be used for printing a source assignment that is the input to logical plan optimization; this argument may benull, which means that source assignment printing will be skipped in the created query processing context (for this case, it is also possible to omit calling this method at all)- Returns:
- this builder instance for method chaining
-
setLogicalPlanPrinter
Sets the logical-plan printer to be used within the query processing context.- Parameters:
p- - a logical-plan printer to be used for printing the logical plan after logical plan optimization; this argument may benull, which means that logical-plan printing will be skipped in the created query processing context (for this case, it is also possible to omit calling this method at all)- Returns:
- this builder instance for method chaining
-
setPhysicalPlanPrinter
Sets the physical-plan printer to be used within the query processing context.- Parameters:
p- - a physical-plan printer to be used for printing the physical plan after physical plan optimization; this argument may benull, which means that physical-plan printing will be skipped in the created query processing context (for this case, it is also possible to omit calling this method at all)- Returns:
- this builder instance for method chaining
-
setExecutablePlanPrinter
Sets the executable-plan printer to be used within the query processing context.- Parameters:
p- - an executable-plan printer to be used for printing the executable plan before executing it; this argument may benull, which means that executable-plan printing will be skipped in the created query processing context (for this case, it is also possible to omit calling this method at all)- Returns:
- this builder instance for method chaining
-
setIsExperimentRun
-
setSkipExecution
-
build
-