CN107221067A - A kind of serial number access control method and system - Google Patents
A kind of serial number access control method and system Download PDFInfo
- Publication number
- CN107221067A CN107221067A CN201710364843.3A CN201710364843A CN107221067A CN 107221067 A CN107221067 A CN 107221067A CN 201710364843 A CN201710364843 A CN 201710364843A CN 107221067 A CN107221067 A CN 107221067A
- Authority
- CN
- China
- Prior art keywords
- serial number
- storage
- operational order
- current
- bitmap
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
- G07C15/006—Generating random numbers; Lottery apparatus electronically
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
Abstract
The present invention relates to technical field of information processing there is provided a kind of serial number access control method and system, method includes:Bitmap data and storage file are pre-created, operational order of the user to current serial number is received and parsed through, the operational order is including being inquired about the serial number, being added, the instruction of deletion action;According to the operational order being resolved to, the conversion of file physical location and bitmap logic position is carried out to current serial number, and be access action that operational order matches described in performing, serial number is stored by bitmap data, its occupancy memory space is small, by the combination of bitmap data and storage file, realizes efficient serial number inquiry, addition and deletion action, the access efficiency of serial number is significantly improved, the processing of extensive business datum is effectively supported.
Description
Technical field
The present invention relates to technical field of information processing, specially a kind of serial number access control method and system.
Background technology
Serial number can be for one lottery ticket of unique mark in lottery sale system, and records sale ticket information, on sale
Lottery ticket serial number can be all used to enter row information identification in the business such as ticket, prize, returned ticket.When selling lottery ticket, system can be by lottery ticket
Serial number is compared to the legitimacy that preliminary identification bets ticket with having sold the serial number of ticket, can then be preserved during ticketing success
The serial number of the ticket;When performing the business such as cancellation ticket and returned ticket, system is also required to be judged to treat that the ticket is according to lottery ticket serial number
It is no to have sold.
At present, serial number mainly uses database purchase, and each serial number is at least stored with a byte, with stream
The increase of water number amount, the memory space needed for system will be very big, and the complicated operation of database can also be significantly reduced
The accessing operation efficiency of serial number.Although memory database can improve data access efficiency, but still relative complex, and easily
Produce the safety problems such as loss of data.Therefore, current serial number access method can not meet growing lottery business need
Ask.
The content of the invention
In order to overcome the defect of prior art as indicated above, the present inventor has made intensive studies to this, is paying
After a large amount of creative works, so as to complete the present invention.
Specifically, the technical problems to be solved by the invention are:A kind of serial number access control method is provided, to solve
The problem of serial number access method that above-mentioned prior art is provided can not meet currently growing lottery business demand.
In order to solve the above technical problems, the technical scheme is that:
A kind of serial number access control method, methods described comprises the steps:
Bitmap data and storage file are pre-created, wherein, n+1 storage positions are included in institute's bit-map data, it is each
Individual storage position is used for storing the coded data corresponding to a serial number, each logic of storage position in institute's bit-map data
There is one-to-one relation between the serial number corresponding with storage position of position, the storage position is in institute's bit-map data
Physical location in the storage file of logical place and the logical place correspond;
Operational order of the user to current serial number is received and parsed through, the operational order includes carrying out the serial number
Inquiry, addition, the instruction of deletion action;
According to the operational order being resolved to, file physical location is carried out to current serial number and bitmap logic position turns
Change, and be the access action that operational order matches described in execution.
As an improvement scheme, the operational order that the basis is resolved to, to current serial number carry out file physics
Position and the conversion of bitmap logic position, and perform described in be operational order match access action the step of specifically include down
State step:
, will the corresponding coded data modification of the current serial number when addition instruction of the operational order for serial number
Onto the storage position of corresponding bitmap data.
As an improvement scheme, the operational order that the basis is resolved to, to current serial number carry out file physics
Position and the conversion of bitmap logic position, and perform described in be operational order match access action the step of specifically include down
State step:
When the operational order is the query statement of serial number, judge that current serial number k whether there is;
In the presence of current serial number k is judged, calculating obtains logical places of the current serial number k in bitmap data for k+
1;
According to the logical place k+1 of institute's bit-map data, calculating obtains physical locations of the current serial number k in storage file
k+1;
The storage file is opened, and navigates to the storage location that physical location is k+1, the serial number k is read;
When judging that current serial number k is not present, then terminate.
As an improvement scheme, it is described when the operational order is the query statement of serial number, judge current stream
The step of water number whether there is specifically includes following step:
Obtain the size of storage file;
According to the length of the storage of each in each bitmap data position, the maximum serial number of bitmap data is calculated;
If current serial number k is more than the maximum serial number, it is determined that the serial number to be checked is not present;
If preceding serial number k is less than or equal to the maximum serial number, it is determined that the serial number to be checked is present, and continues
Perform the calculating and obtain the step of logical places of the current serial number k in bitmap data is k+1.
As an improvement scheme, the operational order that the basis is resolved to, to current serial number carry out file physics
Position and the conversion of bitmap logic position, and perform described in be operational order match access action the step of specifically include down
State step:
When the operational order is that serial number deletes instruction, calculating obtains logic of the current serial number in bitmap data
Position;
According to the logical place of institute's bit-map data, calculating obtains physical location of the current serial number in storage file;
Open the storage file, and navigate to physical location, delete the serial number, i.e., will be described in bitmap data
It is revised as non-storage state in the storage position of logical place.
Another object of the present invention is to provide a kind of serial number access control system, the system includes:
Pretreatment module, for being pre-created bitmap data and storage file, wherein, include n+ in institute's bit-map data
1 storage position, each storage position is used for storing the coded data corresponding to a serial number, and each storage position is in institute's rheme
There is one-to-one relation between logical place serial number corresponding with storage position in diagram data, the storage position exists
Physical location of the logical place with the logical place in the storage file in institute's bit-map data is corresponded;
Operational order receives parsing module, for receiving and parsing through operational order of the user to current serial number, the behaviour
Work instruction is including being inquired about the serial number, being added, the instruction of deletion action;
Access action performing module, for according to the operational order being resolved to, file physical bit to be carried out to current serial number
The conversion with bitmap logic position is put, and is the access action that operational order matches described in execution.
As an improvement scheme, the access action performing module specifically includes:
Coded data modified module, for when addition instruction of the operational order for serial number, by the current stream
The corresponding coded data of water number is modified on the storage position of corresponding bitmap data.
As an improvement scheme, the access action performing module specifically includes:
Serial number judge module, for when the operational order is the query statement of serial number, judging current serial number k
It whether there is;
First bitmap logic position computation module, in the presence of current serial number k is judged, calculating to obtain current flowing water
Number logical places of the k in bitmap data is k+1;
First storage file position computation module, for the logical place k+1 according to institute's bit-map data, calculating is worked as
Physical location k+1s of the preceding serial number k in storage file;
Read module is inquired about, for opening the storage file, and the storage location that physical location is k+1 is navigated to, reads
Go out the serial number k;
When judging that current serial number k is not present, then terminate.
As an improvement scheme, the serial number judge module specifically includes:
Storage file acquiring size module, the size for obtaining storage file;
Maximum serial number computing module, for the length according to the storage of each in each bitmap data position, calculates position
The maximum serial number of diagram data;
First determining module, if being more than the maximum serial number for current serial number k, it is determined that the stream to be checked
Water number is not present;
Second determining module, if being less than or equal to the maximum serial number for preceding serial number k, it is determined that described to be checked
Serial number is present, and continues executing with the step for calculating and obtaining that logical places of the current serial number k in bitmap data is k+1
Suddenly.
As an improvement scheme, the access action performing module specifically includes:
Second bitmap logical place computing module, for when the operational order is that serial number deletes instruction, calculating
To logical place of the current serial number in bitmap data;
Second storage file position computation module, for the logical place according to institute's bit-map data, calculating obtains current
Physical location of the serial number in storage file;
Removing module, for opening the storage file, and navigates to physical location, deletes the serial number, i.e., in place
Non- storage state is revised as in the storage position of the logical place in diagram data.
Employ after above-mentioned technical proposal, the beneficial effects of the invention are as follows:
Bitmap data and storage file are pre-created, operational order of the user to current serial number is received and parsed through, it is described
Operational order is including being inquired about the serial number, being added, the instruction of deletion action;It is right according to the operational order being resolved to
Current serial number carries out the conversion of file physical location and bitmap logic position, and is depositing of matching of operational order described in performing
Action is taken, serial number is stored by bitmap data, its occupancy memory space is small, passes through bitmap data and the knot of storage file
Close, realize efficient serial number inquiry, addition and deletion action, significantly improve the access efficiency of serial number, effectively support extensive
The processing of business datum.
Brief description of the drawings
Fig. 1 is the implementation process figure for the serial number access control method that the present invention is provided;
Fig. 2 is the operational order that the basis that the embodiment of the present invention one is provided is resolved to, and file thing is carried out to current serial number
The conversion of position and bitmap logic position is managed, and is the implementation process figure for the access action that operational order matches described in execution;
Fig. 3 is the operational order that the basis that the embodiment of the present invention two is provided is resolved to, and file thing is carried out to current serial number
The conversion of position and bitmap logic position is managed, and is the implementation process figure for the access action that operational order matches described in execution;
Fig. 4 is the structured flowchart for the serial number storage control system that the present invention is provided;
Fig. 5 is the structured flowchart for the serial number judge module that the present invention is provided.
Embodiment
With reference to specific embodiment, the present invention is further described.But the purposes and mesh of these exemplary embodiments
Only be used for enumerate the present invention, not to the present invention real protection scope constitute it is any type of it is any limit, it is more non-will this
The protection domain of invention is confined to this.
Fig. 1 shows the implementation process figure for the serial number access control method that the present invention is provided, and it specifically includes following steps
Suddenly:
In step S101, bitmap data and storage file are pre-created, wherein, include n+1 in institute's bit-map data
Position storage position, each storage position is used for storing the coded data corresponding to a serial number, and each storage position is in institute's rheme
There is one-to-one relation between logical place serial number corresponding with storage position in diagram data, the storage position exists
Physical location of the logical place with the logical place in the storage file in institute's bit-map data is corresponded.
In step s 102, operational order of the user to current serial number is received and parsed through, the operational order includes pair
The serial number is inquired about, added, the instruction of deletion action.
In step s 103, according to the operational order being resolved to, file physical location and bitmap are carried out to current serial number
The conversion of logical place, and be access action that operational order matches described in performing.
In this embodiment, serial number storage is carried out using bitmap data, serial number is integer numeral, to non-integer stream
Water number can then be converted into after integer and be handled again.Each represents first in a serial number, agreement bitmap data
Individual serial number is called minimum serial number, and last serial number is called maximum serial number, and the adjacent serial number of any number is in place
It is also Coutinuous store in figure, such a bitmap data can store the one section of continuous integer data started with minimum serial number.
Bitmap data does not store the occurrence of serial number, but stores coded data (such as each coded number after recompiling
It is 0 or 1 according to value, is worth and represents that the position is not used for 0, on the contrary then represent to have stored serial number).It is obtained according to serial number in place
Logical place in diagram data, is subsequently filled the position (being for example encoded to 0 or 1), otherwise according to the value of each with it in bitmap
In position it should also be appreciated that it represent serial number numerical value;
Serial number bitmap data step-by-step is stored sequentially in binary file, each in bitmap is using fixed length
Degree storage, its physical storage locations hereof can be obtained according to memory length with the logical place of each.Equally, according to text
The size of part can obtain current bitmap length.Positioning and read-write operation by file can operate each in bitmap data
Position.
As an alternative embodiment of the invention, according to the operational order being resolved to, file thing is carried out to current serial number
The conversion of position and bitmap logic position is managed, and is the implementation process figure for the access action that operational order matches described in execution,
It specifically includes following step:
, will the corresponding coded data modification of the current serial number when addition instruction of the operational order for serial number
Onto the storage position of corresponding bitmap data.
It is above-mentioned provide be serial number addition flow, will not be repeated here.
As an alternative embodiment of the invention, Fig. 2 shows the operational order that the basis that the present invention is provided is resolved to, right
Current serial number carries out the conversion of file physical location and bitmap logic position, and is depositing of matching of operational order described in performing
The implementation process figure of action is taken, it specifically includes following step:
In step s 201, when operational order is the query statement of serial number, judge that current serial number k whether there is.
In step S202, in the presence of current serial number k is judged, calculating obtains current serial number k in bitmap data
Logical place be k+1.
In step S203, according to the logical place k+1 of institute's bit-map data, calculating obtains current serial number k in storage
The physical location k+1 of file.
In step S204, the storage file is opened, and navigates to the storage location that physical location is k+1, institute is read
State serial number k.
In step S205, when judging that current serial number k is not present, then terminate.
Wherein, above-mentioned steps S201 is implemented as:
(1) size of storage file is obtained;
(2) according to the length of the storage of each in each bitmap data position, the maximum serial number of bitmap data is calculated;
(3) if current serial number k is more than the maximum serial number, it is determined that the serial number to be checked is not present;
(4) if preceding serial number k is less than or equal to the maximum serial number, it is determined that the serial number to be checked is present, and
Continue executing with the calculating and obtain the step of logical places of the current serial number k in bitmap data is k+1.
The process of the above-mentioned inquiry for giving serial number.
As an alternative embodiment of the invention, Fig. 3 shows the operational order that the basis that the present invention is provided is resolved to, right
Current serial number carries out the conversion of file physical location and bitmap logic position, and is depositing of matching of operational order described in performing
The implementation process figure of action is taken, it specifically includes following step:
In step S301, when the operational order is that serial number deletes instruction, it is in place that calculating obtains current serial number
Logical place in diagram data.
In step s 302, according to the logical place of institute's bit-map data, calculating obtains current serial number in storage file
Physical location.
In step S303, open the storage file, and navigate to physical location, delete the serial number, i.e., it is in place
Non- storage state is revised as in the storage position of the logical place in diagram data.
The course of work that the serial number that the embodiment is provided is deleted.
Fig. 4 shows the structured flowchart for the serial number access control system that the present invention is provided, for convenience of description, in figure only
Give the part related to the embodiment of the present invention.
Pretreatment module 11 is used to be pre-created bitmap data and storage file, wherein, include n in institute's bit-map data
+ 1 storage position, each storage position is used for storing the coded data corresponding to a serial number, and each storage position is described
There is one-to-one relation, the storage position between logical place serial number corresponding with storage position in bitmap data
Physical location of the logical place with the logical place in the storage file in institute's bit-map data is corresponded;Behaviour
Make command reception parsing module 12 and receive and parse through operational order of the user to current serial number, the operational order is included to institute
State serial number inquired about, added, the instruction of deletion action;Access action performing module 13 according to the operational order being resolved to,
The conversion of file physical location and bitmap logic position is carried out to current serial number, and is that operational order matches described in execution
Access action.
In this embodiment, access action performing module 13 is specifically included:
Coded data modified module 14, for when the operational order for serial number addition instruction when, will it is described currently
The corresponding coded data of serial number is modified on the storage position of corresponding bitmap data.
As another embodiment, the access action performing module 13 also includes:
Serial number judge module 16, for when the operational order is the query statement of serial number, judging current flowing water
Number k whether there is;
First bitmap logic position computation module 17, in the presence of current serial number k is judged, calculating currently to be flowed
Logical places of the water k in bitmap data is k+1;
First storage file position computation module 18, for the logical place k+1 according to institute's bit-map data, calculating is obtained
Physical location k+1s of the current serial number k in storage file;
Read module 19 is inquired about, for opening the storage file, and the storage location that physical location is k+1 is navigated to,
Read the serial number k;
When judging that current serial number k is not present, then terminate.
Wherein, as shown in figure 5, the serial number judge module 16 is specifically included:
Storage file acquiring size module 20, the size for obtaining storage file;
Maximum serial number computing module 21, for the length according to the storage of each in each bitmap data position, is calculated
The maximum serial number of bitmap data;
First determining module 22, if being more than the maximum serial number for current serial number k, it is determined that described to be checked
Serial number is not present;
Second determining module 23, if being less than or equal to the maximum serial number for preceding serial number k, it is determined that described to be checked
Serial number exist, and continue executing with it is described calculating obtain logical places of the current serial number k in bitmap data be k+1 step
Suddenly.
As another embodiment, the access action performing module 13 also includes:
Second bitmap logical place computing module 24, for when the operational order is that serial number deletes instruction, calculating
Obtain logical place of the current serial number in bitmap data;
Second storage file position computation module 25, for the logical place according to institute's bit-map data, calculating is worked as
Physical location of the preceding serial number in storage file;
Removing module 15, for opening the storage file, and navigates to physical location, deletes the serial number, that is, exist
Non- storage state is revised as in the storage position of the logical place in bitmap data.
Wherein, the function of above-mentioned modules will not be repeated here as described in above-mentioned embodiment of the method.
In embodiments of the present invention, bitmap data and storage file are pre-created, user is received and parsed through to current flowing water
Number operational order, the operational order include the serial number is inquired about, added, the instruction of deletion action;According to solution
The operational order analysed, the conversion of file physical location and bitmap logic position is carried out to current serial number, and be described in execution
The access action that operational order matches, serial number is stored by bitmap data, and its occupancy memory space is small, passes through bitmap number
According to and storage file combination, realize the inquiry of efficient serial number, addition and deletion action, significantly improve the access effect of serial number
Rate, effectively supports the processing of extensive business datum.
It should be appreciated that the purposes of these embodiments is merely to illustrate the present invention and is not intended to limitation protection model of the invention
Enclose.In addition, it will also be appreciated that after the technology contents of the present invention have been read, those skilled in the art can make each to the present invention
Change, modification and/or variation are planted, all these equivalent form of values equally fall within the guarantor that the application appended claims are limited
Within the scope of shield.
Claims (10)
1. a kind of serial number access control method, it is characterised in that methods described comprises the steps:
Bitmap data and storage file are pre-created, wherein, n+1 storage positions are included in institute's bit-map data, each is deposited
Storage space is used for storing the coded data corresponding to a serial number, each logical place of storage position in institute's bit-map data
There is one-to-one relation, the storage position patrolling in institute's bit-map data between serial number corresponding with the storage position
Physical location of the position with the logical place in the storage file is collected to correspond;
Operational order of the user to current serial number is received and parsed through, the operational order includes looking into the serial number
Inquiry, addition, the instruction of deletion action;
According to the operational order being resolved to, the conversion of file physical location and bitmap logic position is carried out to current serial number, and
It is the access action that operational order matches described in performing.
2. serial number access control method according to claim 1, it is characterised in that the operation that the basis is resolved to refers to
Order, the conversion of file physical location and bitmap logic position is carried out to current serial number, and is operational order phase described in execution
The step of access action matched somebody with somebody, specifically includes following step:
When addition instruction of the operational order for serial number, the corresponding coded data of the current serial number is modified to pair
On the storage position for the bitmap data answered.
3. serial number access control method according to claim 1, it is characterised in that the operation that the basis is resolved to refers to
Order, the conversion of file physical location and bitmap logic position is carried out to current serial number, and is operational order phase described in execution
The step of access action matched somebody with somebody, specifically includes following step:
When the operational order is the query statement of serial number, judge that current serial number k whether there is;
In the presence of current serial number k is judged, calculating obtains logical places of the current serial number k in bitmap data for k+1;
According to the logical place k+1 of institute's bit-map data, calculating obtains physical location k+1s of the current serial number k in storage file;
The storage file is opened, and navigates to the storage location that physical location is k+1, the serial number k is read;
When judging that current serial number k is not present, then terminate.
4. serial number access control method according to claim 3, it is characterised in that described when the operational order is stream
During the query statement of water number, judge that the step of current serial number whether there is specifically includes following step:
Obtain the size of storage file;
According to the length of the storage of each in each bitmap data position, the maximum serial number of bitmap data is calculated;
If current serial number k is more than the maximum serial number, it is determined that the serial number to be checked is not present;
If preceding serial number k is less than or equal to the maximum serial number, it is determined that the serial number to be checked is present, and continues executing with
The calculating obtains the step of logical places of the current serial number k in bitmap data is k+1.
5. serial number access control method according to claim 1, it is characterised in that the operation that the basis is resolved to refers to
Order, the conversion of file physical location and bitmap logic position is carried out to current serial number, and is operational order phase described in execution
The step of access action matched somebody with somebody, specifically includes following step:
When the operational order is that serial number deletes instruction, calculating obtains logical bit of the current serial number in bitmap data
Put;
According to the logical place of institute's bit-map data, calculating obtains physical location of the current serial number in storage file;
The storage file is opened, and navigates to physical location, the serial number is deleted, i.e., by the logic in bitmap data
It is revised as non-storage state in the storage position of position.
6. a kind of serial number access control system, it is characterised in that the system includes:
Pretreatment module, for being pre-created bitmap data and storage file, wherein, include n+1 in institute's bit-map data
Position is stored, each storage position is used for storing the coded data corresponding to a serial number, each storage position is in the bitmap
There is one-to-one relation between logical place serial number corresponding with storage position in data, the storage position is in institute
Physical location of the logical place with the logical place in the storage file in bit-map data is corresponded;
Operational order receives parsing module, and for receiving and parsing through operational order of the user to current serial number, the operation refers to
Order is including being inquired about the serial number, being added, the instruction of deletion action;
Access action performing module, for according to the operational order that is resolved to, current serial number is carried out file physical location and
The conversion of bitmap logic position, and be access action that operational order matches described in performing.
7. serial number access control system according to claim 6, it is characterised in that the access action performing module tool
Body includes:
Coded data modified module, for when addition instruction of the operational order for serial number, by the current serial number
Corresponding coded data is modified on the storage position of corresponding bitmap data.
8. serial number access control system according to claim 6, it is characterised in that the access action performing module tool
Body includes:
Serial number judge module, for when the operational order is the query statement of serial number, whether judging current serial number k
In the presence of;
First bitmap logic position computation module, in the presence of current serial number k is judged, calculating to obtain current serial number k
Logical place in bitmap data is k+1;
First storage file position computation module, for the logical place k+1 according to institute's bit-map data, calculating is currently flowed
Physical location k+1s of the water k in storage file;
Read module is inquired about, for opening the storage file, and the storage location that physical location is k+1 is navigated to, reads institute
State serial number k;
When judging that current serial number k is not present, then terminate.
9. serial number access control system according to claim 8, it is characterised in that the serial number judge module is specific
Including:
Storage file acquiring size module, the size for obtaining storage file;
Maximum serial number computing module, for the length according to the storage of each in each bitmap data position, calculates bitmap number
According to maximum serial number;
First determining module, if being more than the maximum serial number for current serial number k, it is determined that the serial number to be checked
It is not present;
Second determining module, if being less than or equal to the maximum serial number for preceding serial number k, it is determined that the flowing water to be checked
Number exist, and continue executing with it is described calculating obtain logical places of the current serial number k in bitmap data for k+1 the step of.
10. serial number access control system according to claim 6, it is characterised in that the access action performing module
Specifically include:
Second bitmap logical place computing module, for when the operational order is that serial number deletes instruction, calculating to be worked as
Logical place of the preceding serial number in bitmap data;
Second storage file position computation module, for the logical place according to institute's bit-map data, calculating obtains current flowing water
Number storage file physical location;
Removing module, for opening the storage file, and navigates to physical location, deletes the serial number, i.e., in bitmap number
Non- storage state is revised as according to the middle storage by the logical place.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710364843.3A CN107221067A (en) | 2017-05-22 | 2017-05-22 | A kind of serial number access control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710364843.3A CN107221067A (en) | 2017-05-22 | 2017-05-22 | A kind of serial number access control method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107221067A true CN107221067A (en) | 2017-09-29 |
Family
ID=59944393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710364843.3A Pending CN107221067A (en) | 2017-05-22 | 2017-05-22 | A kind of serial number access control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107221067A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656948A (en) * | 2018-11-15 | 2019-04-19 | 金蝶软件(中国)有限公司 | Bitmap data processing method, device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571916A (en) * | 2011-12-02 | 2012-07-11 | 曙光信息产业(北京)有限公司 | Framework of leasing software of cloud storage space and operating method of framework |
CN103699415A (en) * | 2013-12-23 | 2014-04-02 | 中国航空工业集团公司第六三一研究所 | Efficient terrain data loading method for airborne equipment |
CN104346357A (en) * | 2013-07-29 | 2015-02-11 | 中国科学院声学研究所 | File accessing method and system for embedded terminal |
-
2017
- 2017-05-22 CN CN201710364843.3A patent/CN107221067A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571916A (en) * | 2011-12-02 | 2012-07-11 | 曙光信息产业(北京)有限公司 | Framework of leasing software of cloud storage space and operating method of framework |
CN104346357A (en) * | 2013-07-29 | 2015-02-11 | 中国科学院声学研究所 | File accessing method and system for embedded terminal |
CN103699415A (en) * | 2013-12-23 | 2014-04-02 | 中国航空工业集团公司第六三一研究所 | Efficient terrain data loading method for airborne equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656948A (en) * | 2018-11-15 | 2019-04-19 | 金蝶软件(中国)有限公司 | Bitmap data processing method, device, computer equipment and storage medium |
CN109656948B (en) * | 2018-11-15 | 2021-01-22 | 金蝶软件(中国)有限公司 | Bitmap data processing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103988212B (en) | Method and system for being route in state machine | |
CN106168797B (en) | A kind of method that modularization obtains the useful item failure probability of nuclear power station fault tree | |
CN107688591B (en) | A kind of actuarial treating method and apparatus | |
CN108228166A (en) | A kind of back-end code generation method and system based on template | |
CN1866206A (en) | Generating performance tests from UML specifications using Markov chains | |
CN113064586B (en) | Code completion method based on abstract syntax tree augmented graph model | |
CN108509514A (en) | A kind of big data analysis method and system based on block chain | |
CN105264488B (en) | For using array to merging the method and system of ordered list | |
CN108595276A (en) | Processing method, system, computer equipment and the storage medium of service logic | |
CN106503008A (en) | File memory method and device and file polling method and apparatus | |
CN110147202A (en) | A method of reducing block chain intelligence contract code storage volume | |
CN109412604A (en) | A kind of data compression method based on language model | |
CN106844288A (en) | A kind of random string generation method and device | |
CN115686527A (en) | Compiling method and device based on operator, computer equipment and storage medium | |
CN107221067A (en) | A kind of serial number access control method and system | |
CN117009038B (en) | Graph computing platform based on cloud native technology | |
CN109784484A (en) | Neural network accelerated method, device, neural network accelerate chip and storage medium | |
CN105740374B (en) | Three-dimensional platform data fuzzy query method based on distributed memory | |
CN115544033B (en) | Method, device, equipment and medium for updating check repeat vector library and checking repeat data | |
CN110069772A (en) | Predict device, method and the storage medium of the scoring of question and answer content | |
CN109492086A (en) | A kind of answer output method, device, electronic equipment and storage medium | |
CN108845844A (en) | A kind of state transition method and device | |
CN105487911B (en) | A kind of many-core data fragmentation method based on compiling guidance | |
CN108073709A (en) | A kind of operating method of data record, device, equipment and storage medium | |
CN105912404B (en) | A method of finding strong continune component in the large-scale graph data based on disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170929 |
|
RJ01 | Rejection of invention patent application after publication |