public class LazyDynamicDataset extends LazyDataset implements IDynamicDataset
| Modifier and Type | Field and Description |
|---|---|
protected IDatasetChangeChecker |
checker |
protected DataListenerDelegate |
eventDelegate |
protected int[] |
maxShape |
begSlice, delSlice, isize, loader, map, oMetadata, oShape, padding, size, sShapecatchExceptions, logger, metadata, name, shapeUNLIMITED| Modifier | Constructor and Description |
|---|---|
protected |
LazyDynamicDataset(LazyDynamicDataset other) |
|
LazyDynamicDataset(String name,
int dtype,
int elements,
int[] shape,
int[] maxShape,
ILazyLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataListener(IDataListener l)
Add a listener which will be fired when aspects of the data change for
instance shape or content.
|
LazyDynamicDataset |
clone()
Clone dataset
|
boolean |
equals(Object obj) |
void |
fireDataListeners()
Alert any registered listeners
|
ILazyDataset |
getDataset() |
int[] |
getMaxShape() |
int |
hashCode() |
boolean |
refreshShape()
Force the shape to be re-read from file, if possible
|
void |
removeDataListener(IDataListener l)
Remove a listener which will be fired when aspects of the data change for
instance shape or content.
|
boolean |
resize(int... newShape)
Change shape
|
void |
setMaxShape(int... maxShape)
Set maximum shape
|
void |
startUpdateChecker(int milliseconds,
IDatasetChangeChecker checker)
Starts a periodic checker to see if dataset has changed in some manner.
|
calcTrueSlice, createLazyDataset, createSlice, getDType, getElementsPerItem, getInterface, getMaxSliceLength, getSize, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, getSliceView, getSliceView, getSliceView, getTransposedView, setShape, squeezeEnds, toStringaddMetadata, checkPermutatedAxes, clearMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, findMetadataTypeSubInterfaces, getElementClass, getErrorMetadata, getErrors, getFirstMetadata, getMetadata, getMetadata, getMetadataMap, getName, getRank, getShape, hasErrors, reshapeMetadata, restoreMetadata, setDirty, setErrors, setMetadata, setName, sliceMetadata, transposeMetadatafinalize, getClass, notify, notifyAll, wait, wait, waitaddMetadata, clearMetadata, getElementClass, getElementsPerItem, getErrors, getRank, getShape, getSize, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, getSliceView, getSliceView, getSliceView, getTransposedView, hasErrors, setErrors, setMetadata, setShape, squeezeEndsgetFirstMetadata, getMetadata, getMetadataprotected int[] maxShape
protected transient DataListenerDelegate eventDelegate
protected IDatasetChangeChecker checker
public LazyDynamicDataset(String name, int dtype, int elements, int[] shape, int[] maxShape, ILazyLoader loader)
protected LazyDynamicDataset(LazyDynamicDataset other)
public int hashCode()
hashCode in class LazyDatasetpublic boolean equals(Object obj)
equals in class LazyDatasetpublic ILazyDataset getDataset()
getDataset in interface IDynamicShapepublic void addDataListener(IDataListener l)
IDynamicShapeaddDataListener in interface IDynamicShapepublic void removeDataListener(IDataListener l)
IDynamicShaperemoveDataListener in interface IDynamicShapepublic void fireDataListeners()
IDynamicShapefireDataListeners in interface IDynamicShapepublic boolean refreshShape()
IDynamicShaperefreshShape in interface IDynamicShapepublic boolean resize(int... newShape)
IDynamicShaperesize in interface IDynamicShapepublic int[] getMaxShape()
getMaxShape in interface IDynamicShapepublic void setMaxShape(int... maxShape)
IDynamicShapesetMaxShape in interface IDynamicShapemaxShape - maximum shapepublic LazyDynamicDataset clone()
ILazyDatasetclone in interface ILazyDatasetclone in class LazyDatasetpublic void startUpdateChecker(int milliseconds, IDatasetChangeChecker checker)
IDynamicShapestartUpdateChecker in interface IDynamicShapemilliseconds - period between checks in millisecondschecker - can be null for default implementation of alerting listeners unconditionallyCopyright © 2014–2019 Eclipse Foundation. All rights reserved.