consider how to support more flexible Collection
in RevIndex
for external storage
#3321
Labels
Collection
in RevIndex
for external storage
#3321
Currently,
RevIndex
only supports a singleCollection
for use as external storage. This limits it to things like Zip files and .sig.gz files, and maybe manifests and pathlists of .sig.gz files.In sourmash-bio/sourmash_plugin_branchwater#430, we are adding
MultiCollection
to the branchwater plugin, so that we can support a variety of nice features, such as standalone manifests and pathlists pointing at zip files.MultiCollection
recursively loads itself as needed.However,
MultiCollection
can't be used as aCollection
forRevIndex
. This is unfortunate and leads to some contortions, the most notable of which is that thesourmash scripts index
command can only use supportedCollection
types for external storage.It would be nice to enable a larger subset of
MultiCollection
loading functionality forRevIndex
.Note that
Storage
is a trait so perhaps one of the simplest ways forward is to implement aMultiStorage
that supports the needed flexibility, and then instantiate aCollection
with thatMultiStorage
.The text was updated successfully, but these errors were encountered: