Skip to content

[events] Hot segment reader #660

Description

@urvisavla

Implement the read primitives for the hot segment, against the storage backend used by the writer (#659).

Scope:

  • Lookup(termKey) → bitmap of event IDs (returns ErrTermNotFound on miss).
  • FetchEvents([]eventID) → iter of decoded payloads.
  • All() → iter over every event in the chunk in event-id order.
  • Metadata accessors: ChunkID, EventCount, Offsets.
  • Concurrency: many concurrent readers; writer holds an exclusive mutex during ingest.

Out of scope (separate issues):

Add tests covering: lookup hits and misses, ordered streaming of all events, fetch-by-id round-trips, and concurrent-read correctness.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions