6.1.24ENUMERATION
The HDFql ENUMERATION data type is composed of one or more members that store values between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 and occupies 1, 2, 4, or 8 bytes in memory (depending on the range of values stored). It represents the data type of an HDF5 H5T_ENUM dataset/attribute or of a result set that stores elements of this type (which can be retrieved using the HDFQL_CURSOR_GET_TINYINT, HDFQL_CURSOR_GET_SMALLINT, HDFQL_CURSOR_GET_INT, or HDFQL_CURSOR_GET_BIGINT functions when working with cursors). Depending on the programming language supported by HDFql, the ENUMERATION data type is represented by:
- In C, the “char”, “short”, “int”, or “long long” data type.
- In C++, the “char”, “short”, “int”, or “long long” data type.
- In Java, the “byte”, “short”, “int”, or “long” data type (or corresponding wrapper class “Byte”, “Short”, “Integer”, or “Long”).
- In Python, the “int8”, “int16”, “int32”, or “int64” NumPy data type.
- In C#, the “SByte”, “Int16”, “Int32”, or “Int64” data type (or corresponding alias “sbyte”, “short”, “int”, or “long”).
- In Fortran, the “INTEGER(KIND = 1)”, “INTEGER(KIND = 2)”, “INTEGER(KIND = 4)”, “INTEGER”, or “INTEGER(KIND = 8)” data type.
- In R, the “integer” or “integer64” bit64 data type.
- In MATLAB, the “int8”, “int16”, “int32”, or “int64” data type.