Bitmap index compressing method and bitmap index decompressing method
A technology of bitmap index and compression method, which is applied in the database field, can solve the problems of increasing the complexity of bitmap index decompression, affecting the efficiency of bitmap index retrieval and query, and increasing the storage space of bitmap index, so as to improve the efficiency of retrieval and query, Reduce the complexity of decompression and the effect of reducing storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] see figure 1 , is a flowchart of a bitmap index compression method provided in Embodiment 1 of the present invention. The method in the embodiment of the present invention can be executed by a bitmap index compression device implemented by hardware and / or software, and the implementation device is typically configured in a server capable of providing bitmap index compression services. Such as figure 1 As shown, the method includes:
[0034] Step 110, for the bitmap index of the index key contained in the pre-established data base table, segment the bitmap index according to the preset segment width to obtain multi-segment bitmap information;
[0035] The data base table is an important object in the database and consists of various elements. The index keywords contained in the data base table represent the values of the elements contained in the attributes of each column in the data base table. Bitmap index is a special database indexing technology using bitmap. I...
Embodiment 2
[0075] see figure 2 , is a flow chart of a bitmap index compression method provided in Embodiment 2 of the present invention. Such as figure 2 As shown, the method includes:
[0076] Step 210, for the bitmap index of the index key contained in the pre-established data base table, segment the bitmap index according to the preset segment width to obtain multi-segment bitmap information;
[0077] Step 220, for each piece of bitmap information, determine the sparse factor of the current piece of bitmap information;
[0078] In this step, when the effective value is 1, the thinning factor is the ratio of the number of 0s in the current segment bitmap information to the preset segment width; when the effective value is 0, the thinning factor is the current segment bitmap information The ratio of the number of 1s to the preset segment width.
[0079] Step 230, judging whether the sparse factor of the current segment bitmap information is greater than or equal to the preset spar...
Embodiment 3
[0092] see image 3 , is a flowchart of a bitmap index compression method provided in Embodiment 3 of the present invention. Such as image 3 As shown, the method includes:
[0093] Step 310, for the bitmap index of the index key contained in the pre-established data base table, segment the bitmap index according to the preset segment width to obtain multi-segment bitmap information;
[0094] Preferably, the preset segment width is an integer multiple of 8.
[0095] Step 320, for each segment of bitmap information, determine the first auxiliary information of the segment of bitmap information;
[0096] Wherein, the first auxiliary information includes at least the start line number of the bitmap information segment and the end line number of the bitmap information segment. The first auxiliary information may also include a segment number. The end line number is related to the start line number and the preset segment width.
[0097] For example, if the bitmap index of the...
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