Interface ValueJoinerWithStreamAndMappedKey<StreamKey, TableKey, StreamValue, TableValue, VOut>
- Type Parameters:
StreamKey- the type of the originalKStreamrecord keyTableKey- the type of the mapped join key (theGlobalKTablelookup key)StreamValue- the type of the first (stream) valueTableValue- the type of the second (table) valueVOut- the type of the joined result value
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Public
public interface ValueJoinerWithStreamAndMappedKey<StreamKey, TableKey, StreamValue, TableValue, VOut>
The
ValueJoinerWithStreamAndMappedKey interface for joining two values into a new value of
arbitrary type, with access to both the original KStream record and the mapped join key.
Used by KStream-GlobalKTable joins, where the join key is produced by a
KeyValueMapper and does not necessarily equal the KStream record's key.-
Method Summary
Modifier and TypeMethodDescriptionapply(StreamKey streamKey, TableKey mappedKey, StreamValue value1, TableValue value2) Return a joined value derived frommappedKey,streamKey,value1andvalue2.
-
Method Details
-
apply
Return a joined value derived frommappedKey,streamKey,value1andvalue2.- Parameters:
streamKey- theKStreamrecord's key. Read-only.mappedKey- the join key produced by theKeyValueMapper(i.e. theGlobalKTablelookup key); may benullfor a left-join when the mapper returnsnull. Read-only.value1- theKStreamrecord's valuevalue2- the matchingGlobalKTablevalue, ornullfor a left-join with no match- Returns:
- the joined value
-