Skip to content

Commit 7d2bafb

Browse files
committed
default to parallel read, write
1 parent c726ff8 commit 7d2bafb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/dev/zarr/zarrjava/core/Array.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
public abstract class Array extends AbstractNode {
2222

2323
protected CodecPipeline codecPipeline;
24+
public static final boolean DEFAULT_PARALLELISM = true;
2425

2526
protected Array(StoreHandle storeHandle) throws ZarrException {
2627
super(storeHandle);
@@ -293,7 +294,7 @@ public void write(ucar.ma2.Array array) {
293294
* @param array the data to write
294295
*/
295296
public void write(long[] offset, ucar.ma2.Array array) {
296-
write(offset, array, false);
297+
write(offset, array, DEFAULT_PARALLELISM);
297298
}
298299

299300
/**
@@ -328,7 +329,7 @@ public ucar.ma2.Array read() throws ZarrException {
328329
*/
329330
@Nonnull
330331
public ucar.ma2.Array read(final long[] offset, final int[] shape) throws ZarrException {
331-
return read(offset, shape, false);
332+
return read(offset, shape, DEFAULT_PARALLELISM);
332333
}
333334

334335
/**

0 commit comments

Comments
 (0)