Updated on 2024-04-29 GMT+08:00

Development Guideline

Function Description

Determine functions to be developed based on the preceding scenario. Table 1 describes functions to be developed.

Table 1 Functions to be developed in HBase

No.

Procedure

Code Implementation

1

Create a table based on the information in Typical Application Scenario.

For details, see Creating a Table.

2

Import user data.

For details, see Inserting Data.

3

Add an educational background column family, and add educational backgrounds and titles to the user information table.

For details, see Modifying a Table.

4

Query user names and addresses by user ID.

For details, see Reading Data Using Get.

5

Query information by user name.

For details, see Using a Filter.

6

Deregister users and delete user data from the user information table.

For details, see Deleting Data.

7

Delete the user information table after service A ends.

For details, see Deleting a Table.

Key Design Principles

HBase is a distributed database system based on the lexicographic order of RowKeys. The RowKey design has great impact on performance, so the RowKeys must be designed based on specific services.