1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Copyright (c) 2025-2026 Anton Kundenko <singaraiona@gmail.com>
* All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
;
/* Internal publication protocol shared by the table and streaming CSV writers.
* begin serializes writers; finish publishes only on success and always unlocks.
* Publication keeps the current generation and one previous generation; older
* staged directories are removed best-effort after each successful publish. */
typedef struct ray_splay_write_t;
ray_err_t ;
ray_err_t ;
/* Write only to a fresh/unpublished directory owned by the caller. */
ray_err_t ;
/* Resolve once and retain the returned path for the entire read. */
ray_err_t ;
/* Splayed table I/O.
*
* sym_path names the table's symfile (domain): save distinct-merges the
* table's SYM vocabulary into it (append-only) and encodes SYM columns
* as positions; load attaches its FILE domain to every SYM column.
* Symbol-free tables neither write nor require a symfile; a SYM column
* with no resolvable symfile is a loud "sym" error. */
ray_err_t ;
ray_err_t ;
/* Private import directory only: caller holds the shared symbol domain alive
* and flushes it before publishing the root. Bulk writes are not durable. */
ray_err_t ;
ray_t* ;
ray_t* ;
/* Append chunk-zone index regions to the column files of a splayed store
* written from a resident table, so later mmap loads get block-skip. Used by
* `.db.splayed.set` only; the CSV and Parquet converters build their indexes
* inline in the stream writer. Best-effort, per numeric column. */
void ;
/* Append a hash index to the column file at path, using its kept chunk zone
* Re-reads the column file, appends a hash, and falls back to appending
* `zone` when no hash results. The caller keeps ownership of zone. Best effort. */
ray_err_t ;
/* Loader accepting a shared FILE domain. It resolves the generation first,
* then refreshes the cached domain to include any externally appended symbols. */
ray_t* ;
/* RAY_SPLAY_H */