Method and device for storing data
A data storage and storage device technology, applied in the database field, can solve the problems of low retrieval efficiency and long time consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049]Embodiments of the present invention provide data storage methods, such as figure 1 As shown, the method includes:
[0050] S101. The storage device acquires data records to be stored.
[0051] Specifically, when storing data, the storage device first needs to obtain the data record to be stored.
[0052] Wherein, the data record includes at least an event and a time attribute, and the event includes at least one of opening, closing, and triggering.
[0053] S102. The storage device determines the attribute fields in the data record that satisfy a preset condition.
[0054] Wherein, the preset condition includes at least one of time, event, and account, and the event includes at least one of opening, closing, and triggering.
[0055] Specifically, the preset condition is set by the user when analyzing the data.
[0056] Optionally, the preset condition may be a specific condition or a combination of conditions. For example, if the preset condition is time and / or eve...
Embodiment 2
[0071] Embodiments of the present invention provide data storage methods, such as figure 2 As shown, the method includes:
[0072] S201. The storage device acquires data records to be stored.
[0073] Specifically, when storing data, the storage device first needs to obtain the data record to be stored.
[0074] Wherein, the data record includes at least an event and a time attribute, and the event includes at least one of opening, closing, and triggering.
[0075] S202. The storage device determines the attribute fields in the data records that meet the preset conditions.
[0076] Wherein, the preset condition includes at least one of time, event, and account, and the event includes at least one of opening, closing, and triggering.
[0077] Specifically, the preset condition is set by the user when analyzing the data.
[0078] Optionally, the preset condition may be a specific condition or a combination of conditions. For example, if the preset condition is time and / or ...
Embodiment 3
[0115] The present invention provides a storage device, such as image 3 shown, including:
[0116] An acquisition unit 10, configured to acquire data records to be stored;
[0117] The processing unit 11 is configured to determine the attribute field satisfying the preset condition in the data record; use the attribute field satisfying the preset condition as the prefix Head of the row key Rowkey of the HBase database;
[0118] The storage unit 12 is configured to store the Rowkey in the HBase database, so that when the attribute field satisfying the preset condition is queried in the HBase, the prefix of the Rowkey is queried to obtain the attribute field satisfying the preset condition. attribute field.
[0119] Further, the processing unit 11 uses the attribute field satisfying the preset condition as the prefix Head of the row key Rowkey of the HBase database, including:
[0120] Calculate the digest value of the attribute field satisfying the preset condition accordin...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com