Hitachi

Hitachi Advanced Database Command Reference


17.1.1 Functional overview

The adbimport command is used to import data into a table. If a range index has been defined for the target table, the command creates the range index while it is importing the table data. If a B-tree index or a text index has been defined for the target table, the command creates the B-tree index or text index after table data has been imported (if a primary key has been defined for the target table, the command creates the B-tree index corresponding to the primary key after the table data has been imported).

This series of processing steps is called the data import processing. The following figure provides an overview of data import processing.

Figure 17‒1: Overview of data import processing

[Figure]

Explanation:
  • When the adbimport command is executed, the command imports the data contained in the input data files into a table.

    If the table to be imported is a row store table, data in the input data files is stored in the database in row store format. If the table to be imported is a column store table, data in the input data files is stored in the database in column store format.

    Note that if the table to be imported is a column store table, data in each column is compressed before being stored in the database. Multiple column-data compression types are available. The HADB server automatically selects the compression type based on the data in the input data files. However, if the column-data compression type is specified when a column store table is defined, column data is compressed with the specified compression type.

    Note
    • For details about row store tables and column store tables, see Row store tables and column store tables in the HADB Setup and Operation Guide.

    • For details about the types of column-data compression, see Column-data compression types for column store tables in Criteria for selecting row store tables and column store tables in the HADB Setup and Operation Guide.

  • If a range index has been defined for the table, the command creates the range index when it has finished storing the table data in each segment. If a B-tree index or a text index has been defined for the table, the command creates the B-tree index or text index after table data has been imported (if a primary key is defined for the table, the command creates the B-tree index corresponding to the primary key after it has finished importing the table data).

The following explains the files: