public class HttpPushDownListener extends Object implements FilterPushDownListener
FilterPushDownListener.ScanPushDownListener
Constructor and Description |
---|
HttpPushDownListener() |
Modifier and Type | Method and Description |
---|---|
FilterPushDownListener.ScanPushDownListener |
builderFor(GroupScan groupScan)
Check if the filter rule should be applied to the target group scan,
and if so, return the builder to use.
|
boolean |
isTargetScan(GroupScan groupScan)
Broad check to see if the scan is of the correct type for this
listener.
|
String |
prefix() |
static Set<StoragePluginOptimizerRule> |
rulesFor(OptimizerRulesContext optimizerRulesContext) |
public static Set<StoragePluginOptimizerRule> rulesFor(OptimizerRulesContext optimizerRulesContext)
public String prefix()
prefix
in interface FilterPushDownListener
public boolean isTargetScan(GroupScan groupScan)
FilterPushDownListener
public boolean isTargetScan(ScanPrel scan) {
return scan.getGroupScan() instanceof MyGroupScan;
}
isTargetScan
in interface FilterPushDownListener
groupScan
- the scan nodepublic FilterPushDownListener.ScanPushDownListener builderFor(GroupScan groupScan)
FilterPushDownListener
Calcite will run this rule multiple times during planning, but the transform only needs to occur once. Allows the group scan to mark in its own way whether the rule has been applied.
builderFor
in interface FilterPushDownListener
groupScan
- the scan nodeCopyright © 1970 The Apache Software Foundation. All rights reserved.