The columnar index's mutable int-token trie, as a held namespace
(vaelii.impl.types.prover states what that means). Trie mutates its own fields,
which only its inline methods can do, so the type and the code it calls live here
together; it calls only held namespaces. The IndexStore over it is
vaelii.impl.columnar.
The columnar index's mutable int-token trie, as a held namespace (`vaelii.impl.types.prover` states what that means). `Trie` mutates its own fields, which only its inline methods can do, so the type and the code it calls live here together; it calls only held namespaces. The `IndexStore` over it is `vaelii.impl.columnar`.
How many child edges a trie node holds as the sorted int[] pair before its edges
become one primitive hash map; at half of this a map node drops back to the pair
(docs/density.md, "A node's child structure is tiered on its width").
How many child edges a trie node holds as the sorted `int[]` pair before its edges become one primitive hash map; at half of this a map node drops back to the pair (docs/density.md, "A node's child structure is tiered on its width").
(t-lookup t pattern)(t-lookup t pattern ctxs)Handles whose full path matches pattern (variables fan out; markers skip), its last level kept to the set ctxs when one is given.
Handles whose full path matches `pattern` (variables fan out; markers skip), its last level kept to the set `ctxs` when one is given.
(t-leaves-at t prefix)Leaf handles exactly at a prefix (a set, #{} if absent).
Leaf handles exactly at a prefix (a set, #{} if absent).
(t-clear! t)Reset to a single empty root (the dict is wiped by the store).
Reset to a single empty root (the dict is wiped by the store).
(t-count-at t prefix)Subtree leaf count at a path prefix (0 if absent).
Subtree leaf count at a path prefix (0 if absent).
(t-child-count t prefix)How many child edges sit at a prefix — the width, without decoding it.
How many child edges sit at a prefix — the width, without decoding it.
(t-remove! t path handle)Remove handle from path's leaf, pruning nodes that empty; answers how many of the path's own nodes emptied, or -1 when handle was not at that leaf (the path absent, or the handle never there) — nothing was removed and nothing counted down.
Remove `handle` from `path`'s leaf, pruning nodes that empty; answers how many of the path's own nodes emptied, or **-1** when `handle` was not at that leaf (the path absent, or the handle never there) — nothing was removed and nothing counted down.
(t-children t prefix)Decoded child edge tokens at a prefix (a vector, [] if absent).
Decoded child edge tokens at a prefix (a vector, [] if absent).
(t-compact! t)Freeze the mutable trie into flat CSR arrays (read-optimized, dense).
Freeze the mutable trie into flat CSR arrays (read-optimized, dense).
(t-insert! t path handle)Insert a sentex handle at the leaf of path (a token seq).
Insert a sentex handle at the leaf of `path` (a token seq).
(trie-entries trie)Every node of trie as [[:trie :count|:children|:handles prefix] value], in the flat
index's own key shape. Lazy and depth-first, so a corpus-sized trie streams.
Every node of `trie` as `[[:trie :count|:children|:handles prefix] value]`, in the flat index's own key shape. Lazy and depth-first, so a corpus-sized trie streams.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |