public interface PositionValueAccess
long[] key
indicating the position of a top-level DataBlock (a top-level shard for sharded datasets,
a chunk for non-sharded datasets).| Modifier and Type | Interface and Description |
|---|---|
static class |
PositionValueAccess.KvaPositionValueAccess |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(long[] key) |
static PositionValueAccess |
fromKva(KeyValueAccess kva,
URI uri,
String normalPath,
DatasetAttributes attributes) |
VolatileReadData |
get(long[] key)
Gets the
VolatileReadData for the DataBlock at the given position
in the block grid. |
boolean |
remove(long[] key) |
void |
set(long[] key,
ReadData data)
Write the
data for a DataBlock to the given position in the block
grid. |
VolatileReadData get(long[] key) throws N5Exception.N5IOException
VolatileReadData for the DataBlock at the given position
in the block grid.
If the requested key does not exist, either null is returned or a
lazy VolatileReadData that will throw N5NoSuchKeyException
when trying to materialize.
key - The position of the blocknull if the key doesn't existN5Exception.N5IOException - if an error occurs while readingvoid set(long[] key,
ReadData data)
throws N5Exception.N5IOException
data for a DataBlock to the given position in the block
grid.key - The grid position of the DataBlock to writedata - The data to writeN5Exception.N5IOException - if an error occurs while writingboolean exists(long[] key)
throws N5Exception.N5IOException
N5Exception.N5IOExceptionboolean remove(long[] key)
throws N5Exception.N5IOException
N5Exception.N5IOExceptionstatic PositionValueAccess fromKva(KeyValueAccess kva, URI uri, String normalPath, DatasetAttributes attributes)
Copyright © 2017–2026 Saalfeld Lab. All rights reserved.