Interface SupportsPushDownJoin
- All Superinterfaces:
- ScanBuilder
A mix-in interface for 
ScanBuilder. Data sources can implement this interface to
 push down join operators.- Since:
- 4.1.0
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final recordA helper class used when there are duplicated names coming from 2 sides of the join operator.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if the other side of the join is compatible with the currentSupportsPushDownJoinfor a join push down, meaning both sides can be processed together within the same underlying data source.booleanpushDownJoin(SupportsPushDownJoin other, JoinType joinType, SupportsPushDownJoin.ColumnWithAlias[] leftSideRequiredColumnsWithAliases, SupportsPushDownJoin.ColumnWithAlias[] rightSideRequiredColumnsWithAliases, Predicate condition) Pushes down the join of the currentSupportsPushDownJoinand the other side of joinSupportsPushDownJoin.Methods inherited from interface org.apache.spark.sql.connector.read.ScanBuilderbuild
- 
Method Details- 
isOtherSideCompatibleForJoinReturns true if the other side of the join is compatible with the currentSupportsPushDownJoinfor a join push down, meaning both sides can be processed together within the same underlying data source.
 
 For example, JDBC connectors are compatible if they use the same host, port, username, and password.
- 
pushDownJoinboolean pushDownJoin(SupportsPushDownJoin other, JoinType joinType, SupportsPushDownJoin.ColumnWithAlias[] leftSideRequiredColumnsWithAliases, SupportsPushDownJoin.ColumnWithAlias[] rightSideRequiredColumnsWithAliases, Predicate condition) Pushes down the join of the currentSupportsPushDownJoinand the other side of joinSupportsPushDownJoin.- Parameters:
- other-- SupportsPushDownJointhat this- SupportsPushDownJoingets joined with.
- joinType- the type of join.
- leftSideRequiredColumnsWithAliases- required output of the left side- SupportsPushDownJoin
- rightSideRequiredColumnsWithAliases- required output of the right side- SupportsPushDownJoin
- condition- join condition. Columns are named after the specified aliases in- leftSideRequiredColumnWithAliasesand- rightSideRequiredColumnWithAliases
- Returns:
- True if join has been successfully pushed down.
 
 
-