Application Development Approach
Function Decomposition
Functions are decomposed based on the preceding service scenario. Table 1 provides the functions to be developed.
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
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot