A - type of access to cell data, currently always a
VolatileAccess.public interface SimpleCacheArrayLoader<A>
Cell data. This is
implemented by data back-ends to the VolatileGlobalCellCache.
SimpleCacheArrayLoader is supposed to load data one specific image.
loadArray() will not get information about which timepoint,
resolution level, etc a requested block belongs to, and also the appropriate
block size is supposed to be known.
This is in contrast to CacheArrayLoader, where all information to
identify a particular block in a whole dataset is provided. Whether it makes
more sense to implement CacheArrayLoader or
SimpleCacheArrayLoader depends on the particular back-end.
| Modifier and Type | Method and Description |
|---|---|
default EmptyArrayCreator<A> |
getEmptyArrayCreator()
Implementing classes must override this if
A is not a standard
VolatileArrayDataAccess type. |
A |
loadArray(long[] gridPosition)
Load cell data into memory.
|
default EmptyArrayCreator<A> getEmptyArrayCreator()
A is not a standard
VolatileArrayDataAccess type. The default implementation returns
null, which will let
CreateInvalidVolatileCell.get(...) try to figure out the appropriate
DefaultEmptyArrayCreator.
Default access types are
EmptyArrayCreator for A or null.A loadArray(long[] gridPosition) throws IOException
IOException is thrown.
SimpleCacheArrayLoader is supposed to load data one specific
image. loadArray() will not get information about which
timepoint, resolution level, etc a requested block belongs to. Also the
appropriate block size is supposed to be known to the
SimpleCacheArrayLoader.
This is in contrast to
CacheArrayLoader.loadArray(int, int, int, int[], long[]), where
all information to identify a particular block in a whole dataset is
provided.
gridPosition - the coordinate of the cell in the cell grid.IOExceptionCopyright © 2015–2021 Fiji. All rights reserved.