Macaw.Data.Source.Manager.Index (macaw_data v0.21.1)

View Source

A source manager's published chunk index (spec/01 §6.4.3): what a reader needs to read its window from published chunks without calling the manager.

  • source, the source's name, and version, the publication's, counted from 1;
  • schema, the source's Macaw.Data.Schema, and header, the held table's columns as {name, type}, with sorted, the column its rows are in the order of;
  • served, the holding's served facts (spec/01 §3), but capped and reduced_by, kept per slot range (spec/01 §6.4.3): capped the held slot ranges a capped answer held, reduced_by those an answer the source reduced itself held, each [] for none;
  • axis, the slot axis (Macaw.Data.Source.Subscriptions with no readers), and whole, whether the source is demanded whole;
  • chunks, [{slot, id, write_seq}] in the table's order: each held chunk's slot number (nil for rows with no window value, or a source demanded whole), its id and its routing version (spec/01 §1.1.3).

Summary

Types

t()

@type t() :: %Macaw.Data.Source.Manager.Index{
  axis: Macaw.Data.Source.Subscriptions.t() | nil,
  chunks: [{integer() | nil, term(), pos_integer()}],
  header: [{term(), atom()}],
  schema: Macaw.Data.Schema.t() | nil,
  served: map(),
  sorted: term(),
  source: term(),
  version: non_neg_integer(),
  whole: boolean()
}