A kind of processing method of data, device and equipment
Technical field
This specification is related to a kind of field of computer technology more particularly to processing method of data, device and equipment.
Background technology
With the continuous development of network technology and terminal technology, the data volume that data transmission and data storage have become is got over
Come bigger.In general, during data store, stored in order to avoid the repetition of data, it usually needs pass through certain detection means
To judge whether data to be stored (or data block) are stored.Check value is to be between two or more data for detecting
One of no identical main means.
In general, if the check value of two data or data block is identical, then it represents that the two data or data block are identical
Data or data block, still, check value will produce identical numerical value in a certain range, i.e., two different data blocks generate
Identical check value, at this point, even if data to be stored block is different from stored target data block, and the verification for both being only
Be worth identical, then server also will be unable to store the data to be stored block, to cause the leakage of data or data block to store, or even can
It can cause the entanglement of business scenario.
Invention content
The purpose of this specification embodiment is to provide a kind of processing method of data, device and equipment, to realize to verification
It is worth identical, but the storage of the different data to be stored block of data content.
In order to solve the above technical problems, what this specification embodiment was realized in:
A kind of processing method for data that this specification embodiment provides, the method includes:
Data to be stored block is received, the first check value of the data to be stored block is obtained;
If there are the target data block that check value and first check value match in the data block of storage, and it is described
Data to be stored block is different from the target data block, then stores the data to be stored block, and is the data to be stored block
The distribution nonproductive poll mark different from the target data block.
Optionally, the target data block includes multiple and different sub-block, and each sub-block is provided with accordingly
Nonproductive poll mark;
The reception data to be stored block, after the first check value for obtaining the data to be stored block, the method is also
Including:
If judged there are the target data block that check value and first check value match in the data block of storage
Whether the data to be stored block and the target data each sub-block in the block are identical;
If the data to be stored block is identical as the target data the first sub-block in the block, described is exported
The nonproductive poll mark of one sub-block and first check value.
Optionally, the storage data to be stored block, and be data to be stored block distribution and the number of targets
According to the different nonproductive poll mark of block, including:
By the nonproductive poll mark of the data to be stored block and the data to be stored block and the target data block
It is stored in same data block set with the nonproductive poll mark of the target data block.
Optionally, the nonproductive poll is identified as character or character string.
Optionally, first check value is cryptographic Hash.
A kind of processing method for data that this specification embodiment provides, the method includes:
Data to be stored block is sent to server;
The storage result for the data to be stored block that the server is sent is received, the storage result is the service
Device in the data block of storage there are the target data block that the first check value of check value and the data to be stored block matches,
And it is generated in the case of the data to be stored block and the target data block difference.
Optionally, after the transmission data to be stored block to server, the method further includes:
Receive first check value and target nonproductive poll mark that the server is sent, the target nonproductive poll
It is identified as in the target data block that check value matches with first check value, with the data to be stored block identical first
The nonproductive poll of sub-block identifies;
First check value and target nonproductive poll mark are sent to risk control server.
A kind of processing unit for data that this specification embodiment provides, described device include:
Acquisition module obtains the first check value of the data to be stored block for receiving data to be stored block;
Data processing module, if for matching there are check value and first check value in the data block of storage
Target data block, and the data to be stored block is different from the target data block, then stores the data to be stored block, and be
The data to be stored block distributes the nonproductive poll mark different from the target data block.
Optionally, the target data block includes multiple and different sub-block, and each sub-block is provided with accordingly
Nonproductive poll mark, described device further includes:
Judgment module, if for there are the targets that check value and first check value match in the data block of storage
Data block then judges whether the data to be stored block and the target data each sub-block in the block are identical;
Output module, if being used for the data to be stored block and the target data the first sub-block phase in the block
Together, then the nonproductive poll mark of first sub-block and first check value are exported.
Optionally, the data processing module, for by the auxiliary of the data to be stored block and the data to be stored block
The nonproductive poll mark of inquiry mark and the target data block and the target data block is helped to be stored in same set of data blocks
In conjunction.
Optionally, the nonproductive poll is identified as character or character string.
Optionally, first check value is cryptographic Hash.
A kind of processing unit for data that this specification embodiment provides, described device include:
Data transmission blocks, for sending data to be stored block to server;
As a result receiving module, the storage result for receiving the data to be stored block that the server is sent are described
Storage result is that there are the first check values of check value and the data to be stored block in the data block of storage for the server
The target data block to match, and generated in the case of the data to be stored block and the target data block difference.
Optionally, described device further includes:
Information receiving module, for receiving first check value and target nonproductive poll mark that the server is sent
Know, the target nonproductive poll is identified as in the target data block that check value matches with first check value, is waited for described
Store the nonproductive poll mark of identical first sub-block of data block;
Information sending module, for first check value and target nonproductive poll mark to be sent to risk control service
Device.
A kind of processing equipment for data that this specification embodiment provides, the equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
It manages device and executes following operation:
Data to be stored block is received, the first check value of the data to be stored block is obtained;
If there are the target data block that check value and first check value match in the data block of storage, and it is described
Data to be stored block is different from the target data block, then stores the data to be stored block, and is the data to be stored block
The distribution nonproductive poll mark different from the target data block.
A kind of processing equipment for data that this specification embodiment provides, the equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
It manages device and executes following operation:
Data to be stored block is sent to server;
The storage result for the data to be stored block that the server is sent is received, the storage result is the service
Device in the data block of storage there are the target data block that the first check value of check value and the data to be stored block matches,
And it is generated in the case of the data to be stored block and the target data block difference.
The technical solution provided by above this specification embodiment is as it can be seen that this specification embodiment passes through reception number to be stored
According to block, and the first check value of data to be stored block is obtained, there are check values and the first check value phase in the data block of storage
Matched target data block, and when data to be stored block and target data block difference, data to be stored block is stored, and be to be stored
Data block is distributed the nonproductive poll different from target data block and is identified, in this way, for stored target data block with it is to be stored
For data block, when the check value of the two is identical, but when the data content difference of the two, data to be stored block can be stored, and
For data to be stored block different from target data block nonproductive poll marks are redistributed again, to further discriminate between check value
It is identical, two different data blocks of data content, to solve the data to be stored block of identical check value different data content,
The problems in server can not be stored, the entanglement for causing business scenario is avoided.
Description of the drawings
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments described in this specification, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of processing method embodiment of data of this specification;
Fig. 2 is the data interaction schematic diagram between each equipment in a kind of data handling procedure of this specification;
Fig. 3 is the processing method embodiment of this specification another kind data;
Fig. 4 is the processing method embodiment of another data of this specification;
Fig. 5 is a kind of processing unit embodiment of data of this specification;
Fig. 6 is the processing unit embodiment of this specification another kind data;
Fig. 7 is a kind of processing equipment embodiment of data of this specification;
Fig. 8 is the processing equipment embodiment of this specification another kind data.
Specific implementation mode
This specification embodiment provides a kind of processing method of data, device and equipment.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
The every other embodiment that those of ordinary skill in the art are obtained without creative efforts, should all belong to
The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of processing method of data, the executive agent of this method can be
Terminal device or server, terminal device therein can be such as mobile phone, tablet computer mobile terminal device, can also be as
The terminal devices such as personal computer, server can be an independent servers, can also be to be made of multiple servers
Server cluster.In order to improve the treatment effeciency of data in this specification embodiment, the executive agent of this method is with server
Example is described in detail, and the case where for terminal device, is referred to the specific processing execution of following servers, no longer goes to live in the household of one's in-laws on getting married herein
It states.This method can specifically include following steps:
In step s 102, data to be stored block is received, the first check value of data to be stored block is obtained.
Wherein, data to be stored block can be arbitrary data block, and data to be stored block therein can be by one or more
Data forms, for example, a data for registering certain website data block, may include user's registration in the data block
User name, password and E-mail address etc..First check value can be by verify value-based algorithm treat storage data it is in the block
The check value that data are calculated, verification value-based algorithm may include a variety of, such as parity arithmetic, BCC (Block
Check Character, block check code) exclusive or check method, longitudinal redundancy check algorithm, cyclic redundancy check algorithm and data pluck
Want algorithm (or hash algorithm) etc..
In force, server can receive miscellaneous equipment (terminal device of such as user or the server of trade company) transmission
Data to be stored block, various ways are can specifically include, for example, user, when being registered on website, user can pass through
Registration option is found in the homepage of the website, after finding, the registration option can be clicked, at this point, the terminal device of user
Enrollment page can be obtained, user can input the information such as user name, password in the enrollment page.It, can be with after the completion of input
The determination button in enrollment page is clicked, terminal device can obtain the information that user inputs in enrollment page, can will obtain
The information taken is sent to server as data to be stored block, and by the data to be stored block.
For another example as shown in Fig. 2, user after the completion of shopping, settles accounts to cashier, and user uses Payment Card (such as
Bank card or purchase card etc.) it is paid, businessman can input the information such as the card number of Payment Card of user into its cash register,
The cash register can store the above- mentioned information of input, and can be using the card number of the Payment Card as data to be stored block, by this
Data to be stored block is sent to the server at Payment Card center, and server can receive the data to be stored block.
Verification value-based algorithm can be provided in server, when server receives the data to be stored block of terminal device transmission
When, the check value (i.e. the first check value) of data to be stored block can be calculated by pre-set verification value-based algorithm.
It should be noted that server receives the processing mode for the data to be stored block that miscellaneous equipment is sent in addition to that can wrap
It includes outside above two mode, can also include a variety of achievable modes in practical applications, this specification embodiment does not do this
It limits.
In step S104, if there are the targets that check value and above-mentioned first check value match in the data block of storage
Data block, and above-mentioned data to be stored block is different from the target data block, then stores data to be stored block, and be data to be stored
Block distributes the nonproductive poll mark different from the target data block.
Wherein, nonproductive poll mark can be user determine when whether data to be stored block is stored data block institute according to
According to accessory ID, nonproductive poll mark may include many forms, and the concrete form of nonproductive poll mark can basis
Actual conditions are set, the specific digit strings being such as made of one or more numbers, such as 2 or 15, alternatively, can also be by
The character string that one or more letters are constituted, such as rl or rk, then alternatively, can also be the word that the combination of number and letter is formed
Symbol string, such as x1 or y2.With nonproductive poll mark come the accessory ID outside the check value that illustrates in this specification embodiment, in reality
In the application of border, nonproductive poll is identified there may also be other different representations, such as version number etc..
In force, check value be for detect between two or more data whether one of identical main means, lead to
Often, if the check value of two data or data block is identical, then it represents that the two data or data block are identical data or number
According to block, still, the case where check value will produce identical numerical value in a certain range, i.e., two different data blocks produce phase
Same check value.After server receives data to be stored block, the first check value of the data to be stored block can be calculated, this
When, the check value of pre-stored each data block can be obtained, can by the first check value respectively with the data block of storage
Check value is compared, if some data block or multiple data blocks (i.e. target data block) of the first check value and storage
Check value is identical, then based on known to the above, it is believed that and data to be stored block should be identical as target data block, at this point,
Even if data to be stored block is different from target data block, and the check value for both being only is identical, then server also will be unable to store
The data to be stored block, to cause the leakage of data or data block to store, and even if by certain methods by the data to be stored
It stores in server, finally, since there are multiple and different data blocks of same parity value in server, then server is being read
When taking the data block of first check value, the data block that possible different moments read is different, for example, server is read for the first time
The corresponding data block of the first check value be above-mentioned data to be stored block, the first check value that server is read again for the second time corresponds to
Data block be target data block etc..For this purpose, this specification embodiment provides a kind of optional processing mode, specifically may refer to
Following related contents:
Server is obtained get the first check value of data to be stored after, can be by the school of pre-stored each data block
It tests value to be compared with the first check value respectively, if the data block of storage includes that check value matches with the first check value
(such as identical) can carry respectively if the data block of storage includes check value target data identical with the first check value
The data content of data to be stored block and target data block is taken, it can be by the data content and target of the data to be stored block of extraction
The data content of data block is compared, can be true if data to be stored block is different from the data content of target data block
Determine check value having the same between data to be stored block and target data block, but data content and differ, then server
Data to be stored block can be stored into server, and a nonproductive poll mark is redistributed for data to be stored block.
Wherein, can be the different data with identical check value in order to have the different data block of identical check value to distinguish
Different nonproductive poll marks is respectively set in block, in this way, when server receives new data to be stored block again, Ke Yifen
It is not identified by check value and nonproductive poll, determines whether new data to be stored block is stored in the server, i.e., first leads to
Check value to be crossed to be inquired, if it is determined that the check value of new data to be stored block is identical as the check value for having stored data block,
Data content can then be compared, it, can be with if new data to be stored block is identical as some data block therein
It determines that new data to be stored block and the data block are the same data block, is otherwise different data blocks, can be again at this time
New data to be stored block distribution nonproductive poll mark.
For example, data to be stored block is " CD ", the first check value is " Xfdsafdsfdlasf ", and target data block is
" AB ", if the check value of the target data block " AB " stored in server is " Xfdsafdsfdlasf ", data to be stored block
For " CD ", the first check value that data to be stored block " CD " is calculated by above-mentioned verification value-based algorithm is " Xfdsafdsfdlasf ",
Then data to be stored block is identical as the check value of target data block, still, in the data of data to be stored block and target data block
Hold and differ, data to be stored block " CD " can be stored at this time, it is then possible to respectively data to be stored block and target data
Block distributes different nonproductive poll marks, such as the nonproductive poll mark (or version number etc.) of data to be stored block is 1, number of targets
Nonproductive poll mark (or version number etc.) according to block is 2 etc..
As shown in figure 3, this specification embodiment provides a kind of processing method of data, the executive agent of this method can be
Electronic equipment, the electronic equipment can be the equipment for asking to store certain data block to server, the electricity of specific such as cashier
Sub- equipment etc., electronic equipment therein can be such as mobile phone, tablet computer mobile terminal device, can also be such as individual calculus
The terminal devices such as machine.This method can specifically include following steps:
In step s 302, data to be stored block is sent to server.
In step s 304, the storage result for the data to be stored block that server is sent is received, storage result is server
There are the target data blocks that the first check value of check value and data to be stored block matches in the data block of storage, and wait depositing
It is generated in the case of storage data block and target data block difference.
The concrete processing procedure of above-mentioned steps S302 and step S304 may refer in above-mentioned steps S102 and step S104
Related content, details are not described herein.
This specification embodiment provides a kind of processing method of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
Embodiment two
As shown in figure 4, this specification embodiment provides a kind of processing method of data, the executive agent of this method can be with
For electronic equipment and server, which can be the equipment for asking to store certain data block to server, specifically such as
The electronic equipment etc. of cashier, electronic equipment therein can be such as mobile phone, tablet computer mobile terminal device, can also be
Such as personal computer terminal device, server can be an independent servers, can also be to be made of multiple servers
Server cluster.This method can specifically include following steps:
In step S402, server receives data to be stored block, obtains the first check value of data to be stored block.
Wherein, the first check value can be cryptographic Hash, be carried out so that check value is cryptographic Hash as an example in this specification embodiment
Explanation.
The concrete processing procedure of above-mentioned steps S402 may refer to it is above-mentioned be step S102 in embodiment one related content,
Details are not described herein.
In step s 404, if there are the target datas that check value and the first check value match in the data block of storage
Block, then server judge whether data to be stored block and target data each sub-block in the block identical.
In force, cryptographic Hash can be between detection data whether one of identical main means, in general, if
The cryptographic Hash of two data or data block is identical, then it represents that and the two data or data block are identical data or data block, but
It is that cryptographic Hash will produce collision, i.e. two different data blocks cryptographic Hash having the same in a certain range.This specification
In embodiment, the device of a processing data collision can be set, which can be used for solving coming due to cryptographic Hash collision belt
Traffic issues, which can be divided into two major parts, and respectively device is preposition and device processing, pre- during the device is preposition
It is first provided with a Data Storage Models, may include character string (i.e. data to be stored block), Hash in the Data Storage Models
Three projects such as value and conflict version (i.e. nonproductive poll identifies).
After server receives data to be stored block, the preposition cryptographic Hash that can calculate the data to be stored block of the device
(i.e. the first check value) can distinguish the first check value at this point it is possible to obtain the cryptographic Hash of pre-stored each data block
It is compared with the cryptographic Hash of the data block of storage, if the first check value is identical as the cryptographic Hash of the target data block of storage,
Then judge whether data to be stored block and target data each sub-block in the block are identical.
In step S406, if there are the target datas that check value and the first check value match in the data block of storage
Block, and data to be stored block is different from target data block, then server storage data to be stored block, and be data to be stored block point
It is identified with the nonproductive poll different from target data block.
Wherein, nonproductive poll mark can be character or character string, character therein can be number, letter, symbol or
Word etc., character string can be made of multiple characters, such as R12 or 5 etc..
In force, as shown in Fig. 2, after server receives data to be stored block, the device is preposition can to calculate this
The cryptographic Hash (i.e. the first check value) of data to be stored block, at this point it is possible to the cryptographic Hash of pre-stored each data block is obtained,
Cryptographic Hash that can be by the first check value respectively with the data block of storage compares, if the target of the first check value and storage
The cryptographic Hash of data block is identical, then can extract the data content of data to be stored block and target data block respectively, can will carry
The data content of data to be stored block and the data content of target data block taken is compared, if data to be stored block and mesh
The data content for marking data block is different, then can determine family's Hash having the same of data to be stored block and target data block
Value, but data content differs, then the device is preposition to store data to be stored block into server, and to wait depositing
Storage data block redistributes a nonproductive poll mark.Example then based on step S104 in above-described embodiment one, before the device
It is as shown in table 1 in setting.
Table 1
Above-mentioned processing procedure is mainly that device preamble part needs the processing executed, in practical applications, device processing unit
The operation of arbitary inquiry cryptographic Hash can be handled by dividing, specifically, when being passed to data to be stored block again, at the device
Reason part can detect in above-mentioned Data Storage Models whether be stored with colliding data, if it is not, executing above-mentioned processed
Journey, if so, then needing to extract the identical data block of all cryptographic Hash, which can do judgement one by one,
Judge whether value and the incoming data to be stored block again of character string therein are identical.
Above-mentioned storage data to be stored block, and the nonproductive poll mark different from target data block is distributed for data to be stored block
The processing of knowledge may include a variety of processing modes in practical applications, other than the realization method that above-mentioned related content provides, also
May include a variety of achievable modes, it specifically can be as follows:By the nonproductive poll mark of data to be stored block and data to be stored block
Know and the nonproductive poll of target data block and target data block mark is stored in same data block set.
Same data block set therein can be as shown in table 1, can be in this way, the inquiry for above-mentioned two data block
Pass through check value and the comprehensive determination of nonproductive poll mark respectively.
In step S408, if data to be stored block is identical as target data the first sub-block in the block, service
Device exports the nonproductive poll mark and the first check value of the first sub-block.
In force, as shown in Fig. 2, if determining data to be stored block and target data the first son in the block by comparison
Data block is identical, then can determine that data to be stored block is identical as the first sub-block, at this point it is possible to by the first sub-block
Check value and nonproductive poll mark identify (conflict version) as the check value of data to be stored block and nonproductive poll, and can be defeated
Go out the nonproductive poll mark and the first check value of the first sub-block.
In step S410, electronic equipment receives the storage result for the data to be stored block that server is sent, the storage knot
Fruit is that there are the number of targets that the first check value of check value and data to be stored block matches in the data block of storage for server
According to block, and generated in the case of data to be stored block and target data block difference.
In force, as shown in Fig. 2, server storage complete data to be stored block, and for data to be stored block distribution with
After the different nonproductive poll mark of target data block, the storage result of data to be stored block can be sent to electronic equipment, to carry
Show electronic equipment, storage is completed in the data to be stored block sent.
In order to control in time data risk that may be present in server, risk control server can be set,
The check value of the data to be stored block of server completion per treatment and nonproductive poll mark can be sent to wind by electronic equipment
Danger control server, in case corresponding administrative staff's management and control data store risk that may be present.Specifically it may refer to
The related content of following step S412 and step S414.
In step S412, electronic equipment receives the first check value that server is sent and target nonproductive poll mark, should
Target nonproductive poll is identified as in the target data block that check value and the first check value match, identical with data to be stored block
The nonproductive poll of first sub-block identifies.
In step S414, the first check value and target nonproductive poll mark are sent to risk control service by electronic equipment
Device.
In force, as shown in Fig. 2, electronic equipment can receive the first check value of server transmission and target auxiliary is looked into
Mark is ask, and air control information can be generated by the first check value and target nonproductive poll mark, the air control of generation can be believed
Breath is sent to risk control server.Even if the data that administrative staff can be understood in server by air control information store feelings
Condition.
This specification embodiment provides a kind of processing method of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
Embodiment three
It is the processing method for the data that this specification embodiment provides above, is based on same thinking, this specification is implemented
Example also provides a kind of processing unit of data, as shown in Figure 5.
The processing unit of the data includes:Acquisition module 501 and data processing module 502, wherein:
Acquisition module 501 obtains the first check value of the data to be stored block for receiving data to be stored block;
Data processing module 502, if for storage data block in there are check values and the first check value phase
The target data block matched, and the data to be stored block is different from the target data block, then stores the data to be stored block,
And the nonproductive poll mark different from the target data block is distributed for the data to be stored block.
Optionally, in this specification embodiment, the target data block includes multiple and different sub-block, per height
Data block is provided with corresponding nonproductive poll mark, and described device further includes:
Judgment module, if for there are the targets that check value and first check value match in the data block of storage
Data block then judges whether the data to be stored block and the target data each sub-block in the block are identical;
Output module, if being used for the data to be stored block and the target data the first sub-block phase in the block
Together, then the nonproductive poll mark of first sub-block and first check value are exported.
Optionally, in this specification embodiment, the data processing module 502, for by the data to be stored block and
The nonproductive poll of the data to be stored block identifies and the nonproductive poll mark of the target data block and the target data block
Knowledge is stored in same data block set.
Optionally, in this specification embodiment, the nonproductive poll is identified as character or character string.
Optionally, in this specification embodiment, first check value is cryptographic Hash.
This specification embodiment provides a kind of processing unit of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
Example IV
It is the processing method for the data that this specification embodiment provides above, is based on same thinking, this specification is implemented
Example also provides a kind of processing unit of data, as shown in Figure 6.
The processing unit of the data includes:Data transmission blocks 601 and result receiving module 602, wherein:
Data transmission blocks 601, for sending data to be stored block to server;
As a result receiving module 602, the storage result for receiving the data to be stored block that the server is sent, institute
It is that there are the first verifications of check value and the data to be stored block in the data block of storage for the server to state storage result
The target data block that value matches, and generated in the case of the data to be stored block and the target data block difference.
Optionally, in this specification embodiment, described device further includes:
Information receiving module, for receiving first check value and target nonproductive poll mark that the server is sent
Know, the target nonproductive poll is identified as in the target data block that check value matches with first check value, is waited for described
Store the nonproductive poll mark of identical first sub-block of data block;
Information sending module, for first check value and target nonproductive poll mark to be sent to risk control service
Device.
This specification embodiment provides a kind of processing unit of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
Embodiment five
Based on same thinking, this specification embodiment also provides a kind of processing equipment of data, as shown in Figure 7.
The processing equipment of the data can be the server etc. that above-described embodiment provides.
The processing equipment of data can generate bigger difference because configuration or performance are different, may include one or one
Above processor 701 and memory 702, can be stored in memory 702 one or more storage application programs or
Data.Wherein, memory 702 can be of short duration storage or persistent storage.The application program for being stored in memory 702 may include
One or more modules (diagram is not shown), each module may include the series of computation in the processing equipment to data
Machine executable instruction.Further, processor 701 could be provided as communicating with memory 702, in the processing equipment of data
Execute the series of computation machine executable instruction in memory 702.The processing equipment of data can also include one or one with
Upper power supply 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705,
One or more keyboards 706.
Specifically in the present embodiment, the processing equipments of data includes memory and one or more program,
Either more than one program is stored in memory and one or more than one program may include one or one for one of them
A with upper module, and each module may include the series of computation machine executable instruction in processing equipment to data, and pass through
Configuration is with either more than one processor executes this or more than one program includes for carrying out following calculate by one
Machine executable instruction:
Data to be stored block is received, the first check value of the data to be stored block is obtained;
If there are the target data block that check value and first check value match in the data block of storage, and it is described
Data to be stored block is different from the target data block, then stores the data to be stored block, and is the data to be stored block
The distribution nonproductive poll mark different from the target data block.
Optionally, the target data block includes multiple and different sub-block, and each sub-block is provided with accordingly
Nonproductive poll mark;
The reception data to be stored block after the first check value for obtaining the data to be stored block, further includes:
If judged there are the target data block that check value and first check value match in the data block of storage
Whether the data to be stored block and the target data each sub-block in the block are identical;
If the data to be stored block is identical as the target data the first sub-block in the block, described is exported
The nonproductive poll mark of one sub-block and first check value.
Optionally, the storage data to be stored block, and be data to be stored block distribution and the number of targets
According to the different nonproductive poll mark of block, including:
By the nonproductive poll mark of the data to be stored block and the data to be stored block and the target data block
It is stored in same data block set with the nonproductive poll mark of the target data block.
Optionally, the nonproductive poll is identified as character or character string.
Optionally, first check value is cryptographic Hash.
This specification embodiment provides a kind of processing equipment of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
Embodiment six
Based on same thinking, this specification embodiment also provides a kind of processing equipment of data, as shown in Figure 8.
The processing equipment of the data can be the electronic equipment etc. that above-described embodiment provides.
The processing equipment of data can generate bigger difference because configuration or performance are different, may include one or one
Above processor 801 and memory 802, can be stored in memory 802 one or more storage application programs or
Data.Wherein, memory 802 can be of short duration storage or persistent storage.The application program for being stored in memory 802 may include
One or more modules (diagram is not shown), each module may include the series of computation in the processing equipment to data
Machine executable instruction.Further, processor 801 could be provided as communicating with memory 802, in the processing equipment of data
Execute the series of computation machine executable instruction in memory 802.The processing equipment of data can also include one or one with
Upper power supply 803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805,
One or more keyboards 806.
Specifically in the present embodiment, the processing equipments of data includes memory and one or more program,
Either more than one program is stored in memory and one or more than one program may include one or one for one of them
A with upper module, and each module may include the series of computation machine executable instruction in processing equipment to data, and pass through
Configuration is with either more than one processor executes this or more than one program includes for carrying out following calculate by one
Machine executable instruction:
Data to be stored block is sent to server;
The storage result for the data to be stored block that the server is sent is received, the storage result is the service
Device in the data block of storage there are the target data block that the first check value of check value and the data to be stored block matches,
And it is generated in the case of the data to be stored block and the target data block difference.
Optionally, after the transmission data to be stored block to server, further include:
Receive first check value and target nonproductive poll mark that the server is sent, the target nonproductive poll
It is identified as in the target data block that check value matches with first check value, with the data to be stored block identical first
The nonproductive poll of sub-block identifies;
First check value and target nonproductive poll mark are sent to risk control server.
This specification embodiment provides a kind of processing equipment of data, by receiving data to be stored block, and obtains and waits depositing
The first check value of data block is stored up, there are the target datas that check value and the first check value match in the data block of storage
Block, and when data to be stored block and target data block difference, data to be stored block is stored, and be the distribution of data to be stored block and mesh
The different nonproductive poll mark of data block is marked, in this way, for stored target data block and data to be stored block, when two
The check value of person is identical, but when the data content difference of the two, can store data to be stored block, and again for data to be stored block
The nonproductive poll mark different from target data block is redistributed, to identical to further discriminate between check value, data content is not
Two same data blocks can not store service to solve the data to be stored block of identical check value different data content
The problems in device avoids the entanglement for causing business scenario.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of this specification can be provided as method, system or computer journey
Sequence product.Therefore, in terms of this specification can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes computer usable program code that this specification, which can be used in one or more,
The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
This specification is with reference to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided
Processor of the program instruction to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates use
In the dress for realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
It sets.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can be provided as method, system or computer program production
Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in this specification
The form of example.Moreover, this specification can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, object,
Component, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments,
By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module can
With in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all this specification spirit and principle within made by it is any
Modification, equivalent replacement, improvement etc., should be included within the right of this specification.