API documentation
krabka streams for Java
The Apache Kafka Streams API with krabka schema registry serdes and Apache Arrow columnar batch processing. Every public type documented, with examples.
v1.4.3 · Java 17+Every decoded batch carries the record's metadata as columns
| payload… | __key | __timestamp | __partition | __offset | __headers |
|---|---|---|---|---|---|
| amount: 7 | 0x616461 | 1786312800000 | 0 | 42 | [trace-id] |
| amount: 12 | 0x616461 | 1786312800417 | 0 | 43 | [trace-id] |
| amount: 3 | 0x626f62 | 1786312801003 | 0 | 44 | [] |
00Install
// build.gradle.kts — each module ships separately; any one pins the Kafka Streams API implementation("io.krabka:krabka-streams:1.4.3") implementation("io.krabka:krabka-streams-schema-serde:1.4.3") implementation("io.krabka:krabka-streams-columnar:1.4.3") implementation("io.krabka:krabka-streams-columnar-schema:1.4.3") testImplementation("io.krabka:krabka-streams-test-utils:1.4.3")
Or import io.krabka:krabka-streams-bom for version constraints across every module.
01Modules
krabka-streams
Apache Kafka Streams API and krabka defaults — the streams group protocol in one call.
io.krabka.streams
krabka-streams-schema-serde
Confluent-wire-compatible Avro, Protobuf, and JSON Schema serdes with a nonblocking registry client.
io.krabka.streams.schema
krabka-streams-columnar
Apache Arrow batch codecs, topologies, joins, windows, consumer-group runners, and barrier-aligned snapshots.
io.krabka.streams.columnar
krabka-streams-columnar-schema
Avro and Protobuf batch codecs and row bridges that map registry schemas onto native Arrow columns.
io.krabka.streams.columnar.schema
krabka-streams-test-utils
A broker-free columnar test driver and an in-memory schema registry stub.
io.krabka.streams.test
02The batch model
consumer.poll()
──▶
BatchCodec.decode
──▶
operators × Arrow
──▶
BatchCodec.encode
──▶
producer.send()
One fetched topic-partition batch is one processing unit: decoded into a single VectorSchemaRoot, transformed as whole batches by built-in or custom operators, produced and committed by the runner only after every acknowledgement arrives.