A
- access typepublic class ImarisLoaderRemover<A> extends ImarisLoader<A>
CacheLoader
/CacheRemover
for writing/reading cells
to an Imaris IDataset
.
Blocks which are not in the cache (yet) are obtained from a backing
CacheLoader
. Typically the backing loader will just create empty cells.
A ImarisLoaderRemover
should be connected to a in-memory cache through
IoSync
if the cache will be used concurrently by multiple threads!
grid, n
defaultParallelismThreshold
Modifier | Constructor and Description |
---|---|
|
ImarisLoaderRemover(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
CacheLoader<Long,Cell<A>> backingLoader,
boolean persistOnLoad)
TODO
|
protected |
ImarisLoaderRemover(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
CacheLoader<Long,Cell<A>> backingLoader,
boolean persistOnLoad,
boolean withDirtyFlag) |
Modifier and Type | Method and Description |
---|---|
Cell<A> |
get(Long key) |
void |
onRemoval(Long key,
A valueData) |
CompletableFuture<Void> |
persist(Long key,
A valueData) |
extract, reconstruct
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate, invalidateAll, invalidateIf
invalidateAll, invalidateIf
public ImarisLoaderRemover(Imaris.IDataSetPrx dataset, int[] mapDimensions, CellGrid grid, CacheLoader<Long,Cell<A>> backingLoader, boolean persistOnLoad) throws Imaris.Error
dataset
- mapDimensions
- maps Imaris dimension indices to imglib2 dimension indices.
If i
is dimension index from Imaris (0..4 means X,Y,Z,C,T)
then mapDimensions[i]
is the corresponding dimension in Img
.
For Img
dimensions with size=1 are skipped.
E.g., for a X,Y,C image mapDimensions = {0,1,-1,2,-1}
.grid
- backingLoader
- persistOnLoad
- Imaris.Error
protected ImarisLoaderRemover(Imaris.IDataSetPrx dataset, int[] mapDimensions, CellGrid grid, CacheLoader<Long,Cell<A>> backingLoader, boolean persistOnLoad, boolean withDirtyFlag) throws Imaris.Error
Imaris.Error
public Cell<A> get(Long key) throws Exception
get
in interface CacheLoader<Long,Cell<A>>
get
in class ImarisLoader<A>
Exception
public void onRemoval(Long key, A valueData)
onRemoval
in interface CacheRemover<Long,Cell<A>,A>
onRemoval
in class ImarisLoader<A>
public CompletableFuture<Void> persist(Long key, A valueData)
persist
in interface CacheRemover<Long,Cell<A>,A>
persist
in class ImarisLoader<A>
Copyright © 2019–2021 Imaris. All rights reserved.