public static interface FilterProjectTransposeRule.Config extends RelRule.Config
If copyFilter is true, creates the same kind of Filter as
matched in the rule, otherwise it creates a Filter using the RelBuilder
obtained by the relBuilderFactory.
Similarly for copyProject.
Defining predicates for the Filter (using filterPredicate)
and/or the Project (using projectPredicate allows making the rule
more restrictive.
| Modifier and Type | Field and Description |
|---|---|
static FilterProjectTransposeRule.Config |
DEFAULT |
EMPTY| Modifier and Type | Method and Description |
|---|---|
boolean |
isCopyFilter()
Whether to create a
Filter of the same convention as the
matched Filter. |
boolean |
isCopyProject()
Whether to create a
Project of the same convention as the
matched Project. |
default FilterProjectTransposeRule |
toRule()
Creates a rule that uses this configuration.
|
FilterProjectTransposeRule.Config |
withCopyFilter(boolean copyFilter)
Sets
isCopyFilter(). |
FilterProjectTransposeRule.Config |
withCopyProject(boolean copyProject)
Sets
isCopyProject(). |
default FilterProjectTransposeRule.Config |
withOperandFor(Class<? extends Filter> filterClass,
Class<? extends Project> projectClass,
Class<? extends RelNode> relClass)
Defines an operand tree for the given 3 classes.
|
default FilterProjectTransposeRule.Config |
withOperandFor(Class<? extends Filter> filterClass,
Predicate<Filter> filterPredicate,
Class<? extends Project> projectClass,
Predicate<Project> projectPredicate)
Defines an operand tree for the given 2 classes.
|
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactorystatic final FilterProjectTransposeRule.Config DEFAULT
default FilterProjectTransposeRule toRule()
RelRule.ConfigtoRule in interface RelRule.Configboolean isCopyFilter()
Filter of the same convention as the
matched Filter.FilterProjectTransposeRule.Config withCopyFilter(boolean copyFilter)
isCopyFilter().boolean isCopyProject()
Project of the same convention as the
matched Project.FilterProjectTransposeRule.Config withCopyProject(boolean copyProject)
isCopyProject().default FilterProjectTransposeRule.Config withOperandFor(Class<? extends Filter> filterClass, Predicate<Filter> filterPredicate, Class<? extends Project> projectClass, Predicate<Project> projectPredicate)
Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.