-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asynchronous cache for zarr chunk loading (#6165)
* [WIP] Asynchronous cache for zarr chunk loading * re-add exception handling * clean up
- Loading branch information
Showing
9 changed files
with
98 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...sos-datastore/app/com/scalableminds/webknossos/datastore/dataformats/DataCubeHandle.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.scalableminds.webknossos.datastore.dataformats | ||
|
||
import com.scalableminds.util.tools.Fox | ||
import com.scalableminds.webknossos.datastore.models.BucketPosition | ||
import net.liftweb.common.Box | ||
|
||
import scala.concurrent.ExecutionContext | ||
|
||
// To be implemented as handle for a cube (e.g. may correspond to one 1GB wkw file) | ||
trait DataCubeHandle extends SafeCachable { | ||
def cutOutBucket(bucket: BucketPosition): Box[Array[Byte]] | ||
def cutOutBucket(bucket: BucketPosition)(implicit ec: ExecutionContext): Fox[Array[Byte]] | ||
} |
9 changes: 6 additions & 3 deletions
9
...astore/app/com/scalableminds/webknossos/datastore/dataformats/wkw/WKWBucketProvider.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...ossos-datastore/app/com/scalableminds/webknossos/datastore/jzarr/ChunkContentsCache.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters