This class represents variable length (ragged) arrays in an HDF5 file. Instances of this class represent array objects in the object tree with the property that their rows can have a *variable* number of homogeneous elements, called *atoms*. Like Table datasets (see :ref:`TableClass
| 39 | |
| 40 | |
| 41 | class VLArray(hdf5extension.VLArray, Leaf): |
| 42 | """This class represents variable length (ragged) arrays in an HDF5 file. |
| 43 | |
| 44 | Instances of this class represent array objects in the object tree |
| 45 | with the property that their rows can have a *variable* number of |
| 46 | homogeneous elements, called *atoms*. Like Table datasets (see |
| 47 | :ref:`TableClassDescr`), variable length arrays can have only one |
| 48 | dimension, and the elements (atoms) of their rows can be fully |
| 49 | multidimensional. |
| 50 | |
| 51 | When reading a range of rows from a VLArray, you will *always* get |
| 52 | a Python list of objects of the current flavor (each of them for a |
| 53 | row), which may have different lengths. |
| 54 | |
| 55 | This class provides methods to write or read data to or from |
| 56 | variable length array objects in the file. Note that it also |
| 57 | inherits all the public attributes and methods that Leaf (see |
| 58 | :ref:`LeafClassDescr`) already provides. |
| 59 | |
| 60 | .. note:: |
| 61 | |
| 62 | VLArray objects also support compression although compression |
| 63 | is only performed on the data structures used internally by |
| 64 | the HDF5 to take references of the location of the variable |
| 65 | length data. Data itself (the raw data) are not compressed |
| 66 | or filtered. |
| 67 | |
| 68 | Please refer to the `VLTypes Technical Note |
| 69 | <https://support.hdfgroup.org/HDF5/doc/TechNotes/VLTypes.html>`_ |
| 70 | for more details on the topic. |
| 71 | |
| 72 | Parameters |
| 73 | ---------- |
| 74 | parentnode |
| 75 | The parent :class:`Group` object. |
| 76 | name : str |
| 77 | The name of this node in its parent group. |
| 78 | atom |
| 79 | An `Atom` instance representing the *type* and *shape* of the atomic |
| 80 | objects to be saved. |
| 81 | title |
| 82 | A description for this node (it sets the ``TITLE`` HDF5 attribute on |
| 83 | disk). |
| 84 | filters |
| 85 | An instance of the `Filters` class that provides information about the |
| 86 | desired I/O filters to be applied during the life of this object. |
| 87 | expectedrows |
| 88 | A user estimate about the number of row elements that will |
| 89 | be added to the growable dimension in the `VLArray` node. |
| 90 | If not provided, the default value is ``EXPECTED_ROWS_VLARRAY`` |
| 91 | (see ``tables/parameters.py``). If you plan to create either |
| 92 | a much smaller or a much bigger `VLArray` try providing a guess; |
| 93 | this will optimize the HDF5 B-Tree creation and management |
| 94 | process time and the amount of memory used. |
| 95 | |
| 96 | .. versionadded:: 3.0 |
| 97 | |
| 98 | chunkshape |
no outgoing calls
no test coverage detected