6.1.1TINYINT
The HDFql TINYINT data type stores values between -128 and 127 and occupies 1 byte in memory. It represents the data type of an HDF5 H5T_NATIVE_CHAR dataset/attribute or of a result set that stores elements of this type (which can be retrieved using the HDFQL_CURSOR_GET_TINYINT function when working with cursors). Depending on the programming language supported by HDFql, the TINYINT data type is represented by:
- In C, the “char” data type.
- In C++, the “char” data type.
- In Java, the “byte” data type (or corresponding wrapper class “Byte”).
- In Python, the “int8” NumPy data type.
- In C#, the “SByte” data type (or corresponding alias “sbyte”).
- In Fortran, the “INTEGER(KIND = 1)” data type.
- In R1, the “integer” data type.
- In MATLAB, the “int8” data type.
Notes
- By design, R does not provide a data type that stores values between -128 and 127 using exactly 1 byte of memory. As a substitute, the R “integer” data type may be used, at the cost of increased memory usage (as it occupies 4 bytes of memory) and lower performance (as byte alignment must be performed by HDFql). ↩