HBase Cold and Hot Data Separation Sample Program Development Plan
Function Description
Table 1 shows the implementation details of functions of HBase cold and hot data separation.
No. |
Procedure |
Code Implementation |
---|---|---|
1 |
Create a table based on the information in Typical Scenarios of the HBase Cold and Hot Data Separation Sample Program. |
For details, see Creating an HBase Cold and Hot Data Separation Table. |
2 |
Write data. |
For details, see Inserting HBase Cold and Hot Separation Data. |
4 |
Query the temperature and humidity by city, district, and date using the GET command. |
For details, see Reading HBase Cold and Hot Separation Data Using the GET Command. |
5 |
Perform a query by city, district, and date using the SCANcommand. |
For details, see Reading HBase Cold and Hot Separation Data Using the Scan Command. |
Key Design Principles
Rows in HBase are sorted lexicographically by row key. This mechanism improves scan query performance if the row keys are properly designed. It is a good choice to design the row keys based on your service requirements.
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