Generic method to get the types of column elements from the header information.
Generic method to get the types of column elements from the header information. Must be implemented for all extensions of HDU.
: (Map[String, String]) (Key, Values) from the header (see parseHeader)
(List[String]) Types of elements of columns.
Generic method to get the number of columns from the header information.
Generic method to get the number of columns from the header information. Must be implemented for all extensions of HDU.
: (Map[String, String]) (Key, Values) from the header (see parseHeader)
(Long) Number of columns in the data HDU.
Generic method to return the number of rows from the header information.
Generic method to return the number of rows from the header information. To be implemented in specific HDU.
: (Map[String, String]) (Key, Values) from the header (see parseHeader)
(Long) Number of rows in the data HDU.
Generic method to decode the rows of the data block.
Generic method to decode the rows of the data block. Must be implemented for all extensions of HDU.
: (Array[Bytes]) Array of Bytes describing one row.
(List[Any]) The decoded row containing primitives.
Generic method to get the size of one row (bytes) from the header information.
Generic method to get the size of one row (bytes) from the header information. Must be implemented for all HDU extensions.
: (Map[String, String]) (Key, Values) from the header (see parseHeader)
(Long) Size in bytes of one row.
Check whether the HDU is implemented in the library.
Check whether the HDU is implemented in the library. Must be set for all extensions of HDU trait.
(Boolean)
Generic method to convert header information into StructField used to build the DataFrame schema.
Generic method to convert header information into StructField used to build the DataFrame schema. Must be implemented for all extensions of HDU.
(List[StructField]) List of StructField containing name and types of columns.
Convert one array of bytes corresponding to one element of the table into its primitive type.
Convert one array of bytes corresponding to one element of the table into its primitive type.
: (Array[Byte]) Array of byte describing one element of the table.
: (String) The type of this table element according to the header.
the table element converted from binary.
Trait containing generic informations concerning HDU informations. This includes for example number of rows, size of a row, number of columns, types of elements, and methods to access elements.