Class SubscriptionResolverJoinProcessorSupplier<K,V,VO,VR>
- java.lang.Object
-
- org.apache.kafka.streams.kstream.internals.foreignkeyjoin.SubscriptionResolverJoinProcessorSupplier<K,V,VO,VR>
-
- Type Parameters:
K
- Type of primary keysV
- Type of primary valuesVO
- Type of foreign valuesVR
- Type of joined result of primary and foreign values
- All Implemented Interfaces:
ConnectedStoreProvider
,ProcessorSupplier<K,SubscriptionResponseWrapper<VO>>
public class SubscriptionResolverJoinProcessorSupplier<K,V,VO,VR> extends Object implements ProcessorSupplier<K,SubscriptionResponseWrapper<VO>>
ReceivesSubscriptionResponseWrapper<VO>
events and filters out events which do not match the current hash of the primary key. This eliminates race-condition results for rapidly-changing foreign-keys for a given primary key. Applies the join and emits nulls according to LEFT/INNER rules.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionResolverJoinProcessorSupplier(KTableValueGetterSupplier<K,V> valueGetterSupplier, Serializer<V> valueSerializer, Supplier<String> valueHashSerdePseudoTopicSupplier, ValueJoiner<V,VO,VR> joiner, boolean leftJoin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Processor<K,SubscriptionResponseWrapper<VO>>
get()
Return a newProcessor
instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.kafka.streams.processor.ConnectedStoreProvider
stores
-
-
-
-
Constructor Detail
-
SubscriptionResolverJoinProcessorSupplier
public SubscriptionResolverJoinProcessorSupplier(KTableValueGetterSupplier<K,V> valueGetterSupplier, Serializer<V> valueSerializer, Supplier<String> valueHashSerdePseudoTopicSupplier, ValueJoiner<V,VO,VR> joiner, boolean leftJoin)
-
-
Method Detail
-
get
public Processor<K,SubscriptionResponseWrapper<VO>> get()
Description copied from interface:ProcessorSupplier
Return a newProcessor
instance.- Specified by:
get
in interfaceProcessorSupplier<K,V>
- Returns:
- a new
Processor
instance
-
-