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, ndefaultParallelismThreshold| 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, reconstructclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidate, invalidateAll, invalidateIfinvalidateAll, invalidateIfpublic 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.Errorprotected ImarisLoaderRemover(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
CacheLoader<Long,Cell<A>> backingLoader,
boolean persistOnLoad,
boolean withDirtyFlag)
throws Imaris.Error
Imaris.Errorpublic Cell<A> get(Long key) throws Exception
get in interface CacheLoader<Long,Cell<A>>get in class ImarisLoader<A>Exceptionpublic 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.