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, sShape
catchExceptions, logger, metadata, name, shape
UNLIMITED
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, toString
addMetadata, 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, transposeMetadata
finalize, getClass, notify, notifyAll, wait, wait, wait
addMetadata, clearMetadata, getElementClass, getElementsPerItem, getErrors, getRank, getShape, getSize, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, getSliceView, getSliceView, getSliceView, getTransposedView, hasErrors, setErrors, setMetadata, setShape, squeezeEnds
getFirstMetadata, getMetadata, getMetadata
protected 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 LazyDataset
public boolean equals(Object obj)
equals
in class LazyDataset
public ILazyDataset getDataset()
getDataset
in interface IDynamicShape
public void addDataListener(IDataListener l)
IDynamicShape
addDataListener
in interface IDynamicShape
public void removeDataListener(IDataListener l)
IDynamicShape
removeDataListener
in interface IDynamicShape
public void fireDataListeners()
IDynamicShape
fireDataListeners
in interface IDynamicShape
public boolean refreshShape()
IDynamicShape
refreshShape
in interface IDynamicShape
public boolean resize(int... newShape)
IDynamicShape
resize
in interface IDynamicShape
public int[] getMaxShape()
getMaxShape
in interface IDynamicShape
public void setMaxShape(int... maxShape)
IDynamicShape
setMaxShape
in interface IDynamicShape
maxShape
- maximum shapepublic LazyDynamicDataset clone()
ILazyDataset
clone
in interface ILazyDataset
clone
in class LazyDataset
public void startUpdateChecker(int milliseconds, IDatasetChangeChecker checker)
IDynamicShape
startUpdateChecker
in interface IDynamicShape
milliseconds
- period between checks in millisecondschecker
- can be null for default implementation of alerting listeners unconditionallyCopyright © 2014–2019 Eclipse Foundation. All rights reserved.