Development Idea

Updated on 2022-11-18 GMT+08:00

Function Decomposition

Functions are decomposed based on the preceding service scenario. Table 1 provides the functions to be developed.

Table 1 Functions to be developed in HBase

No.

Procedure

Code Implementation

1

Create a table based on Table 1.

For details, see Creating a Table.

2

Import user data.

For details, see Inserting Data.

3

Add the Education column family, and add diplomas 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 Filtering Data.

6

To improve query performance, create or delete secondary indexes.

For details, see Creating a Secondary Index and Secondary Index-based Query.

7

Deregister users, and delete user data.

For details, see Deleting Data.

8

Delete the user information table after service A ends.

For details, see Deleting a Table.

Key Design Principle

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.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback