关注 spark技术分享,
撸spark源码 玩spark最佳实践

OneSideHashJoiner

OneSideHashJoiner

OneSideHashJoiner is created exclusively when StreamingSymmetricHashJoinExec physical operator is requested to processPartitions (when requested to doExecute).

Note
OneSideHashJoiner is a Scala private internal class of StreamingSymmetricHashJoinExec.
Table 1. OneSideHashJoiner’s Internal Properties (e.g. Registries, Counters and Flags)
Name Description

joinStateManager

SymmetricHashJoinStateManager

Used when…​FIXME

keyGenerator

UnsafeProjection to generate join keys

Used when…​FIXME

preJoinFilter

InternalRow ⇒ Boolean

Used when…​FIXME

stateKeyWatermarkPredicateFunc

InternalRow ⇒ Boolean

Used when…​FIXME

stateValueWatermarkPredicateFunc

InternalRow ⇒ Boolean

Used when…​FIXME

updatedStateRowsCount

Counter

Used exclusively when requested to storeAndJoinWithOtherSide

storeAndJoinWithOtherSide Method

storeAndJoinWithOtherSide…​FIXME

Note
storeAndJoinWithOtherSide is used when StreamingSymmetricHashJoinExec physical operator is requested to processPartitions (when StreamingSymmetricHashJoinExec physical operator is requested to doExecute).

Creating OneSideHashJoiner Instance

OneSideHashJoiner takes the following to be created:

  • JoinSide

  • Input attributes (Seq[Attribute])

  • Join keys (Seq[Expression])

  • Input internal rows (Iterator[InternalRow])

  • Optional pre-join filter Catalyst expression

  • Post-join filter ((InternalRow) ⇒ Boolean)

  • Optional JoinStateWatermarkPredicate

OneSideHashJoiner initializes the internal registries and counters.

removeOldState Method

removeOldState…​FIXME

Note
removeOldState is used when…​FIXME

get Method

get…​FIXME

Note
get is used when…​FIXME

commitStateAndGetMetrics Method

commitStateAndGetMetrics…​FIXME

Note
commitStateAndGetMetrics is used when…​FIXME
赞(0) 打赏
未经允许不得转载:spark技术分享 » OneSideHashJoiner
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏