Files
obikmer/DevDocMD/implementation/merge.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.1 KiB

Coverage: implementation/merge.md

Code couvert

  • obikindex/src/merge.rsKmerIndex::merge(), validation de compatibilité d'évidence, validate_evidence_compat()
  • obikindex/src/partition/merge_layer.rsmerge_partition(), construction de la nouvelle layer, paramètre block_bits
  • obikindex/src/partition/rebuild_layer.rsrebuild_partition(), paramètre block_bits
  • obikindex/src/layer/typed_layer.rsLayer::append_genome_column() (PersistentCompactIntMatrix et PersistentBitMatrix)
  • obicompactvec/src/intmatrix.rsappend_column pour PersistentCompactIntMatrix
  • obicompactvec/src/bitmatrix.rsappend_column pour PersistentBitMatrix

Notes

FORT RISQUE DE DÉRIVE. Changements récents :

  • Ajout de la validation de compatibilité d'évidence : merge exact+approx → erreur (OKIError::IncompatibleEvidence)
  • merge_partition reçoit maintenant block_bits: u8
  • La commande reindex a été ajoutée comme outil de conversion exact↔approx avant merge Vérifier que la doc décrit la politique de merge mixed-evidence et le recours à reindex.