Interface DataNode

All Superinterfaces:
Node
All Known Implementing Classes:
DataNodeImpl

public interface DataNode extends Node
Node that holds data
  • 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

      void setTypeName(String name)
      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

      void setString(String text)
      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 the ILazyWriteableDataset for 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