@elaraai/east-ui 1.0.98 → 1.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +0 -1
  2. package/dist/src/contracts/editing.d.ts +4 -0
  3. package/dist/src/contracts/editing.d.ts.map +1 -1
  4. package/dist/src/contracts/editing.js +2 -1
  5. package/dist/src/contracts/editing.js.map +1 -1
  6. package/dist/src/contracts/indexed-source.d.ts +47 -10
  7. package/dist/src/contracts/indexed-source.d.ts.map +1 -1
  8. package/dist/src/contracts/indexed-source.js +44 -9
  9. package/dist/src/contracts/indexed-source.js.map +1 -1
  10. package/dist/src/contracts/source.d.ts +3 -0
  11. package/dist/src/contracts/source.d.ts.map +1 -1
  12. package/dist/src/contracts/source.js +59 -0
  13. package/dist/src/contracts/source.js.map +1 -1
  14. package/dist/src/internal.d.ts +2 -0
  15. package/dist/src/internal.d.ts.map +1 -1
  16. package/dist/src/internal.js +2 -0
  17. package/dist/src/internal.js.map +1 -1
  18. package/dist/src/layout/snap-grid/index.d.ts +1 -0
  19. package/dist/src/layout/snap-grid/index.d.ts.map +1 -1
  20. package/dist/src/platform/slice/index.d.ts +2 -2
  21. package/dist/src/platform/slice/index.js +2 -2
  22. package/dist/src/platform/slice/record-area.d.ts +24 -18
  23. package/dist/src/platform/slice/record-area.d.ts.map +1 -1
  24. package/dist/src/platform/slice/record-area.js +25 -18
  25. package/dist/src/platform/slice/record-area.js.map +1 -1
  26. package/dist/src/platform/slice/record-chrome.d.ts +38 -88
  27. package/dist/src/platform/slice/record-chrome.d.ts.map +1 -1
  28. package/dist/src/platform/slice/record-interval.d.ts +31 -1
  29. package/dist/src/platform/slice/record-interval.d.ts.map +1 -1
  30. package/dist/src/platform/slice/record-interval.js +39 -3
  31. package/dist/src/platform/slice/record-interval.js.map +1 -1
  32. package/dist/src/platform/slice/record-on.d.ts +45 -0
  33. package/dist/src/platform/slice/record-on.d.ts.map +1 -0
  34. package/dist/src/platform/slice/record-on.js +71 -0
  35. package/dist/src/platform/slice/record-on.js.map +1 -0
  36. package/dist/src/platform/slice/record-plan.d.ts +45 -16
  37. package/dist/src/platform/slice/record-plan.d.ts.map +1 -1
  38. package/dist/src/platform/slice/record-plan.js +84 -60
  39. package/dist/src/platform/slice/record-plan.js.map +1 -1
  40. package/dist/src/platform/slice/record-series.d.ts +118 -52
  41. package/dist/src/platform/slice/record-series.d.ts.map +1 -1
  42. package/dist/src/platform/slice/record-series.js +169 -80
  43. package/dist/src/platform/slice/record-series.js.map +1 -1
  44. package/dist/src/platform/slice/record-sources.d.ts +6 -2
  45. package/dist/src/platform/slice/record-sources.d.ts.map +1 -1
  46. package/dist/src/platform/slice/record-sources.js.map +1 -1
  47. package/dist/src/platform/slice/record-types.d.ts +324 -757
  48. package/dist/src/platform/slice/record-types.d.ts.map +1 -1
  49. package/dist/src/platform/slice/record-types.js +62 -31
  50. package/dist/src/platform/slice/record-types.js.map +1 -1
  51. package/dist/src/platform/slice/record.d.ts +29 -16
  52. package/dist/src/platform/slice/record.d.ts.map +1 -1
  53. package/dist/src/platform/slice/record.js +58 -53
  54. package/dist/src/platform/slice/record.js.map +1 -1
  55. package/dist/src/runtime/record-slice-source.d.ts +5 -4
  56. package/dist/src/runtime/record-slice-source.d.ts.map +1 -1
  57. package/dist/src/runtime/record-slice-source.js.map +1 -1
  58. package/dist/src/runtime/record-slice.d.ts +30 -6
  59. package/dist/src/runtime/record-slice.d.ts.map +1 -1
  60. package/dist/src/runtime/record-slice.js +119 -21
  61. package/dist/src/runtime/record-slice.js.map +1 -1
  62. package/dist/src/slice/record/index.d.ts +19 -44
  63. package/dist/src/slice/record/index.d.ts.map +1 -1
  64. package/package.json +6 -5
@@ -5,21 +5,43 @@
5
5
  /** Query planning shared by authoring validation and the record Slice runtime. */
6
6
  import { none, some, variant } from "@elaraai/east";
7
7
  import { intervalQueries } from "./record-interval.js";
8
- import { AREA_FIELD, AREA_UNPLACED, areaQueries } from "./record-area.js";
8
+ import { AREA_UNPLACED, areaQueries } from "./record-area.js";
9
+ /**
10
+ * The row fields a narrowing reads an index by, in order (#1432): its own —
11
+ * a plain index's fields, a generated index's `on` — then an interval's start,
12
+ * which a range reads through it.
13
+ * @param index - Available field path.
14
+ * @returns Its fields, an interval's start after them.
15
+ */
16
+ export function recordIndexFields(index) {
17
+ return index.interval.type === "some" ? [...index.fields, index.interval.value.from] : index.fields;
18
+ }
19
+ /**
20
+ * Whether an index's key is generated (#1432): its row fields under `on`, e3's
21
+ * own parts beside them — an interval, an area, a series or a summary index's.
22
+ * @param index - Available field path.
23
+ * @returns Whether its key nests its leading fields.
24
+ */
25
+ export function recordIndexGenerated(index) {
26
+ return index.interval.type === "some" || index.area.type === "some" || index.series.type === "some" || index.summary.type === "some";
27
+ }
9
28
  /** Bound the fan-out of a multi-choice path; never replace it with a row scan. */
10
29
  export const MAX_RECORD_SLICE_RUNS = 64;
11
30
  /**
12
31
  * Whether one index can answer every clause without scanning or duplicate rows.
13
- * A clause under `__area` — a window, or the unplaced clause — is answered only
14
- * by an area index whose leading fields the other clauses fill exactly. A
15
- * series or a summary index answers none (#1039): the one files a row under
16
- * each tile it touches, and the other's entries name no row; a reader reads
17
- * their cells (`record-series.ts`).
32
+ * A read by area's clause — a window, or the unplaced clause — is answered
33
+ * only by an area index whose leading fields the narrowing fills exactly. A
34
+ * generated index names its leading values as one `on` (#1432), so a narrowing
35
+ * read through it chooses each of them exactly, an interval's start after
36
+ * them. A series or a summary index answers none (#1039): the one files a row
37
+ * past a year under each year it touches (#1433), and the other's entries name
38
+ * no row; a reader reads their cells (`record-series.ts`).
18
39
  * @param index - Available field path.
19
40
  * @param where - Current narrowing.
41
+ * @param area - A read by area's clause, beside the narrowing.
20
42
  * @returns Whether it is a supported path.
21
43
  */
22
- export function recordPathMatches(index, where) {
44
+ export function recordPathMatches(index, where, area) {
23
45
  if (index.series.type === "some" || index.summary.type === "some")
24
46
  return false;
25
47
  for (const field of index.sets) {
@@ -27,23 +49,17 @@ export function recordPathMatches(index, where) {
27
49
  if (choice?.type !== "values" || choice.value.length !== 1)
28
50
  return false;
29
51
  }
30
- for (const [field, choice] of where)
31
- if (choice.type === "window" && field !== AREA_FIELD)
32
- return false;
33
- const area = where.get(AREA_FIELD);
34
- if (area !== undefined) {
35
- if (index.area.type !== "some" || (area.type !== "window" && area.type !== "values"))
36
- return false;
37
- const leading = index.fields.slice(0, -1);
38
- return leading.every(field => where.get(field)?.type === "values") && where.size === leading.length + 1;
39
- }
52
+ const exact = () => index.fields.every(field => where.get(field)?.type === "values");
53
+ if (area !== undefined)
54
+ return index.area.type === "some" && exact() && where.size === index.fields.length;
40
55
  if (index.interval.type === "some") {
41
- const leading = index.fields.slice(0, -1);
42
- if (leading.some(field => where.get(field)?.type !== "values"))
56
+ if (!exact())
43
57
  return false;
44
58
  const time = where.get(index.interval.value.from);
45
- return time?.type !== "prefix" && where.size === leading.length + (time === undefined ? 0 : 1);
59
+ return time?.type !== "prefix" && where.size === index.fields.length + (time === undefined ? 0 : 1);
46
60
  }
61
+ if (index.area.type === "some")
62
+ return exact() && where.size === index.fields.length;
47
63
  let seen = 0;
48
64
  for (const field of index.fields) {
49
65
  const choice = where.get(field);
@@ -55,19 +71,24 @@ export function recordPathMatches(index, where) {
55
71
  }
56
72
  return seen === where.size;
57
73
  }
58
- /** Pick a supported path without executing or parsing its ranges. */
59
- export function recordPlanIndex(indexes, where) {
74
+ /**
75
+ * Pick a supported path without executing or parsing its ranges.
76
+ * @param indexes - Available paths.
77
+ * @param where - Current narrowing.
78
+ * @param area - A read by area's clause, beside the narrowing.
79
+ * @returns The path, or `undefined` when none answers it.
80
+ */
81
+ export function recordPlanIndex(indexes, where, area) {
60
82
  const overlaps = new Set(indexes.flatMap(index => index.interval.type === "some" && where.get(index.interval.value.from)?.type === "range" ? [index.interval.value.from] : []));
61
- return indexes.find(index => recordPathMatches(index, where) && (overlaps.size === 0
83
+ return indexes.find(index => recordPathMatches(index, where, area) && (overlaps.size === 0
62
84
  || index.interval.type === "some" && overlaps.has(index.interval.value.from)));
63
85
  }
64
86
  /**
65
- * Why no listed index answers a narrowing with a clause under `__area`: the
66
- * choice it cannot take beside it, or the area index it needs, by the fields
67
- * the other clauses choose.
87
+ * Why no listed index answers a read by area: the choice it cannot take
88
+ * beside it, or the area index it needs, by the fields the narrowing chooses.
68
89
  */
69
90
  function areaRefusal(indexes, where) {
70
- const beside = [...where.keys()].filter(field => field !== AREA_FIELD);
91
+ const beside = [...where.keys()];
71
92
  const named = (fields) => fields.map(field => `'${field}'`).join(", ");
72
93
  const inexact = beside.filter(field => where.get(field).type !== "values");
73
94
  if (inexact.length > 0) {
@@ -80,7 +101,7 @@ function areaRefusal(indexes, where) {
80
101
  }
81
102
  const on = beside.length === 0 ? "" : `on: [${beside.map(field => JSON.stringify(field)).join(", ")}], `;
82
103
  return `A read by area${beside.length === 0 ? "" : ` beside ${named(beside)}`} needs an area index led by ` +
83
- `${beside.length === 0 ? "no field" : `exactly ${named(beside)}`} — e3.recordIndex.area(name, record, { ${on}x, y, … }), ` +
104
+ `${beside.length === 0 ? "no field" : `exactly ${named(beside)}`} — index.area({ ${on}x, y, … }) among the record's indexes, ` +
84
105
  `listed in Data.bindPaged's indexes` + (areas.length === 0 ? "; this binding lists none"
85
106
  : `; ${named(areas.map(index => index.name))} ${areas.length === 1 ? "is" : "are"} led by other fields`);
86
107
  }
@@ -89,34 +110,34 @@ function areaRefusal(indexes, where) {
89
110
  * prefix or half-open range. The server answers every query; no predicate runs
90
111
  * over a fetched row. Completed ranges are sorted by their actual source offsets.
91
112
  *
92
- * A clause under `__area` reads through an area index whose leading fields the
93
- * other clauses fill exactly: a `window`, the disjoint searches of
113
+ * A read by area reads through an area index whose leading fields the
114
+ * narrowing fills exactly: its `window`, the disjoint searches of
94
115
  * {@link areaQueries} a combination of their values, or the unplaced clause, the
95
- * rows with no place.
116
+ * rows with no place. A generated index's searches of its key's own fields
117
+ * name its leading values as one `on` literal (#1432), through its printer.
96
118
  *
97
119
  * @param indexes - Available paths.
98
120
  * @param where - Field choices, in any authored order.
99
121
  * @param defaultIndex - Unfiltered source containing every primary row once.
122
+ * @param area - A read by area's clause, beside the narrowing; none for any other read.
123
+ * @param printOn - Each generated index's `on` printer, by its name.
100
124
  * @returns One path and its key searches; null when no index answers it.
101
125
  * @throws When a choice would exceed the bounded number of disjoint runs; when a
102
- * clause under `__area` has no area index to read it, naming the one to
103
- * declare; or when a window or the unplaced clause is malformed.
126
+ * read by area has no area index to read it, naming the one to declare; when
127
+ * the window is malformed; or when a generated index is read with no printer.
104
128
  */
105
- export function planRecordSlice(indexes, where, defaultIndex) {
106
- if (where.size === 0) {
129
+ export function planRecordSlice(indexes, where, defaultIndex, area, printOn) {
130
+ const onOf = (index) => {
131
+ if (printOn === undefined)
132
+ throw new Error(`Reading '${index.name}' names its leading values as one on, and no printer was given for it`);
133
+ return printOn(index.name);
134
+ };
135
+ if (where.size === 0 && area === undefined) {
107
136
  const index = indexes.find(candidate => candidate.name === defaultIndex);
108
- return { index: defaultIndex, queries: index?.interval.type === "some" && index.fields.length === 1
109
- ? intervalQueries([], undefined, index.interval.value) : [] };
110
- }
111
- for (const [field, choice] of where) {
112
- if (choice.type === "window" && field !== AREA_FIELD)
113
- throw new Error(`A window reads through an area index's ${AREA_FIELD}, not '${field}'`);
137
+ return { index: defaultIndex, queries: index?.interval.type === "some" && index.fields.length === 0
138
+ ? intervalQueries([], undefined, index.interval.value, onOf(index)) : [] };
114
139
  }
115
- const area = where.get(AREA_FIELD);
116
- if (area !== undefined && area.type !== "window" && area.type !== "values") {
117
- throw new Error(`Under ${AREA_FIELD}, choose a window or the unplaced clause, not a ${area.type}`);
118
- }
119
- const index = recordPlanIndex(indexes, where);
140
+ const index = recordPlanIndex(indexes, where, area);
120
141
  if (index === undefined) {
121
142
  if (area !== undefined)
122
143
  throw new Error(areaRefusal(indexes, where));
@@ -124,8 +145,7 @@ export function planRecordSlice(indexes, where, defaultIndex) {
124
145
  }
125
146
  let prefixes = [[]];
126
147
  let tail;
127
- const generated = index.interval.type === "some" || (area !== undefined && index.area.type === "some");
128
- for (const field of generated ? index.fields.slice(0, -1) : index.fields) {
148
+ for (const field of index.fields) {
129
149
  const choice = where.get(field);
130
150
  if (choice === undefined)
131
151
  break;
@@ -143,15 +163,13 @@ export function planRecordSlice(indexes, where, defaultIndex) {
143
163
  }
144
164
  if (area !== undefined && index.area.type === "some") {
145
165
  const box = index.area.value;
166
+ const on = onOf(index);
146
167
  if (area.type === "window") {
147
- return { index: index.name, queries: prefixes.flatMap(values => areaQueries(values, area.value, box.cell)) };
148
- }
149
- if (area.type !== "values" || area.value.length !== 1 || area.value[0] !== AREA_UNPLACED) {
150
- throw new Error(`Under ${AREA_FIELD}, the one value is the unplaced clause, ${AREA_UNPLACED}`);
168
+ return { index: index.name, queries: prefixes.flatMap(values => areaQueries(values, area.value, box.cell, on)) };
151
169
  }
152
170
  if (!box.optional)
153
171
  throw new Error(`'${index.name}' places every row: its '${box.x}' and '${box.y}' are not Options, so none is unplaced`);
154
- return { index: index.name, queries: prefixes.map(values => variant("fields", { values: [...values, AREA_UNPLACED], prefix: none })) };
172
+ return { index: index.name, queries: prefixes.map(values => variant("fields", { values: [on(values), AREA_UNPLACED], prefix: none })) };
155
173
  }
156
174
  if (index.interval.type === "some") {
157
175
  const interval = index.interval.value;
@@ -159,7 +177,13 @@ export function planRecordSlice(indexes, where, defaultIndex) {
159
177
  if (choice?.type === "values" && prefixes.length * choice.value.length > MAX_RECORD_SLICE_RUNS) {
160
178
  throw new Error(`This combination needs more than ${MAX_RECORD_SLICE_RUNS} searches; choose fewer values`);
161
179
  }
162
- return { index: index.name, queries: prefixes.flatMap(values => intervalQueries(values, choice, interval)) };
180
+ const on = onOf(index);
181
+ return { index: index.name, queries: prefixes.flatMap(values => intervalQueries(values, choice, interval, on)) };
182
+ }
183
+ if (index.area.type === "some") {
184
+ // A narrowing read through an area index chooses its every leading value: its `on`, one literal.
185
+ const on = onOf(index);
186
+ return { index: index.name, queries: prefixes.map(values => variant("fields", { values: [on(values)], prefix: none })) };
163
187
  }
164
188
  return { index: index.name, queries: prefixes.map(values => {
165
189
  if (tail?.type === "range")
@@ -195,19 +219,19 @@ const SAMPLES = {
195
219
  * @param indexes - Available field paths.
196
220
  * @param current - Current narrowing.
197
221
  * @param field - The field being chosen.
198
- * @param kind - The kind of its choice: exact values, a range or a prefix (a window is a read's, never the rail's).
222
+ * @param kind - The kind of its choice: exact values, a range or a prefix.
199
223
  * @param offered - The fields the rail offers: one it does not can never be chosen first.
200
224
  * @returns The fields still to choose, in their index's order — none where none is — or null.
201
225
  */
202
226
  export function recordChoiceNeeds(indexes, current, field, kind, offered) {
203
- if (kind === "window")
204
- return null;
205
227
  let best = null;
206
228
  for (const index of indexes) {
207
- const at = index.fields.indexOf(field);
229
+ const fields = recordIndexFields(index);
230
+ const at = fields.indexOf(field);
208
231
  if (at < 0 || index.series.type === "some" || index.summary.type === "some")
209
232
  continue;
210
- const before = index.interval.type === "some" ? index.fields.slice(0, -1) : index.fields.slice(0, at);
233
+ // An interval index's leading fields, its `on` (#1432), are taken together whichever is chosen; another's, those before the field.
234
+ const before = index.interval.type === "some" ? index.fields : fields.slice(0, at);
211
235
  const needed = [...new Set([...before, ...index.sets])].filter(name => name !== field);
212
236
  if (needed.some(name => !offered.has(name)))
213
237
  continue;
@@ -244,7 +268,7 @@ export function recordChoiceWhere(indexes, current, field, choice) {
244
268
  let best = choice === undefined ? new Map() : null;
245
269
  for (const index of indexes) {
246
270
  const candidate = new Map();
247
- for (const name of index.fields) {
271
+ for (const name of recordIndexFields(index)) {
248
272
  const clause = requested.get(name);
249
273
  if (clause === undefined)
250
274
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"record-plan.js","sourceRoot":"","sources":["../../../../src/platform/slice/record-plan.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,kFAAkF;AAClF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAoB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6
  * Queries for e3's series and summary indexes (#1039), the twin of
7
7
  * `record-interval.ts` and `record-area.ts`: a record's events filed by the key
8
- * they are on — a Plan's resource — and by each time tile they touch,
9
- * `{ …on, __tile, <key> }`. A series index holds an entry for each event in
10
- * each tile it touches, carrying the row; a summary index one entry for each
11
- * key in each tile, `{ count, ms }`, standing for every event touching it.
12
- *
13
- * A **cell** is some keys in one tile: what a reader reads of either index for
14
- * a block of its rows. Each key of a cell is one search, `[…on, tile, key]`,
15
- * which holds exactly that key's entries in that tile, so a cell's searches
16
- * hold its keys' entries and no others, in whatever order its keys come — a
17
- * block of rows narrowed or ordered by another index included. A reader asks
18
- * every cell it wants in one batch of searches, which counts each cell's
19
- * entries before one is read, and reads them in one batch of runs.
8
+ * they are on — a Plan's resource — and by time (#1432, #1433).
9
+ *
10
+ * - A **series index** files each event once, `{ on, key, level, tile }`: at
11
+ * the finest level, from its declared tile up to the year, whose shortest
12
+ * tile holds the event's length, under that level's tile holding its start —
13
+ * or, past a year, under each year it touches — carrying the row. An event
14
+ * filed at a level ends before the end of the tile after the one holding its
15
+ * start, so a reader finds every event at a level that overlaps a range by
16
+ * reading that level's tiles from the one before the range's first: a
17
+ * **run** ({@link levelRuns}).
18
+ * - A **summary index** keeps one entry for each key in each of its tiles,
19
+ * `{ on, key, tile }` → `{ count, ms }`, standing for every event touching
20
+ * it; a reader reads its tiles over the range ({@link summaryRun}).
21
+ *
22
+ * A **cell** is some keys over one run: what a reader reads of either index
23
+ * for a block of its rows. Each key of a cell is one range search — the key
24
+ * leads the tile in either index's key — holding exactly that key's entries in
25
+ * the run, so a cell's searches hold its keys' entries and no others, in
26
+ * whatever order its keys come — a block of rows narrowed or ordered by
27
+ * another index included. A reader asks every cell it wants in one batch of
28
+ * searches, which counts each cell's entries before one is read, and reads
29
+ * them in one batch of runs: one range a key a level, whatever the range's
30
+ * width.
20
31
  *
21
32
  * Neither index serves the rail's narrowing (`record-plan.ts`): a series index
22
- * files an event under each tile it touches, so its runs would count the event
23
- * more than once, and a summary index's entries name no row. A narrowing
24
- * reaches a cell through the index's leading fields, chosen exactly; what else
25
- * it chooses is the reader's to ask of the events it draws (`within`).
33
+ * files an event past a year under each year it touches, so its runs would
34
+ * count the event more than once, and a summary index's entries name no row.
35
+ * A narrowing reaches a cell through the index's leading fields, chosen
36
+ * exactly; what else it chooses is the reader's to ask of the events it draws
37
+ * (`within`).
26
38
  *
27
- * The tiles are e3's, to the millisecond (`e3.recordIndex.series`): a day and
39
+ * The tiles are e3's, to the millisecond (`index.series`): a day and
28
40
  * an ISO week counted in whole milliseconds from the epoch and from the Monday
29
41
  * before it, so an instant before 1970 is tiled as one after it; a month, a
30
42
  * quarter and a year by the UTC calendar.
31
43
  */
32
44
  import { type ValueTypeOf } from "@elaraai/east";
33
45
  import type { SeekQueryType } from "../../contracts/source.js";
34
- import type { RecordSliceChoiceType, RecordSliceIndexType, RecordSliceTileType, RecordSliceTilingType } from "./record-types.js";
46
+ import { RecordSliceTileType, type RecordSliceChoiceType, type RecordSliceIndexType, type RecordSliceTilingType } from "./record-types.js";
35
47
  type Choice = ValueTypeOf<RecordSliceChoiceType>;
36
48
  type Index = ValueTypeOf<RecordSliceIndexType>;
37
49
  type Tiling = ValueTypeOf<RecordSliceTilingType>;
38
- /** A series or a summary index's tile field: the tile's start, after the index's leading fields and before its key. */
39
- export declare const TILE_FIELD = "__tile";
40
50
  /** A tile: a day, an ISO week from Monday, a calendar month, a quarter or a year, in UTC. */
41
51
  export type RecordTile = keyof RecordSliceTileType["cases"] & string;
42
52
  /** The tiles, from the shortest. */
@@ -55,18 +65,20 @@ export interface TileMarker {
55
65
  readonly summary: boolean;
56
66
  }
57
67
  /**
58
- * The names of the struct `Data.bindPaged` marks a series or a summary index's
59
- * `__tile` with in a binding's index metadata, as an area index's `__area` is
60
- * marked with its box: the key, start and end fields and the tile, each named
61
- * with its role (`key=…`), and `__summary` for a summary index.
68
+ * The names of the struct `Data.bindPaged` marks a series or a summary index
69
+ * with in a binding's index metadata — its kind's `series` or `summary` case
70
+ * (#1432), as an area index's case names its box: the key, start and end
71
+ * fields and the tile, each named with its role (`key=…`), and `__summary` for
72
+ * a summary index. A marker's names are the kind's own, never a row field
73
+ * among the index's.
62
74
  *
63
75
  * @param marker - How the index files the record's events
64
76
  * @returns The marker struct's field names, in order
65
77
  */
66
78
  export declare function tileMarkerFields(marker: TileMarker): string[];
67
79
  /**
68
- * Read a series or a summary index's filing back from its `__tile` marker's
69
- * field names ({@link tileMarkerFields}).
80
+ * Read a series or a summary index's filing back from its marker's field
81
+ * names ({@link tileMarkerFields}).
70
82
  *
71
83
  * @param names - The marker struct's field names
72
84
  * @returns The filing, or `undefined` when the names are not a tile marker's
@@ -90,19 +102,6 @@ export declare function tileStart(tile: RecordTile, at: Date): Date;
90
102
  * @returns The next tile's start
91
103
  */
92
104
  export declare function tileNext(tile: RecordTile, start: Date): Date;
93
- /**
94
- * The tiles a span `[from, to)` overlaps, as e3 files an event over them: each
95
- * tile's start, in order — the one tile holding `from` when `to` is at or
96
- * before it.
97
- *
98
- * @param tile - The tile
99
- * @param from - The span's start
100
- * @param to - Its end, exclusive
101
- * @param limit - The most tiles to list, at least one
102
- * @returns The tiles' starts; `undefined` when the span overlaps more than `limit` of them
103
- * @throws {Error} When `limit` is below one
104
- */
105
- export declare function tilesOver(tile: RecordTile, from: Date, to: Date, limit: number): Date[] | undefined;
106
105
  /**
107
106
  * How a series or a summary index files a record's events: the index's own
108
107
  * metadata, or `undefined` for an index of another kind.
@@ -140,27 +139,94 @@ export interface TileCellPlan {
140
139
  /** The searches, one for each combination of the leading fields' chosen values and each key, the keys inner. */
141
140
  readonly queries: ValueTypeOf<SeekQueryType>[];
142
141
  /** The fields of the narrowing the searches do not answer — every field but the index's leading fields and a
143
- * range of its start field, which the tiles cover. The reader asks of each event it draws whether the
142
+ * range of its start field, which the runs cover. The reader asks of each event it draws whether the
144
143
  * narrowing holds it (`within`); none, and every entry is the narrowing's. */
145
144
  readonly residual: readonly string[];
146
145
  }
147
146
  /**
148
- * Plan a cell of a series or a summary index: some keys in one tile, a search
149
- * for each key under each combination of the narrowing's values of the index's
150
- * leading fields, `[…on, tile, key]`, holding that key's entries in that tile
151
- * and no other's. A range of the index's start field — the window — is the
152
- * reader's: its tiles cover it.
147
+ * The tiles of one level a reader reads, half-open: from the first tile's
148
+ * start to the start of the tile after the last.
149
+ */
150
+ export interface TileRun {
151
+ /** The level. */
152
+ readonly level: RecordTile;
153
+ /** The first tile's start. */
154
+ readonly from: Date;
155
+ /** The start of the tile after the last. */
156
+ readonly to: Date;
157
+ }
158
+ /**
159
+ * The levels a series index declared at a tile files at (#1433), the finest
160
+ * first: the tile, and every coarser one up to the year.
161
+ *
162
+ * @param tile - The declared tile
163
+ * @returns The tile and every coarser one
164
+ */
165
+ export declare function levelsOf(tile: RecordTile): readonly RecordTile[];
166
+ /**
167
+ * What a reader reads of a series index over a range `[from, to)` (#1433): a
168
+ * run a level, each from two tiles before the one holding `from` — the tile
169
+ * before it, which may hold an event reaching into the range, and the one a
170
+ * pan back reaches first — to the one after the tile holding the range's last
171
+ * instant, the one a pan on reaches first.
172
+ *
173
+ * @param tile - The declared tile
174
+ * @param from - The range's start
175
+ * @param to - Its end, exclusive
176
+ * @returns A run a level, the finest first
177
+ */
178
+ export declare function levelRuns(tile: RecordTile, from: Date, to: Date): TileRun[];
179
+ /**
180
+ * What a reader reads of a summary index over a range `[from, to)` (#1433):
181
+ * its tiles from the one before the tile holding `from` to the one after the
182
+ * tile holding the range's last instant. A total is split by tile, so nothing
183
+ * before them carries in.
184
+ *
185
+ * @param tile - The summary's tile
186
+ * @param from - The range's start
187
+ * @param to - Its end, exclusive
188
+ * @returns The run, half-open
189
+ */
190
+ export declare function summaryRun(tile: RecordTile, from: Date, to: Date): {
191
+ readonly from: Date;
192
+ readonly to: Date;
193
+ };
194
+ /**
195
+ * Plan a cell of a series index (#1433): some keys over one level's run, a
196
+ * range search for each key under each combination of the narrowing's values
197
+ * of the index's leading fields, `[…on, key, level, from]` to
198
+ * `[…on, key, level, to]` — the key flattened, the leading values one by one
199
+ * (#1432) — holding that key's entries at that level in the run's tiles and
200
+ * no other's. A range of the index's start field — the window — is the
201
+ * reader's: its runs cover it.
202
+ *
203
+ * @param index - A series index ({@link tileIndexFor})
204
+ * @param where - The narrowing
205
+ * @param run - The level and its tiles ({@link levelRuns})
206
+ * @param keys - The keys, as `.east` literals of the index's key field
207
+ * @returns The cell's searches, and the fields the reader asks of each event
208
+ * @throws {Error} When the index is no series index, when the narrowing does
209
+ * not choose exact values of each of its leading fields (one of a Set's), when
210
+ * the combinations of them pass {@link MAX_RECORD_SLICE_RUNS}, when the
211
+ * index files at no such level, or when the run's ends do not start tiles of
212
+ * its level
213
+ */
214
+ export declare function levelCellQueries(index: Index, where: ReadonlyMap<string, Choice>, run: TileRun, keys: readonly string[]): TileCellPlan;
215
+ /**
216
+ * Plan a cell of a summary index (#1433): some keys over a run of its tiles, a
217
+ * range search for each key under each combination of the narrowing's values
218
+ * of the index's leading fields, `[…on, key, from]` to `[…on, key, to]`.
153
219
  *
154
- * @param index - A series or a summary index ({@link tileIndexFor})
220
+ * @param index - A summary index
155
221
  * @param where - The narrowing
156
- * @param tile - The tile's start ({@link tilesOver})
222
+ * @param run - Its tiles ({@link summaryRun})
157
223
  * @param keys - The keys, as `.east` literals of the index's key field
158
224
  * @returns The cell's searches, and the fields the reader asks of each event
159
- * @throws {Error} When the index is neither, when the narrowing does not choose
160
- * exact values of each of its leading fields (one of a Set's), when the
161
- * combinations of them pass {@link MAX_RECORD_SLICE_RUNS}, or when `tile` is
162
- * not the start of one of the index's tiles
225
+ * @throws {Error} As {@link levelCellQueries} does, for a summary index
163
226
  */
164
- export declare function tileCellQueries(index: Index, where: ReadonlyMap<string, Choice>, tile: Date, keys: readonly string[]): TileCellPlan;
227
+ export declare function summaryCellQueries(index: Index, where: ReadonlyMap<string, Choice>, run: {
228
+ readonly from: Date;
229
+ readonly to: Date;
230
+ }, keys: readonly string[]): TileCellPlan;
165
231
  export {};
166
232
  //# sourceMappingURL=record-series.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-series.d.ts","sourceRoot":"","sources":["../../../../src/platform/slice/record-series.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGjI,KAAK,MAAM,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC;AACjD,KAAK,KAAK,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAC/C,KAAK,MAAM,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAEjD,uHAAuH;AACvH,eAAO,MAAM,UAAU,WAAW,CAAC;AAEnC,6FAA6F;AAC7F,MAAM,MAAM,UAAU,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;AAErE,oCAAoC;AACpC,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAAgD,CAAC;AAE/F,yGAAyG;AACzG,MAAM,WAAW,UAAU;IACvB,gDAAgD;IAChD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC7B;AAMD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CA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