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 java.lang.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, org.apache.kafka.common.serialization.Serializer<V> valueSerializer, java.util.function.Supplier<java.lang.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 newProcessorinstance.-
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, org.apache.kafka.common.serialization.Serializer<V> valueSerializer, java.util.function.Supplier<java.lang.String> valueHashSerdePseudoTopicSupplier, ValueJoiner<V,VO,VR> joiner, boolean leftJoin)
-
-
Method Detail
-
get
public Processor<K,SubscriptionResponseWrapper<VO>> get()
Description copied from interface:ProcessorSupplierReturn a newProcessorinstance.- Specified by:
getin interfaceProcessorSupplier<K,V>- Returns:
- a new
Processorinstance
-
-