@@ -257,52 +257,52 @@ default <T> void writeRegion(
257257 }
258258
259259 @ Override
260- default <T > void writeBlocks (
260+ default <T > void writeChunks (
261261 final String datasetPath ,
262262 final DatasetAttributes datasetAttributes ,
263263 final DataBlock <T >... dataBlocks ) throws N5Exception {
264264
265265 DatasetAttributes convertedDatasetAttributes = getConvertedDatasetAttributes (datasetAttributes );
266266 try {
267267 final PositionValueAccess posKva = PositionValueAccess .fromKva (getKeyValueAccess (), getURI (), N5URI .normalizeGroupPath (datasetPath ), convertedDatasetAttributes );
268- convertedDatasetAttributes .<T >getDatasetAccess ().writeBlocks (posKva , Arrays .asList (dataBlocks ));
268+ convertedDatasetAttributes .<T >getDatasetAccess ().writeChunks (posKva , Arrays .asList (dataBlocks ));
269269 } catch (final UncheckedIOException e ) {
270270 throw new N5IOException (
271- "Failed to write blocks into dataset " + datasetPath , e );
271+ "Failed to write chunks into dataset " + datasetPath , e );
272272 }
273273 }
274274
275275 @ Override
276- default <T > void writeBlock (
276+ default <T > void writeChunk (
277277 final String path ,
278278 final DatasetAttributes datasetAttributes ,
279279 final DataBlock <T > dataBlock ) throws N5Exception {
280280
281281 DatasetAttributes convertedDatasetAttributes = getConvertedDatasetAttributes (datasetAttributes );
282282 try {
283283 final PositionValueAccess posKva = PositionValueAccess .fromKva (getKeyValueAccess (), getURI (), N5URI .normalizeGroupPath (path ), convertedDatasetAttributes );
284- convertedDatasetAttributes .<T > getDatasetAccess ().writeBlock (posKva , dataBlock );
284+ convertedDatasetAttributes .<T > getDatasetAccess ().writeChunk (posKva , dataBlock );
285285 } catch (final UncheckedIOException e ) {
286286 throw new N5IOException (
287- "Failed to write block " + Arrays .toString (dataBlock .getGridPosition ()) + " into dataset " + path ,
287+ "Failed to write chunk " + Arrays .toString (dataBlock .getGridPosition ()) + " into dataset " + path ,
288288 e );
289289 }
290290 }
291291
292292 @ Override
293- default <T > void writeShard (
293+ default <T > void writeBlock (
294294 final String path ,
295295 final DatasetAttributes datasetAttributes ,
296- final DataBlock <T > shard ) throws N5Exception {
296+ final DataBlock <T > dataBlock ) throws N5Exception {
297297
298298 final DatasetAttributes convertedDatasetAttributes = getConvertedDatasetAttributes (datasetAttributes );
299299 final int shardLevel = convertedDatasetAttributes .getNestedBlockGrid ().numLevels () - 1 ;
300300 try {
301301 final PositionValueAccess posKva = PositionValueAccess .fromKva (getKeyValueAccess (), getURI (), N5URI .normalizeGroupPath (path ), convertedDatasetAttributes );
302- convertedDatasetAttributes .<T > getDatasetAccess ().writeShard (posKva , shard , shardLevel );
302+ convertedDatasetAttributes .<T > getDatasetAccess ().writeBlock (posKva , dataBlock , shardLevel );
303303 } catch (final UncheckedIOException e ) {
304304 throw new N5IOException (
305- "Failed to write block " + Arrays .toString (shard .getGridPosition ()) + " into dataset " + path ,
305+ "Failed to write block " + Arrays .toString (dataBlock .getGridPosition ()) + " into dataset " + path ,
306306 e );
307307 }
308308 }
@@ -320,22 +320,22 @@ default boolean remove(final String path) throws N5Exception {
320320 }
321321
322322 @ Override
323- default boolean deleteBlock (
323+ default boolean deleteChunk (
324324 final String path ,
325325 final DatasetAttributes datasetAttributes ,
326326 final long ... gridPosition ) throws N5Exception {
327327
328328 final PositionValueAccess posKva = PositionValueAccess .fromKva (getKeyValueAccess (), getURI (), N5URI .normalizeGroupPath (path ), datasetAttributes );
329- return datasetAttributes .getDatasetAccess ().deleteBlock (posKva , gridPosition );
329+ return datasetAttributes .getDatasetAccess ().deleteChunk (posKva , gridPosition );
330330 }
331331
332332 @ Override
333- default boolean deleteBlocks (
333+ default boolean deleteChunks (
334334 final String path ,
335335 final DatasetAttributes datasetAttributes ,
336336 final List <long []> gridPositions ) throws N5Exception {
337337
338338 final PositionValueAccess posKva = PositionValueAccess .fromKva (getKeyValueAccess (), getURI (), N5URI .normalizeGroupPath (path ), datasetAttributes );
339- return datasetAttributes .getDatasetAccess ().deleteBlocks (posKva , gridPositions );
339+ return datasetAttributes .getDatasetAccess ().deleteChunks (posKva , gridPositions );
340340 }
341341}
0 commit comments