Interface SimpleCacheArrayLoader<A extends net.imglib2.img.basictypeaccess.DataAccess>
-
- Type Parameters:
A- type of access to cell data, currently always aVolatileAccess.
public interface SimpleCacheArrayLoader<A extends net.imglib2.img.basictypeaccess.DataAccess>Provider of volatileCelldata. This is implemented by data back-ends to theVolatileGlobalCellCache.SimpleCacheArrayLoaderis supposed to load data one specific image.loadArray()will not get information about which timepoint, resolution level, etc a requested block belongs to.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 implementCacheArrayLoaderorSimpleCacheArrayLoaderdepends on the particular back-end.- Author:
- Tobias Pietzsch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EmptyArrayCreator<A>getEmptyArrayCreator()Implementing classes must override this ifAis not a standardVolatileArrayDataAccesstype.AloadArray(long[] gridPosition, int[] cellDimensions)Load cell data into memory.
-
-
-
Method Detail
-
getEmptyArrayCreator
default EmptyArrayCreator<A> getEmptyArrayCreator()
Implementing classes must override this ifAis not a standardVolatileArrayDataAccesstype. The default implementation returnsnull, which will letCreateInvalidVolatileCell.get(...)try to figure out the appropriateDefaultEmptyArrayCreator.Default access types are
DirtyVolatileByteArrayVolatileByteArrayDirtyVolatileCharArrayVolatileCharArrayDirtyVolatileDoubleArrayVolatileDoubleArrayDirtyVolatileFloatArrayVolatileFloatArrayDirtyVolatileIntArrayVolatileIntArrayDirtyVolatileLongArrayVolatileLongArrayDirtyVolatileShortArrayVolatileShortArray
- Returns:
- an
EmptyArrayCreatorforAor null.
-
loadArray
A loadArray(long[] gridPosition, int[] cellDimensions) throws IOException
Load cell data into memory. This method blocks until data is successfully loaded. If it completes normally, the returned data is always valid. If anything goes wrong, anIOExceptionis thrown.SimpleCacheArrayLoaderis supposed to load data one specific image.loadArray()will not get information about which timepoint, resolution level, etc a requested block belongs to.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.- Parameters:
gridPosition- the coordinate of the cell in the cell grid.cellDimensions- the dimensions of the cell.- Returns:
- loaded cell data.
- Throws:
IOException
-
-