The command now supports reopening existing indexes instead of failing when the output file exists. Control flow branches between opening an existing index and constructing a new one, moving configuration setup exclusively to the creation path. Directory existence is enforced upfront with proper I/O error propagation. The --force flag retains its original semantics by removing the target directory before proceeding with a fresh build.
17 lines
931 B
Markdown
17 lines
931 B
Markdown
<!-- coverage sidecar — ne pas ajouter au nav mkdocs -->
|
|
# Coverage: implementation/mphf.md
|
|
|
|
## Code couvert
|
|
|
|
- `obikindex/src/layer/mphf_layer.rs` — type Mphf (PtrHash + CubicEps + CachelineEfVec + Xx64), construction en 2 passes, `build()`, `build_exact_evidence()`, `build_approx_evidence()`, `build_evidence()`
|
|
- `obikindex/src/partition/index_layer.rs` — `build_index_layer()` avec passage de `block_bits`
|
|
|
|
## Notes
|
|
|
|
FORT RISQUE DE DÉRIVE. Changements récents :
|
|
- `build_exact_evidence(dir, block_bits)` — `block_bits` maintenant paramétrisé (défaut 0)
|
|
- `build_approx_evidence(dir, b, z)` — nouvelle fonction pour l'évidence fingerprint
|
|
- `build_evidence(dir, kind, block_bits)` — dispatch selon EvidenceKind
|
|
- Construction en 2 phases : pass 1 (Rayon parallèle) + pass 2 (callback `fill_slot`)
|
|
Vérifier que la doc décrit correctement les deux nouvelles routes d'évidence et le paramètre `block_bits`.
|