Interface DataNode
- All Superinterfaces:
Node
- All Known Implementing Classes:
DataNodeImpl
Node that holds data
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong[]org.eclipse.january.dataset.ILazyDatasetReturns the dataset for the data node.long[]intGet maximum length of any string contained in node when it is encoded as bytesintgetRank()Get the rank of the datasetGet a string if this dataset is a string or datasetorg.eclipse.january.dataset.ILazyWriteableDatasetReturns theILazyWriteableDatasetfor the data node This can return null if the dataset for this datanode is not writeable or is emptybooleanbooleanisString()booleanbooleanvoidSet state to indicate dataset has been augmented with metadatavoidsetChunkShape(long... chunkShape) Set chunk shape of datasetvoidsetDataset(org.eclipse.january.dataset.ILazyDataset lazyDataset) Set given (lazy) datasetvoidsetEmpty()Set dataset to be emptyvoidsetMaxShape(long... maxShape) Set maximum shape of datasetvoidsetMaxStringLength(int length) Set maximum length of any string contained in node when it is encoded as bytesvoidSet stringvoidsetTypeName(String name) Set HDF5 type namevoidsetUnsigned(boolean isUnsigned) Methods inherited from interface org.eclipse.dawnsci.analysis.api.tree.Node
addAttribute, containsAttribute, getAttribute, getAttributeIterator, getAttributeNameIterator, getAttributeNames, getID, getNumberOfAttributes, isDataNode, isGroupNode, isSymbolicNode, removeAttribute, removeAttribute
-
Method Details
-
isUnsigned
boolean isUnsigned()- Returns:
- true if data is unsigned
-
setUnsigned
void setUnsigned(boolean isUnsigned) - Parameters:
isUnsigned-
-
isString
boolean isString()- Returns:
- true if data is string data
-
getTypeName
String getTypeName()- Returns:
- HDF5 type name
-
setTypeName
Set HDF5 type name- Parameters:
name-
-
getMaxShape
long[] getMaxShape()- Returns:
- maximum shape (can be null)
-
setMaxShape
void setMaxShape(long... maxShape) Set maximum shape of dataset- Parameters:
maxShape-
-
getChunkShape
long[] getChunkShape()- Returns:
- chunk shape (can be null)
-
setChunkShape
void setChunkShape(long... chunkShape) Set chunk shape of dataset- Parameters:
chunkShape-
-
getRank
int getRank()Get the rank of the dataset- Returns:
- rank
-
isSupported
boolean isSupported()- Returns:
- true if this dataset is supported
-
setEmpty
void setEmpty()Set dataset to be empty -
getString
String getString()Get a string if this dataset is a string or dataset- Returns:
- string or null
-
setString
Set string- Parameters:
text-
-
getMaxStringLength
int getMaxStringLength()Get maximum length of any string contained in node when it is encoded as bytes- Returns:
- length in bytes or -1 if not a string
-
setMaxStringLength
void setMaxStringLength(int length) Set maximum length of any string contained in node when it is encoded as bytes- Parameters:
length- in bytes
-
getDataset
org.eclipse.january.dataset.ILazyDataset getDataset()Returns the dataset for the data node. This can return null for empty datasets- Returns:
- lazy dataset
-
getWriteableDataset
org.eclipse.january.dataset.ILazyWriteableDataset getWriteableDataset()Returns theILazyWriteableDatasetfor the data node This can return null if the dataset for this datanode is not writeable or is empty- Returns:
- lazy writeable dataset
-
setDataset
void setDataset(org.eclipse.january.dataset.ILazyDataset lazyDataset) Set given (lazy) dataset- Parameters:
lazyDataset-
-
isAugmented
boolean isAugmented()- Returns:
- true if dataset has been augmented with metadata
-
setAugmented
void setAugmented()Set state to indicate dataset has been augmented with metadata
-