Key-Value - Input
In this tutorial we use key-values. Key-values are entries that take record a key and the corresponding value. This example will focus on taking inputs from a key-value topic to a non-key-value topic.
Prerequisites
This guide uses local
Fluvio cluster. If you need to install it, please follow the instructions at here.
Dataflow
Overview
In this example, we will write an example that takes inputs from a key-value topic then transforms it via a filter-map
to select only students in a certain class.

Define the types
For this example, we will not be using primitive types. We have the following objects.
types:
student-info:
type: object
properties:
age:
type: u32
teacher:
type: string
grade:
type: f32
student-in-class:
type: object
properties:
name:
type: string
grade:
type: f32
We have two object types here. A student-info
that stores the value of the source. And student-in-class
that captures the sink's type.