Class DefaultTableFilter
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.meta.DefaultTableFilter
-
- All Implemented Interfaces:
BeamSqlTableFilter
public final class DefaultTableFilter extends java.lang.Object implements BeamSqlTableFilter
This default implementation ofBeamSqlTableFilterinterface. Assumes that predicate push-down is not supported.
-
-
Constructor Summary
Constructors Constructor Description DefaultTableFilter(java.util.List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode>getNotSupported()Since predicate push-down is assumed not to be supported by default - return an unchanged list of filters to be preserved.intnumSupported()This is primarily used by the cost based optimization to determine the benefit of performing predicate push-down for an IOSourceRel.
-
-
-
Method Detail
-
getNotSupported
public java.util.List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> getNotSupported()
Since predicate push-down is assumed not to be supported by default - return an unchanged list of filters to be preserved.- Specified by:
getNotSupportedin interfaceBeamSqlTableFilter- Returns:
- Predicate
List<RexNode>which are not supported. To make a single RexNode expression all of the nodes must be joined by a logical AND.
-
numSupported
public int numSupported()
Description copied from interface:BeamSqlTableFilterThis is primarily used by the cost based optimization to determine the benefit of performing predicate push-down for an IOSourceRel.- Specified by:
numSupportedin interfaceBeamSqlTableFilter- Returns:
- number of supported filters.
-
-