Files
obikmer/DevDocMD/implementation/evidence_elimination.refs.md
T
Eric Coissac 5c1584967f feat: enable index resumption and enforce directory creation
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.
2026-08-21 05:06:38 +02:00

1.4 KiB

Coverage: implementation/evidence_elimination.md

Code couvert

  • obikindex/src/layer/fingerprint.rs — FingerprintVec, FingerprintVecWriter, stockage b bits/slot, matches()
  • obikindex/src/layer/mphf_layer.rs — build_approx_evidence(dir, b, z), find_approx()
  • obikindex/src/layer/meta.rs — EvidenceKind::Approx { b, z }, LayerMeta
  • obikindex/src/reindex.rs — KmerIndex::reindex(), conversion exact↔approx en place
  • obikmer/src/cmd/reindex.rs — CLI reindex, options --approx, -z, --evidence-bits, --fp, --block-size
  • obikmer/src/cmd/index.rs — resolve_approx_params(), options --approx, -z, --evidence-bits, --fp
  • obikmer/src/cmd/estimate.rs — commande estimate (dry-run des paramètres)

Notes

Ce document était à l'origine une discussion de design (4 approches). L'implémentation a maintenant convergé vers l'approche fingerprint (Findere-style). FORT RISQUE DE DÉRIVE — le contenu est probablement un mélange de design et d'implémentation :

  • Le modèle FP = 1/2^(b·z) et les règles de résolution (2-of-3 parmi b, z, fp) sont implémentés
  • La commande reindex permet la conversion a posteriori exact↔approx
  • La commande estimate fait le dry-run des paramètres Cette page doit être réécrite pour documenter l'implémentation Findere réelle plutôt que les alternatives abandonnées.