public class LazyWriteableDataset extends LazyDynamicDataset implements ILazyWriteableDataset
checker, eventDelegate, maxShapebase, begSlice, delSlice, dtype, isize, loader, map, oMetadata, oShape, postShape, prepShape, sizecatchExceptions, logger, metadata, name, shapeUNLIMITED| Constructor and Description |
|---|
LazyWriteableDataset(String name,
Class<?> clazz,
int[] shape,
int[] maxShape,
int[] chunks,
ILazySaver saver)
Create a lazy dataset
|
LazyWriteableDataset(String name,
Class<?> clazz,
int elements,
int[] shape,
int[] maxShape,
int[] chunks,
ILazySaver saver)
Create a lazy dataset
|
LazyWriteableDataset(String name,
int dtype,
int[] shape,
int[] maxShape,
int[] chunks,
ILazySaver saver)
Create a lazy dataset
|
LazyWriteableDataset(String name,
int dtype,
int elements,
int[] shape,
int[] maxShape,
int[] chunks,
ILazySaver saver)
Create a lazy dataset
|
| Modifier and Type | Method and Description |
|---|---|
LazyWriteableDataset |
clone()
Clone dataset
|
static LazyWriteableDataset |
createLazyDataset(Dataset dataset)
Create a lazy writeable dataset based on in-memory data (handy for testing)
|
static LazyWriteableDataset |
createLazyDataset(Dataset dataset,
int[] maxShape)
Create a lazy writeable dataset based on in-memory data (handy for testing)
|
protected SliceND |
createSlice(int[] nstart,
int[] nstop,
int[] nstep) |
int[] |
getChunking()
Get chunking
|
Object |
getFillValue()
Get the value used to fill an un-initialized dataset
|
LazyWriteableDataset |
getSliceView(int[] start,
int[] stop,
int[] step)
Get a slice of the dataset.
|
LazyWriteableDataset |
getSliceView(Slice... slice)
Get a slice of the dataset.
|
LazyWriteableDataset |
getSliceView(SliceND slice)
Get a slice of the dataset.
|
LazyWriteableDataset |
getTransposedView(int... axes)
Permute copy of dataset's axes so that given order is old order:
|
void |
setChunking(int... chunks)
Set chunking
|
void |
setFillValue(Object fill)
Set the value used to fill an un-initialized dataset
|
void |
setSaver(ILazySaver saver)
Set saver (and also loader)
|
void |
setSlice(IDataset data,
SliceND slice)
Set a slice of the dataset
|
void |
setSlice(IMonitor monitor,
IDataset data,
int[] start,
int[] stop,
int[] step)
Set a slice of the dataset
|
void |
setSlice(IMonitor monitor,
IDataset data,
SliceND slice)
Set a slice of the dataset
|
void |
setSliceSync(IMonitor monitor,
IDataset data,
SliceND slice)
Set a slice of the dataset synchronously
|
void |
setWritingAsync(boolean async)
Set writing slices as asynchronous
|
addDataListener, fireDataListeners, getDataset, getMaxShape, refreshShape, removeDataListener, resize, setMaxShape, startUpdateCheckercalcTrueSlice, equals, getDType, getElementsPerItem, getMaxSliceLength, getSize, getSlice, getSlice, getSlice, getSlice, getSlice, getSlice, setShape, squeezeEnds, toString, transformInputaddMetadata, checkPermutatedAxes, clearMetadata, copyMetadata, copyMetadata, copyMetadata, createFromSerializable, dirtyMetadata, findMetadataTypeSubInterfaces, getElementClass, getErrorMetadata, getErrors, getFirstMetadata, getMetadata, getMetadata, getName, getRank, getShape, hasErrors, hashCode, 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, hasErrors, setErrors, setMetadata, setShape, squeezeEndsgetFirstMetadata, getMetadata, getMetadataaddDataListener, fireDataListeners, getDataset, getMaxShape, refreshShape, removeDataListener, resize, setMaxShape, startUpdateCheckerpublic LazyWriteableDataset(String name, int dtype, int elements, int[] shape, int[] maxShape, int[] chunks, ILazySaver saver)
name - dtype - dataset typeelements - shape - maxShape - chunks - saver - public LazyWriteableDataset(String name, int dtype, int[] shape, int[] maxShape, int[] chunks, ILazySaver saver)
name - dtype - dataset typeshape - maxShape - chunks - saver - public LazyWriteableDataset(String name, Class<?> clazz, int elements, int[] shape, int[] maxShape, int[] chunks, ILazySaver saver)
name - clazz - dataset element classelements - shape - maxShape - chunks - saver - public LazyWriteableDataset(String name, Class<?> clazz, int[] shape, int[] maxShape, int[] chunks, ILazySaver saver)
name - clazz - dataset element classshape - maxShape - chunks - saver - public static LazyWriteableDataset createLazyDataset(Dataset dataset)
dataset - public static LazyWriteableDataset createLazyDataset(Dataset dataset, int[] maxShape)
dataset - public int[] getChunking()
ILazyWriteableDatasetgetChunking in interface ILazyWriteableDatasetpublic void setChunking(int... chunks)
ILazyWriteableDatasetsetChunking in interface ILazyWriteableDatasetchunks - chunk shapepublic LazyWriteableDataset clone()
ILazyDatasetclone in interface ILazyDatasetclone in class LazyDynamicDatasetpublic LazyWriteableDataset getSliceView(int[] start, int[] stop, int[] step)
ILazyDatasetgetSliceView in interface ILazyDatasetgetSliceView in class LazyDatasetstart - specifies the starting indexes (can be null for origin)stop - specifies the stopping indexes (can be null for end)step - specifies the steps in the slice (can be null for unit steps)public LazyWriteableDataset getSliceView(Slice... slice)
ILazyDatasetgetSliceView in interface ILazyDatasetgetSliceView in class LazyDatasetslice - an array of slice objects (the array can be null or contain nulls)public LazyWriteableDataset getSliceView(SliceND slice)
ILazyDatasetgetSliceView in interface ILazyDatasetgetSliceView in class LazyDatasetslice - an n-D slicepublic LazyWriteableDataset getTransposedView(int... axes)
ILazyDatasetaxisPerm = (p(0), p(1),...) => newdata(n(0), n(1),...) = olddata(o(0), o(1), ...) such that n(i) = o(p(i)) for all iI.e. for a 3D dataset (1,0,2) implies the new dataset has its 1st dimension running along the old dataset's 2nd dimension and the new 2nd is the old 1st. The 3rd dimension is left unchanged.
getTransposedView in interface ILazyDatasetgetTransposedView in class LazyDatasetaxes - if zero length then axes order reversedpublic void setWritingAsync(boolean async)
ILazyWriteableDatasetsetWritingAsync in interface ILazyWriteableDatasetpublic void setSlice(IDataset data, SliceND slice) throws DatasetException
data - slice - an n-D sliceDatasetExceptionpublic void setSlice(IMonitor monitor, IDataset data, int[] start, int[] stop, int[] step) throws DatasetException
ILazyWriteableDatasetsetSlice in interface ILazyWriteableDatasetstart - specifies the starting indexes (can be null for origin)stop - specifies the stopping indexes (can be null for end)step - specifies the steps in the slice (can be null for unit steps)DatasetExceptionpublic void setSlice(IMonitor monitor, IDataset data, SliceND slice) throws DatasetException
ILazyWriteableDatasetsetSlice in interface ILazyWriteableDatasetslice - an n-D sliceDatasetExceptionpublic void setSliceSync(IMonitor monitor, IDataset data, SliceND slice) throws DatasetException
ILazyWriteableDatasetsetSliceSync in interface ILazyWriteableDatasetslice - an n-D sliceDatasetExceptionpublic void setSaver(ILazySaver saver)
setSaver in interface ILazyWriteableDatasetsaver - protected SliceND createSlice(int[] nstart, int[] nstop, int[] nstep)
createSlice in class LazyDatasetpublic Object getFillValue()
ILazyWriteableDatasetgetFillValue in interface ILazyWriteableDatasetpublic void setFillValue(Object fill)
ILazyWriteableDatasetsetFillValue in interface ILazyWriteableDatasetCopyright © 2014–2018 Eclipse Foundation. All rights reserved.