Skip to content

Add N5Writer.writeRegion methods - #178

Merged
tpietzsch merged 7 commits into
masterfrom
write-region
Nov 10, 2025
Merged

Add N5Writer.writeRegion methods#178
tpietzsch merged 7 commits into
masterfrom
write-region

Conversation

@tpietzsch

Copy link
Copy Markdown
Collaborator

writeRegion() takes a DataBlockSupplier and a region in pixel coordinates that should be written. It decides which shards/blocks need to be touched and asks the DataBlockSupplier for the respective blocks.

Currently only minimal parallelization (over shards) is implemented. This could be improved in the future, if called with a ForkJoinPool executor. Then we could further parallelize the production and encoding of DataBlocks.

NestedPosition is always constructed via NestedGrid factory methods.

Added methods to determine the pixel coordinates corresponding to a
NestedPosition.

Cleaned up unused code and comments.
writeRegion() takes a DataBlockSupplier and a region in pixel
coordinates that should be written. It decised which shards/blocks need
to be touched and asks the DataBlockSupplier for the respective blocks.

Currently only minimal parallelization (over shards) is implemented.
This could be improved in the future, if called with a ForkJoinPool
executor. Then we could further parallelize the production and encoding
of DataBlocks.
This should be handled by a dedicated DatasetAccess method
@tpietzsch
tpietzsch merged commit d0e6052 into master Nov 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant