6.7.22SHOW FILL
Syntax
SHOW FILL [file_name] dataset_name
[post_processing_option]
[output_redirecting_option]
Description
Show (i.e. get) the fill values of an HDF5 dataset named dataset_name.
Parameter(s)
file_name – optional string that specifies the name of the HDF5 file storing the dataset whose fill values are to be obtained. If file_name is specified, the file is opened on the fly, the fill values of the dataset are obtained, and the file is subsequently closed. If not specified, the file currently in use is used instead.
dataset_name – mandatory string that specifies the name of the HDF5 dataset whose fill values are to be obtained.
post_processing_option – optional option that transforms the result set according to the programmer’s needs, such as ordering or truncating (please refer to the section PROCESSING for additional information).
output_redirecting_option – optional option that specifies the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. user-defined variable) to write the result set into (please refer to the subsection INTO for additional information). If not specified, the cursor in use is populated with the result set instead (please refer to the chapter CURSOR for additional information).
Return
The fill values of an HDF5 dataset as an HDFQL_TINYINT (in case the data type of the dataset is HDFQL_TINYINT), HDFQL_UNSIGNED_TINYINT (in case the data type of the dataset is HDFQL_UNSIGNED_TINYINT), HDFQL_SMALLINT (in case the data type of the dataset is HDFQL_SMALLINT), HDFQL_UNSIGNED_SMALLINT (in case the data type of the dataset is HDFQL_UNSIGNED_SMALLINT), HDFQL_INT (in case the data type of the dataset is HDFQL_INT), HDFQL_UNSIGNED_INT (in case the data type of the dataset is HDFQL_UNSIGNED_INT), HDFQL_BIGINT (in case the data type of the dataset is HDFQL_BIGINT), HDFQL_UNSIGNED_BIGINT (in case the data type of the dataset is HDFQL_UNSIGNED_BIGINT), HDFQL_FLOAT (in case the data type of the dataset is HDFQL_FLOAT), HDFQL_DOUBLE (in case the data type of the dataset is HDFQL_DOUBLE), HDFQL_CHAR (in case the data type of the dataset is HDFQL_CHAR), HDFQL_VARTINYINT (in case the data type of the dataset is HDFQL_VARTINYINT), HDFQL_UNSIGNED_VARTINYINT (in case the data type of the dataset is HDFQL_UNSIGNED_VARTINYINT), HDFQL_VARSMALLINT (in case the data type of the dataset is HDFQL_VARSMALLINT), HDFQL_UNSIGNED_VARSMALLINT (in case the data type of the dataset is HDFQL_UNSIGNED_VARSMALLINT), HDFQL_VARINT (in case the data type of the dataset is HDFQL_VARINT), HDFQL_UNSIGNED_VARINT (in case the data type of the dataset is HDFQL_UNSIGNED_VARINT), HDFQL_VARBIGINT (in case the data type of the dataset is HDFQL_VARBIGINT), HDFQL_UNSIGNED_VARBIGINT (in case the data type of the dataset is HDFQL_UNSIGNED_VARBIGINT), HDFQL_VARFLOAT (in case the data type of the dataset is HDFQL_VARFLOAT), HDFQL_VARDOUBLE (in case the data type of the dataset is HDFQL_VARDOUBLE), HDFQL_VARCHAR (in case the data type of the dataset is HDFQL_VARCHAR) or HDFQL_OPAQUE (in case the data type of the dataset is HDFQL_OPAQUE), HDFQL_ENUMERATION (in case the data type of the dataset is HDFQL_ENUMERATION), HDFQL_COMPOUND (in case the data type of the dataset is HDFQL_COMPOUND), or nothing (in case the fill type of the dataset is HDFQL_FILL_UNDEFINED).
Example(s)
# create an HDF5 dataset named "my_dataset0" of data type int
CREATE DATASET my_dataset0 AS INT
# show (i.e. get) fill values of dataset "my_dataset0" (should return 0)
SHOW FILL my_dataset0
# create an HDF5 dataset named "my_dataset1" of data type int with a fill value of 20
CREATE DATASET my_dataset1 AS INT FILL(20)
# show (i.e. get) fill values of dataset "my_dataset1" (should return 20)
SHOW FILL my_dataset1
# create an HDF5 dataset named "my_dataset2" of data type variable-length char of one dimension (size 5) with a fill value of "Hierarchical Data Format"
CREATE DATASET my_dataset2 AS VARCHAR(5) FILL("Hierarchical Data Format")
# show (i.e. get) fill values of dataset "my_dataset2" (should return "Hierarchical Data Format")
SHOW FILL my_dataset2
# create an HDF5 dataset named "my_dataset3" of data type variable-length int with fill values of 100 and 200
CREATE DATASET my_dataset3 AS VARINT FILL(100, 200)
# show (i.e. get) fill values of dataset "my_dataset3" (should return 100, 200)
SHOW FILL my_dataset3
# create an HDF5 dataset named "my_dataset4" of data type enumeration composed of three members named "Earth" (with value 0), "Moon" (with value 1), and "Mars" (with value 2) with a fill value of "Mars" (i.e. 2)
CREATE DATASET my_dataset4 AS ENUMERATION(Earth, Moon, Mars) FILL(Mars)
# show (i.e. get) fill value of dataset "my_dataset4" (should return 2 (i.e. "Mars"))
SHOW FILL my_dataset4