Class RepartitionedX<K,V>
java.lang.Object
com.bakdata.kafka.streams.kstream.RepartitionedX<K,V>
- Type Parameters:
K- type of keysV- type of values
Use
Preconfigured to lazily configure Serde for Repartitioned using Configurator- See Also:
-
Repartitioned
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> RepartitionedX<K, V> static <K,V> RepartitionedX<K, V> keySerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde) Create an instance ofRepartitionedXwith provided key serdestatic <K,V> RepartitionedX<K, V> keySerde(org.apache.kafka.common.serialization.Serde<K> keySerde) Create an instance ofRepartitionedXwith provided key serdeprotected final RepartitionedX<K,V> modify(BiFunction<? super org.apache.kafka.streams.kstream.Repartitioned<K, V>, ? super com.bakdata.kafka.Configurator, ? extends org.apache.kafka.streams.kstream.Repartitioned<K, V>> modifier) protected final RepartitionedX<K,V> modify(Function<? super org.apache.kafka.streams.kstream.Repartitioned<K, V>, ? extends org.apache.kafka.streams.kstream.Repartitioned<K, V>> modifier) protected RepartitionedX<K,V> newInstance(Function<com.bakdata.kafka.Configurator, org.apache.kafka.streams.kstream.Repartitioned<K, V>> initializer) static <K,V> RepartitionedX<K, V> numberOfPartitions(int numberOfPartitions) static <K,V> RepartitionedX<K, V> streamPartitioner(org.apache.kafka.streams.processor.StreamPartitioner<K, V> partitioner) static <K,V> RepartitionedX<K, V> valueSerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) Create an instance ofRepartitionedXwith provided value serdestatic <K,V> RepartitionedX<K, V> valueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde) Create an instance ofRepartitionedXwith provided value serdestatic <K,V> RepartitionedX<K, V> with(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde, com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) static <K,V> RepartitionedX<K, V> with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde) withKeySerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde) withKeySerde(org.apache.kafka.common.serialization.Serde<K> keySerde) withNumberOfPartitions(int numberOfPartitions) withStreamPartitioner(org.apache.kafka.streams.processor.StreamPartitioner<K, V> partitioner) withValueSerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) withValueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
-
Method Details
-
keySerde
public static <K,V> RepartitionedX<K,V> keySerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde) Create an instance ofRepartitionedXwith provided key serde- Type Parameters:
K- type of keysV- type of values- Parameters:
keySerde- Serde to use for keys- Returns:
- a new instance of
RepartitionedX
-
keySerde
public static <K,V> RepartitionedX<K,V> keySerde(org.apache.kafka.common.serialization.Serde<K> keySerde) Create an instance ofRepartitionedXwith provided key serde- Type Parameters:
K- type of keysV- type of values- Parameters:
keySerde- Serde to use for keys- Returns:
- a new instance of
RepartitionedX
-
valueSerde
public static <K,V> RepartitionedX<K,V> valueSerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) Create an instance ofRepartitionedXwith provided value serde- Type Parameters:
K- type of keysV- type of values- Parameters:
valueSerde- Serde to use for values- Returns:
- a new instance of
RepartitionedX
-
valueSerde
public static <K,V> RepartitionedX<K,V> valueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde) Create an instance ofRepartitionedXwith provided value serde- Type Parameters:
K- type of keysV- type of values- Parameters:
valueSerde- Serde to use for values- Returns:
- a new instance of
RepartitionedX
-
with
public static <K,V> RepartitionedX<K,V> with(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde, com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) - See Also:
-
Repartitioned.with(Serde, Serde)
-
with
public static <K,V> RepartitionedX<K,V> with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde) - See Also:
-
Repartitioned.with(Serde, Serde)
-
as
- See Also:
-
Repartitioned.as(String)
-
numberOfPartitions
- See Also:
-
Repartitioned.numberOfPartitions(int)
-
streamPartitioner
public static <K,V> RepartitionedX<K,V> streamPartitioner(org.apache.kafka.streams.processor.StreamPartitioner<K, V> partitioner) - See Also:
-
Repartitioned.streamPartitioner(StreamPartitioner)
-
withNumberOfPartitions
- See Also:
-
Repartitioned.withNumberOfPartitions(int)
-
withKeySerde
public RepartitionedX<K,V> withKeySerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<K>> keySerde) - See Also:
-
Repartitioned.withKeySerde(Serde)
-
withKeySerde
- See Also:
-
Repartitioned.withKeySerde(Serde)
-
withValueSerde
public RepartitionedX<K,V> withValueSerde(com.bakdata.kafka.Preconfigured<? extends org.apache.kafka.common.serialization.Serde<V>> valueSerde) - See Also:
-
Repartitioned.withValueSerde(Serde)
-
withValueSerde
public RepartitionedX<K,V> withValueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde) - See Also:
-
Repartitioned.withValueSerde(Serde)
-
withStreamPartitioner
public RepartitionedX<K,V> withStreamPartitioner(org.apache.kafka.streams.processor.StreamPartitioner<K, V> partitioner) - See Also:
-
Repartitioned.withStreamPartitioner(StreamPartitioner)
-
withName
- See Also:
-
Repartitioned.withName(String)
-
newInstance
-
modify
protected final RepartitionedX<K,V> modify(BiFunction<? super org.apache.kafka.streams.kstream.Repartitioned<K, V>, ? super com.bakdata.kafka.Configurator, ? extends org.apache.kafka.streams.kstream.Repartitioned<K, V>> modifier) -
modify
-