branch
|
KStream<K, V>[] branch(
Predicate<? super K, ? super V>... predicates)
|
filter
|
KStream<K, V> filter(
Predicate<? super K, ? super V> predicate)
|
filterNot
|
KStream<K, V> filterNot(
Predicate<? super K, ? super V> predicate)
|
flatMap
|
KStream<KR, VR> flatMap(
KeyValueMapper<
? super K,
? super V,
? extends Iterable<? extends KeyValue<? extends KR, ? extends VR>>> mapper)
|
flatMapValues
|
KStream<K, VR> flatMapValues(
ValueMapper<
? super V,
? extends Iterable<? extends VR>> mapper)
KStream<K, VR> flatMapValues(
ValueMapperWithKey<
? super K,
? super V,
? extends Iterable<? extends VR>> mapper)
|
flatTransform
|
|
flatTransformValues
|
|
foreach
|
void foreach(
ForeachAction<? super K, ? super V> action)
|
groupBy
|
KGroupedStream<KR, V> groupBy(
KeyValueMapper<? super K, ? super V, KR> selector)
KGroupedStream<KR, V> groupBy(
KeyValueMapper<? super K, ? super V, KR> selector,
Grouped<KR, V> grouped)
|
groupByKey
|
KGroupedStream<K, V> groupByKey()
KGroupedStream<K, V> groupByKey(
Grouped<K, V> grouped)
|
join
|
KStream<K, RV> join(
GlobalKTable<GK, GV> globalKTable,
KeyValueMapper<? super K, ? super V, ? extends GK> keyValueMapper,
ValueJoiner<? super V, ? super GV, ? extends RV> joiner)
KStream<K, VR> join(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows)
KStream<K, VR> join(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows,
Joined<K, V, VO> joined)
KStream<K, VR> join(
KTable<K, VT> table,
ValueJoiner<? super V, ? super VT, ? extends VR> joiner)
KStream<K, VR> join(
KTable<K, VT> table,
ValueJoiner<? super V, ? super VT, ? extends VR> joiner,
Joined<K, V, VT> joined)
|
leftJoin
|
KStream<K, RV> leftJoin(
GlobalKTable<GK, GV> globalKTable,
KeyValueMapper<? super K, ? super V, ? extends GK> keyValueMapper,
ValueJoiner<? super V, ? super GV, ? extends RV> valueJoiner)
KStream<K, VR> leftJoin(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows)
KStream<K, VR> leftJoin(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows,
Joined<K, V, VO> joined)
KStream<K, VR> leftJoin(
KTable<K, VT> table,
ValueJoiner<? super V, ? super VT, ? extends VR> joiner)
KStream<K, VR> leftJoin(
KTable<K, VT> table,
ValueJoiner<? super V, ? super VT, ? extends VR> joiner,
Joined<K, V, VT> joined)
|
map
|
KStream<KR, VR> map(
KeyValueMapper<
? super K,
? super V,
? extends KeyValue<? extends KR, ? extends VR>> mapper)
|
mapValues
|
KStream<K, VR> mapValues(
ValueMapper<? super V, ? extends VR> mapper)
KStream<K, VR> mapValues(
ValueMapperWithKey<? super K, ? super V, ? extends VR> mapper)
|
merge
|
KStream<K, V> merge(
KStream<K, V> stream)
|
outerJoin
|
KStream<K, VR> outerJoin(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows)
KStream<K, VR> outerJoin(
KStream<K, VO> otherStream,
ValueJoiner<? super V, ? super VO, ? extends VR> joiner,
JoinWindows windows,
Joined<K, V, VO> joined)
|
peek
|
KStream<K, V> peek(
ForeachAction<? super K, ? super V> action)
|
print
|
void print(
Printed<K, V> printed)
|
process
|
void process(
ProcessorSupplier<? super K, ? super V> processorSupplier,
String... stateStoreNames)
|
selectKey
|
KStream<KR, V> selectKey(
KeyValueMapper<
? super K,
? super V,
? extends KR> mapper)
|
through
|
KStream<K, V> through(
String topic)
KStream<K, V> through(
String topic,
Produced<K, V> produced)
Materializes the stream to a given topic (passes it through) and creates a new KStream from the topic (using the Produced for configuration)
|
to
|
void to(
String topic)
void to(
String topic,
Produced<K, V> produced)
void to(
TopicNameExtractor<K, V> topicExtractor)
void to(
TopicNameExtractor<K, V> topicExtractor,
Produced<K, V> produced)
Note
|
Topics should be created manually before the Kafka Streams application is started.
|
|
transform
|
Stateful record transformation
|
transformValues
|
Stateful record-by-record value transformation
|