Class DefaultTableFilter
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.DefaultTableFilter
- All Implemented Interfaces:
BeamSqlTableFilter
This default implementation of
BeamSqlTableFilter interface. Assumes that predicate
push-down is not supported.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTableFilter(List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> filters) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> Since predicate push-down is assumed not to be supported by default - return an unchanged list of filters to be preserved.intThis is primarily used by the cost based optimization to determine the benefit of performing predicate push-down for an IOSourceRel.
-
Constructor Details
-
DefaultTableFilter
public DefaultTableFilter(List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> filters)
-
-
Method Details
-
getNotSupported
public 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.
-