Skip to content

KAFKA-20741: Add ReadOnlyRecord IQv2 result type (KIP-1356)#22677

Open
Jess668 wants to merge 2 commits into
apache:trunkfrom
Jess668:kip-1356-readonly-record
Open

KAFKA-20741: Add ReadOnlyRecord IQv2 result type (KIP-1356)#22677
Jess668 wants to merge 2 commits into
apache:trunkfrom
Jess668:kip-1356-readonly-record

Conversation

@Jess668

@Jess668 Jess668 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Introduce a read-only view of a record (key/value/timestamp/headers); prerequisite for the KIP-1356 headers-aware IQv2 query types.

  • ReadOnlyRecord<K, V> (new, org.apache.kafka.streams.processor.api) — a read-only view
    exposing key() / value() / timestamp() / headers().
  • Record now implements ReadOnlyRecord.
  • ReadOnlyRecordTest — Record is assignable to ReadOnlyRecord and exposes the same key/value/timestamp/headers; headers are non-null/empty by default; null key/value tolerated.

Reviewers: Alieh Saeedi asaeedi@confluent.io

Introduce a read-only view of a record (key/value/timestamp/headers); Record implements it. Prerequisite for the KIP-1356 headers-aware IQv2 query types.
@Jess668 Jess668 marked this pull request as ready for review June 26, 2026 13:14
- Add @OverRide to Record's key/value/timestamp/headers accessors
- Drop tautological assertions in ReadOnlyRecordTest and use assertNull for null accessors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streams triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants