Skip to content

Commit

Permalink
add left join
Browse files Browse the repository at this point in the history
  • Loading branch information
rtc11 committed Apr 22, 2022
1 parent a7ee688 commit 88c8b5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kafka/main/no/nav/aap/kafka/streams/KStreamExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ private val secureLog = LoggerFactory.getLogger("secureLog")
fun <K, V, VO, VR> KStream<K, V>.join(joined: Joined<K, V, VO>, table: KTable<K, VO>, joiner: (V, VO) -> VR) =
join(table, joiner, joined)!!

fun <K, V, VO, VR> KStream<K, V>.leftJoin(joined: Joined<K, V, VO>, table: KTable<K, VO>, joiner: (V, VO) -> VR) =
leftJoin(table, joiner, joined)!!

/**
* @param keyMapper: Map from a KStream record key to a GlobalKTable record key
* @param table: GlobalKTable
Expand Down

0 comments on commit 88c8b5c

Please sign in to comment.