Package org.apache.kafka.streams.kstream
Class Joined<K,V,VO>
- java.lang.Object
-
- org.apache.kafka.streams.kstream.Joined<K,V,VO>
-
- Direct Known Subclasses:
JoinedInternal
public class Joined<K,V,VO> extends java.lang.ObjectTheJoinedclass represents optional params that can be passed toKStream#join(KTable,...)andKStream#leftJoin(KTable,...)operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.kafka.common.serialization.Serde<K>keySerdeprotected java.lang.Stringnameprotected org.apache.kafka.common.serialization.Serde<VO>otherValueSerdeprotected org.apache.kafka.common.serialization.Serde<V>valueSerde
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K,V,VO>
Joined<K,V,VO>as(java.lang.String name)Create an instance ofJoinedwith base name for all components of the join, this may include any repartition topics created to complete the join.org.apache.kafka.common.serialization.Serde<K>keySerde()static <K,V,VO>
Joined<K,V,VO>keySerde(org.apache.kafka.common.serialization.Serde<K> keySerde)Create an instance ofJoinedwith a keySerde.java.lang.Stringname()Deprecated.this method will be removed in a in a future releasestatic <K,V,VO>
Joined<K,V,VO>named(java.lang.String name)Deprecated.useas(String)insteadorg.apache.kafka.common.serialization.Serde<VO>otherValueSerde()static <K,V,VO>
Joined<K,V,VO>otherValueSerde(org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)Create an instance ofJoinedwith an other valueSerde.org.apache.kafka.common.serialization.Serde<V>valueSerde()static <K,V,VO>
Joined<K,V,VO>valueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)Create an instance ofJoinedwith a valueSerde.static <K,V,VO>
Joined<K,V,VO>with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde, org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)Create an instance ofJoinedwith key, value, and otherValueSerdeinstances.static <K,V,VO>
Joined<K,V,VO>with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde, org.apache.kafka.common.serialization.Serde<VO> otherValueSerde, java.lang.String name)Create an instance ofJoinedwith key, value, and otherValueSerdeinstances.Joined<K,V,VO>withKeySerde(org.apache.kafka.common.serialization.Serde<K> keySerde)Set the keySerdeto be used.Joined<K,V,VO>withName(java.lang.String name)Set the base name used for all components of the join, this may include any repartition topics created to complete the join.Joined<K,V,VO>withOtherValueSerde(org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)Set the otherValueSerdeto be used.Joined<K,V,VO>withValueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)Set the valueSerdeto be used.
-
-
-
Field Detail
-
keySerde
protected final org.apache.kafka.common.serialization.Serde<K> keySerde
-
valueSerde
protected final org.apache.kafka.common.serialization.Serde<V> valueSerde
-
otherValueSerde
protected final org.apache.kafka.common.serialization.Serde<VO> otherValueSerde
-
name
protected final java.lang.String name
-
-
Method Detail
-
with
public static <K,V,VO> Joined<K,V,VO> with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde, org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)
Create an instance ofJoinedwith key, value, and otherValueSerdeinstances.nullvalues are accepted and will be replaced by the default serdes as defined in config.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
keySerde- the key serde to use. Ifnullthe default key serde from config will be usedvalueSerde- the value serde to use. Ifnullthe default value serde from config will be usedotherValueSerde- the otherValue serde to use. Ifnullthe default value serde from config will be used- Returns:
- new
Joinedinstance with the provided serdes
-
with
public static <K,V,VO> Joined<K,V,VO> with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde, org.apache.kafka.common.serialization.Serde<VO> otherValueSerde, java.lang.String name)
Create an instance ofJoinedwith key, value, and otherValueSerdeinstances.nullvalues are accepted and will be replaced by the default serdes as defined in config.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
keySerde- the key serde to use. Ifnullthe default key serde from config will be usedvalueSerde- the value serde to use. Ifnullthe default value serde from config will be usedotherValueSerde- the otherValue serde to use. Ifnullthe default value serde from config will be usedname- the name used as the base for naming components of the join including any repartition topics- Returns:
- new
Joinedinstance with the provided serdes
-
keySerde
public static <K,V,VO> Joined<K,V,VO> keySerde(org.apache.kafka.common.serialization.Serde<K> keySerde)
Create an instance ofJoinedwith a keySerde.nullvalues are accepted and will be replaced by the default key serde as defined in config.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
keySerde- the key serde to use. Ifnullthe default key serde from config will be used- Returns:
- new
Joinedinstance configured with the keySerde
-
valueSerde
public static <K,V,VO> Joined<K,V,VO> valueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
Create an instance ofJoinedwith a valueSerde.nullvalues are accepted and will be replaced by the default value serde as defined in config.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
valueSerde- the value serde to use. Ifnullthe default value serde from config will be used- Returns:
- new
Joinedinstance configured with the valueSerde
-
otherValueSerde
public static <K,V,VO> Joined<K,V,VO> otherValueSerde(org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)
Create an instance ofJoinedwith an other valueSerde.nullvalues are accepted and will be replaced by the default value serde as defined in config.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
otherValueSerde- the otherValue serde to use. Ifnullthe default value serde from config will be used- Returns:
- new
Joinedinstance configured with the otherValueSerde
-
named
@Deprecated public static <K,V,VO> Joined<K,V,VO> named(java.lang.String name)
Deprecated.useas(String)insteadCreate an instance ofJoinedwith base name for all components of the join, this may include any repartition topics created to complete the join.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
name- the name used as the base for naming components of the join including any repartition topics- Returns:
- new
Joinedinstance configured with the name
-
as
public static <K,V,VO> Joined<K,V,VO> as(java.lang.String name)
Create an instance ofJoinedwith base name for all components of the join, this may include any repartition topics created to complete the join.- Type Parameters:
K- key typeV- value typeVO- other value type- Parameters:
name- the name used as the base for naming components of the join including any repartition topics- Returns:
- new
Joinedinstance configured with the name
-
withKeySerde
public Joined<K,V,VO> withKeySerde(org.apache.kafka.common.serialization.Serde<K> keySerde)
Set the keySerdeto be used. Null values are accepted and will be replaced by the default key serde as defined in config- Parameters:
keySerde- the key serde to use. If null the default key serde from config will be used- Returns:
- new
Joinedinstance configured with thename
-
withValueSerde
public Joined<K,V,VO> withValueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
Set the valueSerdeto be used. Null values are accepted and will be replaced by the default value serde as defined in config- Parameters:
valueSerde- the value serde to use. If null the default value serde from config will be used- Returns:
- new
Joinedinstance configured with thevalueSerde
-
withOtherValueSerde
public Joined<K,V,VO> withOtherValueSerde(org.apache.kafka.common.serialization.Serde<VO> otherValueSerde)
Set the otherValueSerdeto be used. Null values are accepted and will be replaced by the default value serde as defined in config- Parameters:
otherValueSerde- the otherValue serde to use. If null the default value serde from config will be used- Returns:
- new
Joinedinstance configured with thevalueSerde
-
withName
public Joined<K,V,VO> withName(java.lang.String name)
Set the base name used for all components of the join, this may include any repartition topics created to complete the join.- Parameters:
name- the name used as the base for naming components of the join including any repartition topics- Returns:
- new
Joinedinstance configured with thename
-
keySerde
public org.apache.kafka.common.serialization.Serde<K> keySerde()
-
valueSerde
public org.apache.kafka.common.serialization.Serde<V> valueSerde()
-
otherValueSerde
public org.apache.kafka.common.serialization.Serde<VO> otherValueSerde()
-
name
@Deprecated public java.lang.String name()
Deprecated.this method will be removed in a in a future release
-
-