GlobalKTableDefinition

abstract class GlobalKTableDefinition<K, V>(val tableName: String, val storeName: String = "-store", val topicName: String = "-topic", val serdes: KeyValueSerdes<K, V>, val storeType: <Error class: unknown class><K, V> = timestampedKeyValueStore()) : TopicDefinition<K, V>

equals a GlobalTableDefinition

After defining a GlobalKTable, use buildInstance to create an instance - this has a backing topic from which the GlobalKTable will be updated.

Constructors

Link copied to clipboard
constructor(tableName: String, storeName: String = "-store", topicName: String = "-topic", serdes: KeyValueSerdes<K, V>, storeType: <Error class: unknown class><K, V> = timestampedKeyValueStore())

Types

Link copied to clipboard
data class Instance<K, V>(val updatesKStream: KStream<K, V>, val globalKTable: GlobalKTable<K, V>, val definition: GlobalKTableDefinition<K, V>)

A GlobalKTable and the backing topic from which the table is filled.

Functions

Link copied to clipboard
Link copied to clipboard
fun <K, V> TopicDefinition<K, V>.consumeAsKStream(builder: StreamsBuilder, consumer: Consumed<K, V> = serdes.consumer("${pid}.input-stream")): KStream<K, V>
Link copied to clipboard
fun <K, V> TopicDefinition<K, V>.consumeAsKTable(builder: StreamsBuilder, consumer: Consumed<K, V> = serdes.consumer("${pid}.input-table")): KTable<K, V>
Link copied to clipboard

Properties

Link copied to clipboard
open val pid: String

unique Kafka processor ID - to help ensure topology names are unique

Link copied to clipboard
open override val serdes: KeyValueSerdes<K, V>
Link copied to clipboard
Link copied to clipboard
val storeType: <Error class: unknown class><K, V>
Link copied to clipboard
Link copied to clipboard
override val topicName: String

The name of the backing topic, from which this table will be filled.

Link copied to clipboard