Skip to content

Comments

MINOR: refactor Kafka Streams "segment" code#21520

Open
mjsax wants to merge 4 commits intoapache:trunkfrom
mjsax:minor-refactor-segment
Open

MINOR: refactor Kafka Streams "segment" code#21520
mjsax wants to merge 4 commits intoapache:trunkfrom
mjsax:minor-refactor-segment

Conversation

@mjsax
Copy link
Member

@mjsax mjsax commented Feb 20, 2026

All implementations of Segment implement Comparable. We can let Segment
extend Comparable directly to reduce code duplication.

All sub-classes of AbstractSegments have very similar implementations of
getOrCreateSegment(). We can move the shared code into AbstractSegments.

This PR also removes unused methods from SegmentedByteStore.

All implementations of Segment also implement Comparable.
We can let Segment extend Comparable directly to reduce code duplication.
@mjsax mjsax added the streams label Feb 20, 2026
@github-actions github-actions bot added the small Small PRs label Feb 20, 2026
@github-actions github-actions bot removed the small Small PRs label Feb 20, 2026
@mjsax mjsax changed the title MINOR: refactor Segment MINOR: refactor Segment and SegmentedByteStore Feb 20, 2026
@mjsax mjsax changed the title MINOR: refactor Segment and SegmentedByteStore MINOR: refactor Kafka Streams "segment" code Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants