@@ -35,9 +35,9 @@ public NestedGrid getGrid() {
3535 }
3636
3737 @ Override
38- public DataBlock <T > readBlock (final PositionValueAccess kva , final long [] gridPosition ) throws N5IOException {
38+ public DataBlock <T > readBlock (final PositionValueAccess pva , final long [] gridPosition ) throws N5IOException {
3939 final NestedPosition position = grid .nestedPosition (gridPosition );
40- return readBlockRecursive (kva .get (position .key ()), position , grid .numLevels () - 1 );
40+ return readBlockRecursive (pva .get (position .key ()), position , grid .numLevels () - 1 );
4141 }
4242
4343 private DataBlock <T > readBlockRecursive (
@@ -347,23 +347,23 @@ private ReadData writeRegionRecursive(
347347 }
348348
349349 @ Override
350- public boolean deleteBlock (final PositionValueAccess kva , final long [] gridPosition ) throws N5IOException {
350+ public boolean deleteBlock (final PositionValueAccess pva , final long [] gridPosition ) throws N5IOException {
351351 final NestedPosition position = grid .nestedPosition (gridPosition );
352352 final long [] key = position .key ();
353353 if (grid .numLevels () == 1 ) {
354354 // for non-sharded dataset, don't bother getting the value, just remove the key.
355355 try {
356- return kva .remove (key );
356+ return pva .remove (key );
357357 } catch (final Exception e ) {
358358 throw new N5Exception ("The shard at " + Arrays .toString (key ) + " could not be deleted." , e );
359359 }
360360 } else {
361- final ReadData existingData = kva .get (key );
361+ final ReadData existingData = pva .get (key );
362362 final ReadData modifiedData = deleteBlockRecursive (existingData , position , grid .numLevels () - 1 );
363363 if (existingData != null && modifiedData == null ) {
364- return kva .remove (key );
364+ return pva .remove (key );
365365 } else if (modifiedData != existingData ) {
366- kva .put (key , modifiedData );
366+ pva .put (key , modifiedData );
367367 return true ;
368368 } else {
369369 return false ;
0 commit comments