[go: up one dir, main page]

WO2019141128A1 - Data processing method, apparatus and device - Google Patents

Data processing method, apparatus and device Download PDF

Info

Publication number
WO2019141128A1
WO2019141128A1 PCT/CN2019/071145 CN2019071145W WO2019141128A1 WO 2019141128 A1 WO2019141128 A1 WO 2019141128A1 CN 2019071145 W CN2019071145 W CN 2019071145W WO 2019141128 A1 WO2019141128 A1 WO 2019141128A1
Authority
WO
WIPO (PCT)
Prior art keywords
data block
stored
check value
target
block
Prior art date
Application number
PCT/CN2019/071145
Other languages
French (fr)
Chinese (zh)
Inventor
温涛
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019141128A1 publication Critical patent/WO2019141128A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures

Definitions

  • the present specification relates to the field of computer technology, and in particular, to a data processing method, device and device.
  • the check value is one of the primary means for detecting whether two or more data are identical.
  • the check values of two data or data blocks are the same, it means that the two data or data blocks are the same data or data block, but the check value will produce the same value within a certain range, that is, two Different data blocks generate the same check value.
  • the server will not be able to store the data to be stored. Blocks, which cause leakage of data or data blocks, may even cause confusion in business scenarios.
  • the purpose of the embodiments of the present specification is to provide a data processing method, apparatus, and device, so as to implement storage of data blocks to be stored with the same check value but different data contents.
  • a method for processing data according to an embodiment of the present disclosure includes:
  • the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
  • the target data block includes a plurality of different sub-data blocks, and each of the sub-data blocks is configured with a corresponding auxiliary query identifier;
  • the method further includes: if there is a check value in the stored data block that matches the first check value Determining, by the target data block, whether the data block to be stored is the same as each of the target data blocks;
  • the storing the data block to be stored, and allocating the auxiliary query identifier different from the target data block to the to-be-stored data block includes:
  • the auxiliary query identifier is a character or a character string.
  • the first check value is a hash value.
  • a method for processing data according to an embodiment of the present disclosure includes:
  • a target data block is generated if the to-be-stored data block is different from the target data block.
  • the method further includes:
  • the server Receiving, by the server, the first check value and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the to-be-stored Auxiliary query identifier of the first sub-block of the same data block;
  • a data processing apparatus provided by an embodiment of the present specification, the apparatus includes:
  • An acquiring module configured to receive a data block to be stored, and obtain a first check value of the to-be-stored data block
  • a data processing module configured to store, if the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, A data block to be stored, and an auxiliary query identifier different from the target data block is allocated to the to-be-stored data block.
  • the target data block includes a plurality of different sub-blocks, each sub-block is provided with a corresponding auxiliary query identifier, and the device further includes:
  • a determining module configured to determine, if the stored data block has a target data block whose check value matches the first check value, determine the data block to be stored and each of the target data blocks Whether they are the same;
  • an output module configured to output an auxiliary query identifier of the first sub-block and the first check value if the to-be-stored data block is identical to the first sub-block in the target data block.
  • the data processing module is configured to store the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the auxiliary data identifier of the target data block and the target data block in the same In the data block collection.
  • the auxiliary query identifier is a character or a character string.
  • the first check value is a hash value.
  • a data processing apparatus provided by an embodiment of the present specification, the apparatus includes:
  • a data sending module configured to send a data block to be stored to the server
  • a result receiving module configured to receive a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value and a first block of the to-be-stored data block in the stored data block
  • the target data block whose check value matches, and the data block to be stored is generated differently from the target data block.
  • the device further includes:
  • An information receiving module configured to receive the first check value and the target auxiliary query identifier sent by the server, where the target auxiliary query identifier is a target data block whose check value matches the first check value And an auxiliary query identifier of the first sub-block of the same as the data block to be stored;
  • the information sending module is configured to send the first check value and the target auxiliary query identifier to the risk control server.
  • a data processing device provided by an embodiment of the present disclosure, the device includes:
  • a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations:
  • the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
  • a data processing device provided by an embodiment of the present disclosure, the device includes:
  • a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations:
  • a target data block is generated if the to-be-stored data block is different from the target data block.
  • the embodiment of the present disclosure receives the data block to be stored, and obtains the first check value of the data block to be stored, and the check value and the first school are stored in the stored data block.
  • the target data block matches the target data block, and the data block to be stored is different from the target data block
  • the data block to be stored is stored, and the auxiliary data identifier of the data block to be stored is different from the target data block, so that the stored data is stored.
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the data block to be stored is re-allocated and different from the target data block.
  • Auxiliary query identifier thereby further distinguishing two data blocks with the same check value and different data contents, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding the business The confusion of the scene.
  • FIG. 2 is a schematic diagram of data interaction between devices in a data processing process according to the present specification
  • FIG. 3 is a schematic diagram of another method for processing data according to the present specification.
  • Figure 5 is an embodiment of a data processing apparatus of the present specification
  • Figure 6 is an embodiment of another data processing apparatus of the present specification.
  • Figure 7 is a diagram of an embodiment of a data processing apparatus of the present specification.
  • Figure 8 is an embodiment of a processing device for another data of the present specification.
  • the embodiment of the present specification provides a data processing method, device and device.
  • the embodiment of the present disclosure provides a data processing method, where the execution body of the method may be a terminal device or a server, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, or may be, for example,
  • the server may be a stand-alone server or a server cluster composed of multiple servers.
  • the execution body of the method is described in detail by using a server as an example.
  • the specific processing of the following server may be performed, and details are not described herein.
  • the method may specifically include the following steps:
  • step S102 the data block to be stored is received, and the first check value of the data block to be stored is obtained.
  • the data block to be stored may be any data block, where the data block to be stored may be composed of one or more pieces of data, such as a data block for registering a piece of data of a website, and the data block may include a user registration. User name, password and email address.
  • the first check value may be a check value calculated by the check value algorithm to calculate data in the stored data block, and the check value algorithm may include multiple types, such as a parity check algorithm, a BCC (Block Check Character) Code verification) XOR check method, vertical redundancy check algorithm, cyclic redundancy check algorithm and data digest algorithm (or Hash algorithm).
  • the server may receive a data block to be stored sent by another device (such as a terminal device of the user or a server of the merchant, etc.), and may specifically include multiple manners, for example, when the user registers on the website, the user may pass the website.
  • the registration option is found in the home page. After the search is found, the registration option can be clicked.
  • the user's terminal device can obtain the registration page, and the user can input the user name and password in the registration page.
  • the OK button in the registration page can be clicked, and the terminal device can obtain the information input by the user in the registration page, and can use the obtained information as a data block to be stored, and send the to-be-stored data block to the server.
  • the cash register device may store the input information, and may use the card number of the payment card as a data block to be stored, and send the to-be-stored data block to a server of the payment card center, and the server may receive the data block to be stored.
  • a check value algorithm may be set in the server.
  • the check value of the data block to be stored may be calculated by using a preset check value algorithm (ie, the first check value). .
  • processing manner of the data block to be stored by the server to be sent by other devices may include a plurality of achievable manners in addition to the above two methods, which is not limited in the embodiment of the present specification.
  • step S104 if there is a target data block in the stored data block that matches the first check value, and the data block to be stored is different from the target data block, the data block to be stored is stored, and A secondary query identifier that is different from the target data block is allocated to the data block to be stored.
  • the auxiliary query identifier may be an auxiliary identifier according to whether the data block to be stored is a stored data block, and the auxiliary query identifier may include multiple representation forms, and the specific form of the auxiliary query identifier may be set according to actual conditions.
  • a numeric character string composed of one or more digits, such as 2 or 15, or the like, or a string of one or more letters, such as rl or rk, or alternatively, may be a number and A string formed by a combination of letters, such as x1 or y2.
  • the auxiliary identifiers other than the check value specified by the auxiliary query identifier may be used in the actual application, and the auxiliary query identifier may have other different representation forms, such as a version number.
  • the check value is one of the primary means for detecting whether two or more data are identical. Generally, if the check values of two data or data blocks are the same, the two data or data are represented. Blocks are the same data or data block, but the check value will produce the same value within a certain range, that is, two different data blocks produce the same check value.
  • the server receives the data block to be stored, the first check value of the data block to be stored may be calculated. At this time, the check value of each data block stored in advance may be obtained, and the first check value may be separately stored.
  • the server Comparing the check values of the data blocks, if the first check value is the same as the check value of one of the stored data blocks or the plurality of data blocks (ie, the target data block), based on the above content, it can be considered that the check value is to be stored.
  • the data block should be the same as the target data block. In this case, even if the data block to be stored is different from the target data block, but only the check values of the two are the same, the server will not be able to store the data block to be stored, thereby causing data or The data block is stored in a leak, and even if the data to be stored is stored in the server by some method, finally, since the server has a plurality of different data blocks of the same check value, the server reads the first check.
  • the data block of the value When the data block of the value is used, the data blocks that may be read at different times are different. For example, the data block corresponding to the first check value read by the server for the first time is the data block to be stored. A first check value corresponding to the data block is read for the second time the target data block and the like.
  • the embodiment of the present specification provides an optional processing manner. For details, refer to the following related content:
  • the check value of each data block stored in advance may be compared with the first check value, respectively, if the stored data block includes the check value and the first If the stored data block includes the same target data as the first check value, the data content of the data block to be stored and the target data block may be respectively extracted, and The extracted data content of the data block to be stored is compared with the data content of the target data block. If the data content of the data block to be stored is different from the data content of the target data block, it may be determined that the data block to be stored has the same school as the target data block.
  • the server can store the data block to be stored in the server and reallocate an auxiliary query identifier for the data block to be stored.
  • different auxiliary query identifiers may be set for different data blocks having the same check value, so that when the server receives a new data block to be stored again, The checksum value and the auxiliary query identifier may be respectively used to determine whether the new data block to be stored is already stored in the server, that is, the check value is first used for querying, and if the check value and the stored data of the new data block to be stored are determined. If the check value of the block is the same, the data content can be compared.
  • the new data block to be stored is the same as one of the data blocks, it can be determined that the new data block to be stored is the same data block as the data block. Otherwise, it is a different data block, and the auxiliary query identifier can be assigned to the new data block to be stored.
  • the data block to be stored is “CD”
  • the first check value is “Xfdsafdsfdlasf”
  • the target data block is “AB”. If the check value of the target data block “AB” stored in the server is “Xfdsafdsfdlasf”, wait The storage data block is “CD”, and the first check value of the to-be-stored data block “CD” is calculated by the above check value algorithm to be “Xfdsafdsfdlasf”, and the to-be-stored data block has the same check value as the target data block, however, The data content of the data block to be stored is not the same as the data content of the target data block.
  • the data block “CD” to be stored may be stored, and then the auxiliary data identifier and the target data block may be respectively assigned different auxiliary query identifiers, for example, to be stored.
  • the auxiliary query identifier (or version number, etc.) of the data block is 1, and the auxiliary query identifier (or version number, etc.) of the target data block is 2 or the like.
  • the embodiment of the present disclosure provides a method for processing data.
  • the execution entity of the method may be an electronic device, and the electronic device may be a device for requesting storage of a certain data block from a server, such as a checkout counter.
  • the electronic device or the like may be a mobile terminal device such as a mobile phone or a tablet computer, or may be a terminal device such as a personal computer.
  • the method may specifically include the following steps:
  • step S302 a data block to be stored is transmitted to the server.
  • step S304 the storage result of the to-be-stored data block sent by the server is received, and the storage result is that the server has a target data block in the stored data block that has a check value matching the first check value of the to-be-stored data block, and Generated when the data block to be stored is different from the target data block.
  • the embodiment of the present specification provides a data processing method, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • the embodiment of the present disclosure provides a data processing method, where the execution body of the method may be an electronic device and a server, where the electronic device may be a device for requesting storage of a certain data block from a server, such as The electronic device of the cash register, etc., wherein the electronic device may be a mobile terminal device such as a mobile phone or a tablet computer, or may be a terminal device such as a personal computer, and the server may be a stand-alone server or a plurality of servers. Server cluster.
  • the method may specifically include the following steps:
  • step S402 the server receives the data block to be stored, and acquires a first check value of the data block to be stored.
  • the first check value may be a hash value, and the check value is a hash value in the embodiment of the present specification.
  • step S402 For the specific processing of the foregoing step S402, refer to the related content of step S102 in the first embodiment, and details are not described herein again.
  • step S404 if there is a target data block in which the check value matches the first check value in the stored data block, the server determines whether the data block to be stored is identical to each of the target data blocks.
  • the hash value may be one of the main means for detecting whether the data are identical. Generally, if the hash values of the two data or data blocks are the same, it means that the two data or data blocks are the same. Data or data blocks, however, hashes will collide within a certain range, ie two different data blocks have the same hash value.
  • a device for processing data conflict may be set, and the device may be used to solve a service problem caused by a hash value collision.
  • the device may be divided into two main parts, namely, device pre-processing and device processing.
  • a data storage model is preset in the device front, and the data storage model may include three items: a character string (ie, a data block to be stored), a hash value, and a conflicting version (ie, an auxiliary query identifier).
  • the device pre-position can calculate a hash value (ie, the first check value) of the data block to be stored, and at this time, obtain a hash value of each data block stored in advance.
  • the first check value may be compared with the hash value of the stored data block respectively, and if the first check value is the same as the hash value of the stored target data block, determining the data block to be stored and the target data block Whether each sub-block is the same.
  • step S406 if there is a target data block in the stored data block that matches the first check value, and the data block to be stored is different from the target data block, the server stores the data block to be stored, and waits for The storage data block is assigned an auxiliary query identifier that is different from the target data block.
  • the auxiliary query identifier may be a character or a string, and the characters may be numbers, letters, symbols, or characters, and the string may be composed of multiple characters, such as R12 or 5.
  • the device pre-determine can calculate a hash value (ie, a first check value) of the to-be-stored data block, and at this time, the pre-acquisition can be obtained.
  • a hash value ie, a first check value
  • the stored hash value of each data block may compare the first check value with the hash value of the stored data block respectively, and if the first check value is the same as the hash value of the stored target data block, Extracting the data content of the data block to be stored and the target data block respectively, and comparing the data content of the extracted data block to be stored with the data content of the target data block, if the data content of the data block to be stored is different from the data content of the target data block, It can be determined that the data block to be stored has the same hash value as the home of the target data block, but the data content is different, the device pre-position can store the data block to be stored into the server, and reallocate a data block to be stored. Auxiliary query ID. Then, based on the example of step S104 in the first embodiment, the device front is as shown in Table 1.
  • the above processing process is mainly a process that needs to be performed in the front part of the device.
  • the device processing part can process any operation of querying the hash value, specifically, when re-introducing the data block to be stored, the device processes The part can detect whether the conflict data is stored in the data storage model. If not, execute the above processing process. If yes, all the data blocks with the same hash value need to be extracted, and the processing part of the device will judge one by one. , to determine whether the value of the string is the same as re-incoming the data block to be stored.
  • the foregoing process of storing the data block to be stored and assigning the auxiliary query identifier different from the target data block to the data block to be stored may include multiple processing manners in the actual application, and may include, in addition to the implementation manner provided by the related content,
  • a plurality of implementable manners may be specifically as follows: storing the data block to be stored and the auxiliary query identifier of the data block to be stored, and the auxiliary query identifier of the target data block and the target data block in the same data block set.
  • the same data block set can be as shown in Table 1, so that the query for the above two data blocks can be comprehensively determined by the check value and the auxiliary query identifier respectively.
  • step S408 if the data block to be stored is the same as the first sub data block in the target data block, the server outputs the auxiliary query identifier and the first check value of the first sub data block.
  • the data block to be stored if it is determined by comparison that the data block to be stored is the same as the first sub data block in the target data block, it may be determined that the data block to be stored is the same as the first sub data block, and in this case,
  • the check value and the auxiliary query identifier of the first sub-block are used as the check value of the data block to be stored and the auxiliary query identifier (collided version), and the auxiliary query identifier and the first check value of the first sub-block may be output. .
  • step S410 the electronic device receives a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has the target data in the stored data block that the check value matches the first check value of the to-be-stored data block.
  • a block is generated if the data block to be stored is different from the target data block.
  • the server stores the data block to be stored, and allocates the auxiliary query identifier different from the target data block for the data block to be stored
  • the storage result of the data block to be stored may be sent to the electronic device, The electronic device is prompted to store the data block to be stored.
  • the risk control server may be set, and the electronic device may send the check value of the to-be-stored data block and the auxiliary query identifier processed by the server to the risk control server for preparation.
  • Managers manage and control the risks that may exist in data storage. For details, refer to the related contents of step S412 and step S414 described below.
  • step S412 the electronic device receives the first check value sent by the server and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the data block to be stored.
  • step S414 the electronic device transmits the first check value and the target auxiliary query identifier to the risk control server.
  • the electronic device may receive the first check value and the target auxiliary query identifier sent by the server, and generate wind control information by using the first check value and the target auxiliary query identifier, which may be generated.
  • the wind control information is sent to the risk control server. Managers can use wind control information to understand even the data storage conditions in the server.
  • the embodiment of the present specification provides a data processing method, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • the embodiment of the present specification further provides a data processing device, as shown in FIG. 5 .
  • the processing device of the data includes: an obtaining module 501 and a data processing module 502, wherein:
  • the obtaining module 501 is configured to receive a data block to be stored, and obtain a first check value of the to-be-stored data block.
  • the data processing module 502 is configured to: if there is a target data block in the stored data block that matches the first check value, and the to-be-stored data block is different from the target data block, the storage unit The storage data block is referred to, and the auxiliary data identifier different from the target data block is allocated to the to-be-stored data block.
  • the target data block includes a plurality of different sub-blocks, each sub-block is provided with a corresponding auxiliary query identifier, and the device further includes:
  • a determining module configured to determine, if the stored data block has a target data block whose check value matches the first check value, determine the data block to be stored and each of the target data blocks Whether they are the same;
  • an output module configured to output an auxiliary query identifier of the first sub-block and the first check value if the to-be-stored data block is identical to the first sub-block in the target data block.
  • the data processing module 502 is configured to: the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the target data block.
  • the secondary query IDs are stored in the same data block set.
  • the auxiliary query identifier is a character or a character string.
  • the first check value is a hash value.
  • the embodiment of the present specification provides a data processing apparatus, by receiving a data block to be stored, and acquiring a first check value of a data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • the embodiment of the present specification further provides a data processing apparatus, as shown in FIG. 6.
  • the data processing device includes: a data sending module 601 and a result receiving module 602, wherein:
  • a data sending module 601, configured to send a data block to be stored to the server
  • a result receiving module 602 configured to receive a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value and a data block to be stored in the stored data block.
  • a target data block whose check value matches, and the data block to be stored is generated differently from the target data block.
  • the device further includes:
  • An information receiving module configured to receive the first check value and the target auxiliary query identifier sent by the server, where the target auxiliary query identifier is a target data block whose check value matches the first check value And an auxiliary query identifier of the first sub-block of the same as the data block to be stored;
  • the information sending module is configured to send the first check value and the target auxiliary query identifier to the risk control server.
  • the embodiment of the present specification provides a data processing apparatus, by receiving a data block to be stored, and acquiring a first check value of a data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • the embodiment of the present specification further provides a data processing device, as shown in FIG. 7.
  • the processing device of the data may be a server or the like provided by the above embodiment.
  • the processing device of the data may vary considerably depending on configuration or performance, and may include one or more processors 701 and memory 702 in which one or more storage applications or data may be stored.
  • the memory 702 can be short-term storage or persistent storage.
  • An application stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a processing device for data.
  • processor 701 can be arranged to communicate with memory 702 to execute a series of computer executable instructions in memory 702 on a processing device of data.
  • the data processing device may also include one or more power sources 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706.
  • the data processing device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules can include a series of computer executable instructions in a processing device for data, and are configured to be executed by one or more processors.
  • the one or more programs are included for performing the following computer executable instructions:
  • the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
  • the target data block includes a plurality of different sub-data blocks, and each of the sub-data blocks is configured with a corresponding auxiliary query identifier;
  • the method further includes:
  • the storing the data block to be stored, and allocating the auxiliary query identifier different from the target data block to the to-be-stored data block includes:
  • the auxiliary query identifier is a character or a character string.
  • the first check value is a hash value.
  • the embodiment of the present specification provides a data processing device, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • the embodiment of the present specification further provides a data processing device, as shown in FIG. 8.
  • the processing device of the data may be an electronic device or the like provided by the above embodiment.
  • the processing device of the data may vary considerably depending on configuration or performance, and may include one or more processors 801 and memory 802 in which one or more storage applications or data may be stored.
  • the memory 802 can be short-lived or persistent.
  • An application stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a processing device for data.
  • processor 801 can be configured to communicate with memory 802 to execute a series of computer executable instructions in memory 802 on a processing device of data.
  • the data processing device may also include one or more power sources 803, one or more wired or wireless network interfaces 804, one or more input and output interfaces 805, one or more keyboards 806.
  • the data processing device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules can include a series of computer executable instructions in a processing device for data, and are configured to be executed by one or more processors.
  • the one or more programs are included for performing the following computer executable instructions:
  • a target data block is generated if the to-be-stored data block is different from the target data block.
  • the method further includes:
  • the server Receiving, by the server, the first check value and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the to-be-stored Auxiliary query identifier of the first sub-block of the same data block;
  • the embodiment of the present specification provides a data processing device, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value.
  • a target data block and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and
  • the data block to be stored when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor.
  • computer readable program code eg, software or firmware
  • examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip The PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding.
  • Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component.
  • a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
  • the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer.
  • the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • embodiments of the present specification can be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present specification can be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a data processing method, apparatus and device. The method comprises: receiving a data block to be stored, and acquiring a first check value of the data block to be stored; and if, in stored data blocks, there is a target data block having a check value matching the first check value, and the data block to be stored is different from the target data block, then storing the data block to be stored, and allocating an assisted query identifier different from that of the target data block to the data block to be stored. By means of the embodiments of the present description, when a stored target data block and a data block to be stored have the same check value but different data content, the data block to be stored can be stored, and an assisted query identifier different from that of the target data block is re-allocated to the data block to be stored so as to distinguish the two data blocks having the same check value but different data content, such that the problem that a data block to be stored having the same check value but different data content cannot be stored in a server, thereby preventing the disordering of service scenarios.

Description

一种数据的处理方法、装置及设备Data processing method, device and device 技术领域Technical field
本说明书涉及计算机技术领域,尤其涉及一种数据的处理方法、装置及设备。The present specification relates to the field of computer technology, and in particular, to a data processing method, device and device.
背景技术Background technique
随着网络技术和终端技术的不断发展,数据传输和数据存储已经成为的数据量越来越大。通常,数据存储的过程中,为了避免数据的重复存储,通常需要通过某些检测手段来判断待存储的数据(或数据块)是否已经存储。校验值是用于检测两个或多个数据之间是否相同的主要手段之一。With the continuous development of network technology and terminal technology, data transmission and data storage have become more and more data. Generally, in the process of data storage, in order to avoid repeated storage of data, it is usually necessary to determine whether the data (or data block) to be stored has been stored by some detection means. The check value is one of the primary means for detecting whether two or more data are identical.
通常,如果两个数据或数据块的校验值相同,则表示这两个数据或数据块为相同的数据或数据块,但是,校验值在一定的范围内会产生相同数值,即两个不同的数据块产生了相同的校验值,此时,即使待存储数据块与已存储的目标数据块不同,而仅是两者的校验值相同,则服务器也将无法存储该待存储数据块,从而造成数据或数据块的漏存储,甚至可能会造成业务场景的错乱。Generally, if the check values of two data or data blocks are the same, it means that the two data or data blocks are the same data or data block, but the check value will produce the same value within a certain range, that is, two Different data blocks generate the same check value. At this time, even if the data block to be stored is different from the stored target data block, but only the check values of the two are the same, the server will not be able to store the data to be stored. Blocks, which cause leakage of data or data blocks, may even cause confusion in business scenarios.
发明内容Summary of the invention
本说明书实施例的目的是提供一种数据的处理方法、装置及设备,以实现对校验值相同,但数据内容不同的待存储数据块的存储。The purpose of the embodiments of the present specification is to provide a data processing method, apparatus, and device, so as to implement storage of data blocks to be stored with the same check value but different data contents.
为解决上述技术问题,本说明书实施例是这样实现的:In order to solve the above technical problem, the embodiment of the present specification is implemented as follows:
本说明书实施例提供的一种数据的处理方法,所述方法包括:A method for processing data according to an embodiment of the present disclosure, the method includes:
接收待存储数据块,获取所述待存储数据块的第一校验值;Receiving a data block to be stored, and acquiring a first check value of the to-be-stored data block;
如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。If the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
可选地,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅助查询标识;Optionally, the target data block includes a plurality of different sub-data blocks, and each of the sub-data blocks is configured with a corresponding auxiliary query identifier;
所述接收待存储数据块,获取所述待存储数据块的第一校验值之后,所述方法还包括: 如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;After the receiving the data block to be stored and acquiring the first check value of the data block to be stored, the method further includes: if there is a check value in the stored data block that matches the first check value Determining, by the target data block, whether the data block to be stored is the same as each of the target data blocks;
如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And if the to-be-stored data block is the same as the first sub-block in the target data block, outputting the auxiliary query identifier of the first sub-block and the first check value.
可选地,所述存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识,包括:Optionally, the storing the data block to be stored, and allocating the auxiliary query identifier different from the target data block to the to-be-stored data block, includes:
将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。And storing the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the auxiliary query identifier of the target data block in the same data block set.
可选地,所述辅助查询标识为字符或字符串。Optionally, the auxiliary query identifier is a character or a character string.
可选地,所述第一校验值为哈希值。Optionally, the first check value is a hash value.
本说明书实施例提供的一种数据的处理方法,所述方法包括:A method for processing data according to an embodiment of the present disclosure, the method includes:
向服务器发送待存储数据块;Sending a data block to be stored to the server;
接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。Receiving a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value in the stored data block that matches a first check value of the to-be-stored data block. A target data block is generated if the to-be-stored data block is different from the target data block.
可选地,所述向服务器发送待存储数据块之后,所述方法还包括:Optionally, after the sending the data block to be stored to the server, the method further includes:
接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;Receiving, by the server, the first check value and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the to-be-stored Auxiliary query identifier of the first sub-block of the same data block;
将所述第一校验值和目标辅助查询标识发送给风险控制服务器。Sending the first check value and the target auxiliary query identifier to the risk control server.
本说明书实施例提供的一种数据的处理装置,所述装置包括:A data processing apparatus provided by an embodiment of the present specification, the apparatus includes:
获取模块,用于接收待存储数据块,获取所述待存储数据块的第一校验值;An acquiring module, configured to receive a data block to be stored, and obtain a first check value of the to-be-stored data block;
数据处理模块,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。a data processing module, configured to store, if the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, A data block to be stored, and an auxiliary query identifier different from the target data block is allocated to the to-be-stored data block.
可选地,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅 助查询标识,所述装置还包括:Optionally, the target data block includes a plurality of different sub-blocks, each sub-block is provided with a corresponding auxiliary query identifier, and the device further includes:
判断模块,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;a determining module, configured to determine, if the stored data block has a target data block whose check value matches the first check value, determine the data block to be stored and each of the target data blocks Whether they are the same;
输出模块,用于如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And an output module, configured to output an auxiliary query identifier of the first sub-block and the first check value if the to-be-stored data block is identical to the first sub-block in the target data block.
可选地,所述数据处理模块,用于将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。Optionally, the data processing module is configured to store the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the auxiliary data identifier of the target data block and the target data block in the same In the data block collection.
可选地,所述辅助查询标识为字符或字符串。Optionally, the auxiliary query identifier is a character or a character string.
可选地,所述第一校验值为哈希值。Optionally, the first check value is a hash value.
本说明书实施例提供的一种数据的处理装置,所述装置包括:A data processing apparatus provided by an embodiment of the present specification, the apparatus includes:
数据发送模块,用于向服务器发送待存储数据块;a data sending module, configured to send a data block to be stored to the server;
结果接收模块,用于接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。a result receiving module, configured to receive a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value and a first block of the to-be-stored data block in the stored data block The target data block whose check value matches, and the data block to be stored is generated differently from the target data block.
可选地,所述装置还包括:Optionally, the device further includes:
信息接收模块,用于接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;An information receiving module, configured to receive the first check value and the target auxiliary query identifier sent by the server, where the target auxiliary query identifier is a target data block whose check value matches the first check value And an auxiliary query identifier of the first sub-block of the same as the data block to be stored;
信息发送模块,用于将所述第一校验值和目标辅助查询标识发送给风险控制服务器。The information sending module is configured to send the first check value and the target auxiliary query identifier to the risk control server.
本说明书实施例提供的一种数据的处理设备,所述设备包括:A data processing device provided by an embodiment of the present disclosure, the device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations:
接收待存储数据块,获取所述待存储数据块的第一校验值;Receiving a data block to be stored, and acquiring a first check value of the to-be-stored data block;
如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配 与所述目标数据块不同的辅助查询标识。If the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
本说明书实施例提供的一种数据的处理设备,所述设备包括:A data processing device provided by an embodiment of the present disclosure, the device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations:
向服务器发送待存储数据块;Sending a data block to be stored to the server;
接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。Receiving a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value in the stored data block that matches a first check value of the to-be-stored data block. A target data block is generated if the to-be-stored data block is different from the target data block.
由以上本说明书实施例提供的技术方案可见,本说明书实施例通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。As can be seen from the technical solutions provided in the foregoing embodiments, the embodiment of the present disclosure receives the data block to be stored, and obtains the first check value of the data block to be stored, and the check value and the first school are stored in the stored data block. When the target data block matches the target data block, and the data block to be stored is different from the target data block, the data block to be stored is stored, and the auxiliary data identifier of the data block to be stored is different from the target data block, so that the stored data is stored. For the target data block and the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the data block to be stored is re-allocated and different from the target data block. Auxiliary query identifier, thereby further distinguishing two data blocks with the same check value and different data contents, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding the business The confusion of the scene.
附图说明DRAWINGS
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present specification, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本说明书一种数据的处理方法实施例;1 is an embodiment of a method for processing data according to the present specification;
图2为本说明书一种数据处理过程中各设备之间的数据交互示意图;2 is a schematic diagram of data interaction between devices in a data processing process according to the present specification;
图3为本说明书另一种数据的处理方法实施例;FIG. 3 is a schematic diagram of another method for processing data according to the present specification; FIG.
图4为本说明书又一种数据的处理方法实施例;4 is another embodiment of a method for processing data according to the present specification;
图5为本说明书一种数据的处理装置实施例;Figure 5 is an embodiment of a data processing apparatus of the present specification;
图6为本说明书另一种数据的处理装置实施例;Figure 6 is an embodiment of another data processing apparatus of the present specification;
图7为本说明书一种数据的处理设备实施例;Figure 7 is a diagram of an embodiment of a data processing apparatus of the present specification;
图8为本说明书另一种数据的处理设备实施例。Figure 8 is an embodiment of a processing device for another data of the present specification.
具体实施方式Detailed ways
本说明书实施例提供一种数据的处理方法、装置及设备。The embodiment of the present specification provides a data processing method, device and device.
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the specification. The embodiments are only a part of the embodiments of the specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without departing from the scope of the invention shall fall within the scope of the present disclosure.
实施例一Embodiment 1
如图1所示,本说明书实施例提供一种数据的处理方法,该方法的执行主体可以为终端设备或服务器,其中的终端设备可以是如手机、平板电脑等移动终端设备,还可以是如个人计算机等终端设备,服务器可以是独立的一个服务器,也可以是由多个服务器组成的服务器集群。本说明书实施例中为了提高数据的处理效率,该方法的执行主体以服务器为例进行详细说明,对于终端设备的情况,可以参照下述服务器的具体处理执行,在此不再赘述。该方法具体可以包括以下步骤:As shown in FIG. 1 , the embodiment of the present disclosure provides a data processing method, where the execution body of the method may be a terminal device or a server, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, or may be, for example, For a terminal device such as a personal computer, the server may be a stand-alone server or a server cluster composed of multiple servers. In the embodiment of the present specification, in order to improve the processing efficiency of the data, the execution body of the method is described in detail by using a server as an example. For the case of the terminal device, the specific processing of the following server may be performed, and details are not described herein. The method may specifically include the following steps:
在步骤S102中,接收待存储数据块,获取待存储数据块的第一校验值。In step S102, the data block to be stored is received, and the first check value of the data block to be stored is obtained.
其中,待存储数据块可以是任意数据块,其中的待存储数据块可以是由一条或多条数据组成,例如用于注册某网站的一条数据的数据块,该数据块中可以包括用户注册的用户名、密码和电子邮箱地址等。第一校验值可以是通过校验值算法对待存储数据块中的数据进行计算得到的校验值,校验值算法可以包括多种,例如奇偶校验算法、BCC(Block Check Character,块校验码)异或校验法、纵向冗余校验算法、循环冗余校验算法和数据摘要算法(或Hash算法)等。The data block to be stored may be any data block, where the data block to be stored may be composed of one or more pieces of data, such as a data block for registering a piece of data of a website, and the data block may include a user registration. User name, password and email address. The first check value may be a check value calculated by the check value algorithm to calculate data in the stored data block, and the check value algorithm may include multiple types, such as a parity check algorithm, a BCC (Block Check Character) Code verification) XOR check method, vertical redundancy check algorithm, cyclic redundancy check algorithm and data digest algorithm (or Hash algorithm).
在实施中,服务器可以接收其它设备(如用户的终端设备或商户的服务器等)发送的待存储数据块,具体可以包括多种方式,例如,用户在网站上进行注册时,用户可以通过 该网站的首页中查找到注册选项,查找到后,可以点击该注册选项,此时,用户的终端设备可以获取注册页面,用户可以在该注册页面中输入用户名、密码等信息。输入完成后,可以点击注册页面中的确定按键,终端设备可以获取用户在注册页面中输入的信息,可以将获取的信息作为待存储数据块,并将该待存储数据块发送给服务器。In an implementation, the server may receive a data block to be stored sent by another device (such as a terminal device of the user or a server of the merchant, etc.), and may specifically include multiple manners, for example, when the user registers on the website, the user may pass the website. The registration option is found in the home page. After the search is found, the registration option can be clicked. At this time, the user's terminal device can obtain the registration page, and the user can input the user name and password in the registration page. After the input is completed, the OK button in the registration page can be clicked, and the terminal device can obtain the information input by the user in the registration page, and can use the obtained information as a data block to be stored, and send the to-be-stored data block to the server.
再例如,如图2所示,用户在购物完成后,到收银台结账,并且用户使用支付卡(如银行卡或购物卡等)进行支付,商家可以向其收银设备中输入用户的支付卡的卡号等信息,该收银设备可以存储输入的上述信息,并可以将该支付卡的卡号作为待存储数据块,将该待存储数据块发送给支付卡中心的服务器,服务器可以接收该待存储数据块。For another example, as shown in FIG. 2, after the user completes the purchase, the user checks out at the cashier, and the user pays with a payment card (such as a bank card or a shopping card, etc.), and the merchant can input the user's payment card into the cash register device. The card number and the like, the cash register device may store the input information, and may use the card number of the payment card as a data block to be stored, and send the to-be-stored data block to a server of the payment card center, and the server may receive the data block to be stored. .
服务器中可以设置有校验值算法,当服务器接收到终端设备发送的待存储数据块时,可以通过预先设置的校验值算法计算待存储数据块的校验值(即第一校验值)。A check value algorithm may be set in the server. When the server receives the data block to be stored sent by the terminal device, the check value of the data block to be stored may be calculated by using a preset check value algorithm (ie, the first check value). .
需要说明的是,服务器接收其它设备发送的待存储数据块的处理方式除了可以包括上述两种方式外,在实际应用中还可以包括多种可实现方式,本说明书实施例对此不做限定。It should be noted that the processing manner of the data block to be stored by the server to be sent by other devices may include a plurality of achievable manners in addition to the above two methods, which is not limited in the embodiment of the present specification.
在步骤S104中,如果存储的数据块中存在校验值与上述第一校验值相匹配的目标数据块,且上述待存储数据块与该目标数据块不同,则存储待存储数据块,并为待存储数据块分配与该目标数据块不同的辅助查询标识。In step S104, if there is a target data block in the stored data block that matches the first check value, and the data block to be stored is different from the target data block, the data block to be stored is stored, and A secondary query identifier that is different from the target data block is allocated to the data block to be stored.
其中,辅助查询标识可以是用户确定待存储数据块是否是已存储的数据块时所依据的辅助标识,辅助查询标识可以包括多种表现形式,辅助查询标识的具体形式可以根据实际情况设定,具体如由一个或多个数字构成的数字字符串,如2或15等,或者,还可以是由一个或多个字母构成的字符串,如rl或rk等,再或者,还可以是数字与字母的组合形成的字符串,如x1或y2等。本说明书实施例中以辅助查询标识来说明的校验值外的辅助标识,在实际应用中,辅助查询标识还可以存在其它不同的表示形式,例如版本号等。The auxiliary query identifier may be an auxiliary identifier according to whether the data block to be stored is a stored data block, and the auxiliary query identifier may include multiple representation forms, and the specific form of the auxiliary query identifier may be set according to actual conditions. Specifically, a numeric character string composed of one or more digits, such as 2 or 15, or the like, or a string of one or more letters, such as rl or rk, or alternatively, may be a number and A string formed by a combination of letters, such as x1 or y2. In the embodiment of the present specification, the auxiliary identifiers other than the check value specified by the auxiliary query identifier may be used in the actual application, and the auxiliary query identifier may have other different representation forms, such as a version number.
在实施中,校验值是用于检测两个或多个数据之间是否相同的主要手段之一,通常,如果两个数据或数据块的校验值相同,则表示这两个数据或数据块为相同的数据或数据块,但是,校验值在一定的范围内会产生相同数值的情况,即两个不同的数据块产生了相同的校验值。当服务器接收到待存储数据块后,可以计算该待存储数据块的第一校验值,此时,可以获取预先存储的各个数据块的校验值,可以将第一校验值分别与存储的数据块的校验值进行对比,如果第一校验值与存储的某一个数据块或多个数据块(即目标数据块)的校验值相同,则基于上述内容可知,可以认为待存储数据块应该与目标数据块相同,此时,即使待存储数据块与目标数据块不同,而仅是两者的校验值相同,则服务器也将无法存储 该待存储数据块,从而造成数据或数据块的漏存储,而即使通过某些方法将该待存储数据存储到服务器中,最终,由于服务器中存在同一校验值的多个不同的数据块,则服务器在读取该第一校验值的数据块时,可能不同时刻读取的数据块是不同,例如,服务器第一次读取的第一校验值对应的数据块为上述待存储数据块,服务器第二次再读取的第一校验值对应的数据块为目标数据块等。为此,本说明书实施例提供一种可选的处理方式,具体可以参见下述相关内容:In an implementation, the check value is one of the primary means for detecting whether two or more data are identical. Generally, if the check values of two data or data blocks are the same, the two data or data are represented. Blocks are the same data or data block, but the check value will produce the same value within a certain range, that is, two different data blocks produce the same check value. After the server receives the data block to be stored, the first check value of the data block to be stored may be calculated. At this time, the check value of each data block stored in advance may be obtained, and the first check value may be separately stored. Comparing the check values of the data blocks, if the first check value is the same as the check value of one of the stored data blocks or the plurality of data blocks (ie, the target data block), based on the above content, it can be considered that the check value is to be stored. The data block should be the same as the target data block. In this case, even if the data block to be stored is different from the target data block, but only the check values of the two are the same, the server will not be able to store the data block to be stored, thereby causing data or The data block is stored in a leak, and even if the data to be stored is stored in the server by some method, finally, since the server has a plurality of different data blocks of the same check value, the server reads the first check. When the data block of the value is used, the data blocks that may be read at different times are different. For example, the data block corresponding to the first check value read by the server for the first time is the data block to be stored. A first check value corresponding to the data block is read for the second time the target data block and the like. To this end, the embodiment of the present specification provides an optional processing manner. For details, refer to the following related content:
服务器接获取到待存储数据的第一校验值后,可以将预先存储的每个数据块的校验值分别与第一校验值进行对比,如果存储的数据块中包括校验值与第一校验值相匹配(如相同),如果存储的数据块中包括校验值与第一校验值相同的目标数据,则可以分别提取待存储数据块和目标数据块的数据内容,可以将提取的待存储数据块的数据内容与目标数据块的数据内容进行对比,如果待存储数据块与目标数据块的数据内容不同,则可以确定待存储数据块与目标数据块之间具有相同的校验值,但是数据内容并不相同,则服务器可以将待存储数据块存储到服务器中,并且为待存储数据块重新分配一个辅助查询标识。其中,为了将具有相同校验值的不同数据块进行区分,可以为具有相同校验值的不同数据块分别设置不同的辅助查询标识,这样,当服务器再次接收到新的待存储数据块时,可以分别通过校验值与辅助查询标识,确定新的待存储数据块是否在服务器中已经存储,即先通过校验值进行查询,如果确定新的待存储数据块的校验值与已存储数据块的校验值相同,则可以对数据内容进行对比,如果新的待存储数据块与其中的某一个数据块相同,则可以确定新的待存储数据块与该数据块为同一个数据块,否则为不同的数据块,此时可以再为新的待存储数据块分配辅助查询标识。After the server obtains the first check value of the data to be stored, the check value of each data block stored in advance may be compared with the first check value, respectively, if the stored data block includes the check value and the first If the stored data block includes the same target data as the first check value, the data content of the data block to be stored and the target data block may be respectively extracted, and The extracted data content of the data block to be stored is compared with the data content of the target data block. If the data content of the data block to be stored is different from the data content of the target data block, it may be determined that the data block to be stored has the same school as the target data block. If the data is not the same, the server can store the data block to be stored in the server and reallocate an auxiliary query identifier for the data block to be stored. In order to distinguish different data blocks having the same check value, different auxiliary query identifiers may be set for different data blocks having the same check value, so that when the server receives a new data block to be stored again, The checksum value and the auxiliary query identifier may be respectively used to determine whether the new data block to be stored is already stored in the server, that is, the check value is first used for querying, and if the check value and the stored data of the new data block to be stored are determined. If the check value of the block is the same, the data content can be compared. If the new data block to be stored is the same as one of the data blocks, it can be determined that the new data block to be stored is the same data block as the data block. Otherwise, it is a different data block, and the auxiliary query identifier can be assigned to the new data block to be stored.
例如,待存储数据块为“CD”,第一校验值为“Xfdsafdsfdlasf”,目标数据块为“AB”,如果服务器中存储的目标数据块“AB”的校验值为“Xfdsafdsfdlasf”,待存储数据块为“CD”,通过上述校验值算法计算待存储数据块“CD”的第一校验值为“Xfdsafdsfdlasf”,则待存储数据块与目标数据块的校验值相同,但是,待存储数据块与目标数据块的数据内容并不相同,此时可以存储待存储数据块“CD”,然后,可以分别为待存储数据块与目标数据块分配不同的辅助查询标识,例如待存储数据块的辅助查询标识(或版本号等)为1,目标数据块的辅助查询标识(或版本号等)为2等。For example, the data block to be stored is “CD”, the first check value is “Xfdsafdsfdlasf”, and the target data block is “AB”. If the check value of the target data block “AB” stored in the server is “Xfdsafdsfdlasf”, wait The storage data block is “CD”, and the first check value of the to-be-stored data block “CD” is calculated by the above check value algorithm to be “Xfdsafdsfdlasf”, and the to-be-stored data block has the same check value as the target data block, however, The data content of the data block to be stored is not the same as the data content of the target data block. In this case, the data block “CD” to be stored may be stored, and then the auxiliary data identifier and the target data block may be respectively assigned different auxiliary query identifiers, for example, to be stored. The auxiliary query identifier (or version number, etc.) of the data block is 1, and the auxiliary query identifier (or version number, etc.) of the target data block is 2 or the like.
如图3所示,本说明书实施例提供一种数据的处理方法,该方法的执行主体可以为电子设备,该电子设备可以是用于向服务器请求存储某数据块的设备,具体如收银台的电子 设备等,其中的电子设备可以是如手机、平板电脑等移动终端设备,还可以是如个人计算机等终端设备。该方法具体可以包括以下步骤:As shown in FIG. 3, the embodiment of the present disclosure provides a method for processing data. The execution entity of the method may be an electronic device, and the electronic device may be a device for requesting storage of a certain data block from a server, such as a checkout counter. The electronic device or the like may be a mobile terminal device such as a mobile phone or a tablet computer, or may be a terminal device such as a personal computer. The method may specifically include the following steps:
在步骤S302中,向服务器发送待存储数据块。In step S302, a data block to be stored is transmitted to the server.
在步骤S304中,接收服务器发送的待存储数据块的存储结果,存储结果是服务器在存储的数据块中存在校验值与待存储数据块的第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同的情况下生成。In step S304, the storage result of the to-be-stored data block sent by the server is received, and the storage result is that the server has a target data block in the stored data block that has a check value matching the first check value of the to-be-stored data block, and Generated when the data block to be stored is different from the target data block.
上述步骤S302和步骤S304的具体处理过程可以参见上述步骤S102和步骤S104中的相关内容,在此不再赘述。For the specific processing of the foregoing steps S302 and S304, refer to the related content in the foregoing steps S102 and S104, and details are not described herein again.
本说明书实施例提供一种数据的处理方法,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing method, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
实施例二Embodiment 2
如图4所示,本说明书实施例提供了一种数据的处理方法,该方法的执行主体可以为电子设备和服务器,该电子设备可以是用于向服务器请求存储某数据块的设备,具体如收银台的电子设备等,其中的电子设备可以是如手机、平板电脑等移动终端设备,还可以是如个人计算机等终端设备,服务器可以是独立的一个服务器,也可以是由多个服务器组成的服务器集群。该方法具体可以包括以下步骤:As shown in FIG. 4, the embodiment of the present disclosure provides a data processing method, where the execution body of the method may be an electronic device and a server, where the electronic device may be a device for requesting storage of a certain data block from a server, such as The electronic device of the cash register, etc., wherein the electronic device may be a mobile terminal device such as a mobile phone or a tablet computer, or may be a terminal device such as a personal computer, and the server may be a stand-alone server or a plurality of servers. Server cluster. The method may specifically include the following steps:
在步骤S402中,服务器接收待存储数据块,获取待存储数据块的第一校验值。In step S402, the server receives the data block to be stored, and acquires a first check value of the data block to be stored.
其中,第一校验值可以为哈希值,本说明书实施例中以校验值为哈希值为例进行说明。The first check value may be a hash value, and the check value is a hash value in the embodiment of the present specification.
上述步骤S402的具体处理过程可以参见上述是实施例一中步骤S102的相关内容,在此不再赘述。For the specific processing of the foregoing step S402, refer to the related content of step S102 in the first embodiment, and details are not described herein again.
在步骤S404中,如果存储的数据块中存在校验值与第一校验值相匹配的目标数据块,则服务器判断待存储数据块与目标数据块中的每个子数据块是否相同。In step S404, if there is a target data block in which the check value matches the first check value in the stored data block, the server determines whether the data block to be stored is identical to each of the target data blocks.
在实施中,哈希值可以是用于检测数据之间是否相同的主要手段之一,通常,如果两个数据或数据块的哈希值相同,则表示这两个数据或数据块为相同的数据或数据块,但是,哈希值在一定的范围内会产生碰撞,即两个不同的数据块具有相同的哈希值。本说明书实施例中,可以设置一个处理数据冲突的装置,该装置可以用于解决由于哈希值碰撞带来的业务问题,该装置可以分为两个主要部分,分别为装置前置和装置处理,该装置前置中预先设置有一个数据存储模型,该数据存储模型中,可以包括字符串(即待存储数据块)、哈希值和冲突版本(即辅助查询标识)等三个项目。In an implementation, the hash value may be one of the main means for detecting whether the data are identical. Generally, if the hash values of the two data or data blocks are the same, it means that the two data or data blocks are the same. Data or data blocks, however, hashes will collide within a certain range, ie two different data blocks have the same hash value. In the embodiment of the present specification, a device for processing data conflict may be set, and the device may be used to solve a service problem caused by a hash value collision. The device may be divided into two main parts, namely, device pre-processing and device processing. A data storage model is preset in the device front, and the data storage model may include three items: a character string (ie, a data block to be stored), a hash value, and a conflicting version (ie, an auxiliary query identifier).
当服务器接收到待存储数据块后,该装置前置可以计算该待存储数据块的哈希值(即第一校验值),此时,可以获取预先存储的各个数据块的哈希值,可以将第一校验值分别与存储的数据块的哈希值进行对比,如果第一校验值与存储的目标数据块的哈希值相同,则判断待存储数据块与目标数据块中的每个子数据块是否相同。After the server receives the data block to be stored, the device pre-position can calculate a hash value (ie, the first check value) of the data block to be stored, and at this time, obtain a hash value of each data block stored in advance. The first check value may be compared with the hash value of the stored data block respectively, and if the first check value is the same as the hash value of the stored target data block, determining the data block to be stored and the target data block Whether each sub-block is the same.
在步骤S406中,如果存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同,则服务器存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识。In step S406, if there is a target data block in the stored data block that matches the first check value, and the data block to be stored is different from the target data block, the server stores the data block to be stored, and waits for The storage data block is assigned an auxiliary query identifier that is different from the target data block.
其中,辅助查询标识可以为字符或字符串,其中的字符可以是数字、字母、符号或文字等,字符串可以是由多个字符构成,例如R12或5等。The auxiliary query identifier may be a character or a string, and the characters may be numbers, letters, symbols, or characters, and the string may be composed of multiple characters, such as R12 or 5.
在实施中,如图2所示,当服务器接收到待存储数据块后,该装置前置可以计算该待存储数据块的哈希值(即第一校验值),此时,可以获取预先存储的各个数据块的哈希值,可以将第一校验值分别与存储的数据块的哈希值进行对比,如果第一校验值与存储的目标数据块的哈希值相同,则可以分别提取待存储数据块和目标数据块的数据内容,可以将提取的待存储数据块的数据内容与目标数据块的数据内容进行对比,如果待存储数据块与目标数据块的数据内容不同,则可以确定待存储数据块与目标数据块之家具有相同的哈希值,但是数据内容不相同,则该装置前置可以将待存储数据块存储到服务器中,并且为待存储数据块重新分配一个辅助查询标识。则基于上述实施例一中步骤S104的示例,该装置前置中的如表1所示。In an implementation, as shown in FIG. 2, after the server receives the data block to be stored, the device pre-determine can calculate a hash value (ie, a first check value) of the to-be-stored data block, and at this time, the pre-acquisition can be obtained. The stored hash value of each data block may compare the first check value with the hash value of the stored data block respectively, and if the first check value is the same as the hash value of the stored target data block, Extracting the data content of the data block to be stored and the target data block respectively, and comparing the data content of the extracted data block to be stored with the data content of the target data block, if the data content of the data block to be stored is different from the data content of the target data block, It can be determined that the data block to be stored has the same hash value as the home of the target data block, but the data content is different, the device pre-position can store the data block to be stored into the server, and reallocate a data block to be stored. Auxiliary query ID. Then, based on the example of step S104 in the first embodiment, the device front is as shown in Table 1.
表1Table 1
Figure PCTCN2019071145-appb-000001
Figure PCTCN2019071145-appb-000001
上述处理过程主要是装置前置部分需要执行的处理,在实际应用中,装置处理部分可以对任意查询哈希值的操作进行处理,具体地,当重新传入待存储数据块时,该装置处理部分可以检测上述数据存储模型中是否存储有冲突数据,如果没有,则执行上述处理过程,如果有,则需要提取出所有的哈希值相同的数据块,该装置处理部分会做一一的判断,判断其中的字符串的值与重新传入待存储数据块是否相同。The above processing process is mainly a process that needs to be performed in the front part of the device. In an actual application, the device processing part can process any operation of querying the hash value, specifically, when re-introducing the data block to be stored, the device processes The part can detect whether the conflict data is stored in the data storage model. If not, execute the above processing process. If yes, all the data blocks with the same hash value need to be extracted, and the processing part of the device will judge one by one. , to determine whether the value of the string is the same as re-incoming the data block to be stored.
上述存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识的处理,在实际应用中可以包括多种处理方式,除了上述相关内容提供的实现方式外,还可以包括多种可实现方式,具体可以如下:将待存储数据块和待存储数据块的辅助查询标识,以及目标数据块和目标数据块的辅助查询标识存储于同一数据块集合中。The foregoing process of storing the data block to be stored and assigning the auxiliary query identifier different from the target data block to the data block to be stored may include multiple processing manners in the actual application, and may include, in addition to the implementation manner provided by the related content, A plurality of implementable manners may be specifically as follows: storing the data block to be stored and the auxiliary query identifier of the data block to be stored, and the auxiliary query identifier of the target data block and the target data block in the same data block set.
其中的同一数据块集合可以如表1所示,这样,对于上述两个数据块的查询,可以分别通过校验值和辅助查询标识综合确定。The same data block set can be as shown in Table 1, so that the query for the above two data blocks can be comprehensively determined by the check value and the auxiliary query identifier respectively.
在步骤S408中,如果待存储数据块与目标数据块中的第一子数据块相同,则服务器输出第一子数据块的辅助查询标识和第一校验值。In step S408, if the data block to be stored is the same as the first sub data block in the target data block, the server outputs the auxiliary query identifier and the first check value of the first sub data block.
在实施中,如图2所示,如果通过对比确定待存储数据块与目标数据块中的第一子数据块相同,则可以确定待存储数据块与第一子数据块相同,此时,可以将第一子数据块的校验值和辅助查询标识作为待存储数据块的校验值和辅助查询标识(冲突版本),并可以输出第一子数据块的辅助查询标识和第一校验值。In an implementation, as shown in FIG. 2, if it is determined by comparison that the data block to be stored is the same as the first sub data block in the target data block, it may be determined that the data block to be stored is the same as the first sub data block, and in this case, The check value and the auxiliary query identifier of the first sub-block are used as the check value of the data block to be stored and the auxiliary query identifier (collided version), and the auxiliary query identifier and the first check value of the first sub-block may be output. .
在步骤S410中,电子设备接收服务器发送的待存储数据块的存储结果,该存储结果是服务器在存储的数据块中存在校验值与待存储数据块的第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同的情况下生成。In step S410, the electronic device receives a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has the target data in the stored data block that the check value matches the first check value of the to-be-stored data block. A block is generated if the data block to be stored is different from the target data block.
在实施中,如图2所示,服务器存储完成待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识后,可以向电子设备发送待存储数据块的存储结果,以提示 电子设备,其发送的待存储数据块已完成存储。In an implementation, as shown in FIG. 2, after the server stores the data block to be stored, and allocates the auxiliary query identifier different from the target data block for the data block to be stored, the storage result of the data block to be stored may be sent to the electronic device, The electronic device is prompted to store the data block to be stored.
为了及时对服务器中可能存在的数据风险进行控制,可以设置风险控制服务器,电子设备可以将服务器每次处理完成的待存储数据块的校验值和辅助查询标识发送给风险控制服务器,以备相应的管理人员管理和控制数据存储可能存在的风险。具体可以参见下述步骤S412和步骤S414的相关内容。In order to control the data risk that may exist in the server in time, the risk control server may be set, and the electronic device may send the check value of the to-be-stored data block and the auxiliary query identifier processed by the server to the risk control server for preparation. Managers manage and control the risks that may exist in data storage. For details, refer to the related contents of step S412 and step S414 described below.
在步骤S412中,电子设备接收服务器发送的第一校验值和目标辅助查询标识,该目标辅助查询标识为校验值与第一校验值相匹配的目标数据块中,与待存储数据块相同的第一子数据块的辅助查询标识。In step S412, the electronic device receives the first check value sent by the server and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the data block to be stored. The auxiliary query identifier of the same first sub-block.
在步骤S414中,电子设备将第一校验值和目标辅助查询标识发送给风险控制服务器。In step S414, the electronic device transmits the first check value and the target auxiliary query identifier to the risk control server.
在实施中,如图2所示,电子设备可以接收服务器发送的第一校验值和目标辅助查询标识,并可以通过第一校验值和目标辅助查询标识生成风控信息,可以将生成的风控信息发送给风险控制服务器。管理人员可以通过风控信息即使了解服务器中的数据存储情况。In an implementation, as shown in FIG. 2, the electronic device may receive the first check value and the target auxiliary query identifier sent by the server, and generate wind control information by using the first check value and the target auxiliary query identifier, which may be generated. The wind control information is sent to the risk control server. Managers can use wind control information to understand even the data storage conditions in the server.
本说明书实施例提供一种数据的处理方法,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing method, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
实施例三Embodiment 3
以上为本说明书实施例提供的数据的处理方法,基于同样的思路,本说明书实施例还提供一种数据的处理装置,如图5所示。The above is the data processing method provided by the embodiment of the present specification. Based on the same idea, the embodiment of the present specification further provides a data processing device, as shown in FIG. 5 .
所述数据的处理装置包括:获取模块501和数据处理模块502,其中:The processing device of the data includes: an obtaining module 501 and a data processing module 502, wherein:
获取模块501,用于接收待存储数据块,获取所述待存储数据块的第一校验值;The obtaining module 501 is configured to receive a data block to be stored, and obtain a first check value of the to-be-stored data block.
数据处理模块502,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。The data processing module 502 is configured to: if there is a target data block in the stored data block that matches the first check value, and the to-be-stored data block is different from the target data block, the storage unit The storage data block is referred to, and the auxiliary data identifier different from the target data block is allocated to the to-be-stored data block.
可选地,本说明书实施例中,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅助查询标识,所述装置还包括:Optionally, in the embodiment of the present disclosure, the target data block includes a plurality of different sub-blocks, each sub-block is provided with a corresponding auxiliary query identifier, and the device further includes:
判断模块,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;a determining module, configured to determine, if the stored data block has a target data block whose check value matches the first check value, determine the data block to be stored and each of the target data blocks Whether they are the same;
输出模块,用于如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And an output module, configured to output an auxiliary query identifier of the first sub-block and the first check value if the to-be-stored data block is identical to the first sub-block in the target data block.
可选地,本说明书实施例中,所述数据处理模块502,用于将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。Optionally, in the embodiment of the present specification, the data processing module 502 is configured to: the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the target data block. The secondary query IDs are stored in the same data block set.
可选地,本说明书实施例中,所述辅助查询标识为字符或字符串。Optionally, in the embodiment of the present disclosure, the auxiliary query identifier is a character or a character string.
可选地,本说明书实施例中,所述第一校验值为哈希值。Optionally, in the embodiment of the present disclosure, the first check value is a hash value.
本说明书实施例提供一种数据的处理装置,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing apparatus, by receiving a data block to be stored, and acquiring a first check value of a data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
实施例四Embodiment 4
以上为本说明书实施例提供的数据的处理方法,基于同样的思路,本说明书实施例还提供一种数据的处理装置,如图6所示。The above is the data processing method provided by the embodiment of the present specification. Based on the same idea, the embodiment of the present specification further provides a data processing apparatus, as shown in FIG. 6.
所述数据的处理装置包括:数据发送模块601和结果接收模块602,其中:The data processing device includes: a data sending module 601 and a result receiving module 602, wherein:
数据发送模块601,用于向服务器发送待存储数据块;a data sending module 601, configured to send a data block to be stored to the server;
结果接收模块602,用于接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。a result receiving module 602, configured to receive a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value and a data block to be stored in the stored data block. A target data block whose check value matches, and the data block to be stored is generated differently from the target data block.
可选地,本说明书实施例中,所述装置还包括:Optionally, in the embodiment of the present specification, the device further includes:
信息接收模块,用于接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;An information receiving module, configured to receive the first check value and the target auxiliary query identifier sent by the server, where the target auxiliary query identifier is a target data block whose check value matches the first check value And an auxiliary query identifier of the first sub-block of the same as the data block to be stored;
信息发送模块,用于将所述第一校验值和目标辅助查询标识发送给风险控制服务器。The information sending module is configured to send the first check value and the target auxiliary query identifier to the risk control server.
本说明书实施例提供一种数据的处理装置,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing apparatus, by receiving a data block to be stored, and acquiring a first check value of a data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
实施例五Embodiment 5
基于同样的思路,本说明书实施例还提供一种数据的处理设备,如图7所示。Based on the same idea, the embodiment of the present specification further provides a data processing device, as shown in FIG. 7.
该数据的处理设备可以为上述实施例提供的服务器等。The processing device of the data may be a server or the like provided by the above embodiment.
数据的处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对数据的处理设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在数据的处理设备上执行存储器702中的一系列计算机可执行指令。数据的处理设备还可以包括一个或一个以上电源703,一个或一个以上有线或无线网络接口704,一个或一个以上输入输出接口705,一个或一个以上键盘706。The processing device of the data may vary considerably depending on configuration or performance, and may include one or more processors 701 and memory 702 in which one or more storage applications or data may be stored. Among them, the memory 702 can be short-term storage or persistent storage. An application stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a processing device for data. Still further, processor 701 can be arranged to communicate with memory 702 to execute a series of computer executable instructions in memory 702 on a processing device of data. The data processing device may also include one or more power sources 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706.
具体在本实施例中,数据的处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对数据的处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可 执行指令:Specifically in this embodiment, the data processing device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules can include a series of computer executable instructions in a processing device for data, and are configured to be executed by one or more processors. The one or more programs are included for performing the following computer executable instructions:
接收待存储数据块,获取所述待存储数据块的第一校验值;Receiving a data block to be stored, and acquiring a first check value of the to-be-stored data block;
如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。If the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
可选地,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅助查询标识;Optionally, the target data block includes a plurality of different sub-data blocks, and each of the sub-data blocks is configured with a corresponding auxiliary query identifier;
所述接收待存储数据块,获取所述待存储数据块的第一校验值之后,还包括:After the receiving the to-be-stored data block and acquiring the first check value of the to-be-stored data block, the method further includes:
如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;Determining, if the stored data block has a target data block whose check value matches the first check value, determining whether the data block to be stored is the same as each of the target data blocks;
如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And if the to-be-stored data block is the same as the first sub-block in the target data block, outputting the auxiliary query identifier of the first sub-block and the first check value.
可选地,所述存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识,包括:Optionally, the storing the data block to be stored, and allocating the auxiliary query identifier different from the target data block to the to-be-stored data block, includes:
将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。And storing the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the auxiliary query identifier of the target data block in the same data block set.
可选地,所述辅助查询标识为字符或字符串。Optionally, the auxiliary query identifier is a character or a character string.
可选地,所述第一校验值为哈希值。Optionally, the first check value is a hash value.
本说明书实施例提供一种数据的处理设备,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing device, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
实施例六Embodiment 6
基于同样的思路,本说明书实施例还提供一种数据的处理设备,如图8所示。Based on the same idea, the embodiment of the present specification further provides a data processing device, as shown in FIG. 8.
该数据的处理设备可以为上述实施例提供的电子设备等。The processing device of the data may be an electronic device or the like provided by the above embodiment.
数据的处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器801和存储器802,存储器802中可以存储有一个或一个以上存储应用程序或数据。其中,存储器802可以是短暂存储或持久存储。存储在存储器802的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对数据的处理设备中的一系列计算机可执行指令。更进一步地,处理器801可以设置为与存储器802通信,在数据的处理设备上执行存储器802中的一系列计算机可执行指令。数据的处理设备还可以包括一个或一个以上电源803,一个或一个以上有线或无线网络接口804,一个或一个以上输入输出接口805,一个或一个以上键盘806。The processing device of the data may vary considerably depending on configuration or performance, and may include one or more processors 801 and memory 802 in which one or more storage applications or data may be stored. The memory 802 can be short-lived or persistent. An application stored in memory 802 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a processing device for data. Still further, processor 801 can be configured to communicate with memory 802 to execute a series of computer executable instructions in memory 802 on a processing device of data. The data processing device may also include one or more power sources 803, one or more wired or wireless network interfaces 804, one or more input and output interfaces 805, one or more keyboards 806.
具体在本实施例中,数据的处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对数据的处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:Specifically in this embodiment, the data processing device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules can include a series of computer executable instructions in a processing device for data, and are configured to be executed by one or more processors. The one or more programs are included for performing the following computer executable instructions:
向服务器发送待存储数据块;Sending a data block to be stored to the server;
接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。Receiving a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value in the stored data block that matches a first check value of the to-be-stored data block. A target data block is generated if the to-be-stored data block is different from the target data block.
可选地,所述向服务器发送待存储数据块之后,还包括:Optionally, after the sending the data block to be stored to the server, the method further includes:
接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;Receiving, by the server, the first check value and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the to-be-stored Auxiliary query identifier of the first sub-block of the same data block;
将所述第一校验值和目标辅助查询标识发送给风险控制服务器。Sending the first check value and the target auxiliary query identifier to the risk control server.
本说明书实施例提供一种数据的处理设备,通过接收待存储数据块,并获取待存储数据块的第一校验值,在存储的数据块中存在校验值与第一校验值相匹配的目标数据块,且待存储数据块与目标数据块不同时,存储待存储数据块,并为待存储数据块分配与目标数据块不同的辅助查询标识,这样,对于已存储的目标数据块与待存储数据块来说,当两者 的校验值相同,但两者的数据内容不同时,可以存储待存储数据块,并为待存储数据块再重新分配与目标数据块不同的辅助查询标识,从而来进一步区分校验值相同,数据内容不同的两个数据块,从而解决了相同校验值不同数据内容的待存储数据块,无法存储到服务器中的问题,避免造成业务场景的错乱。The embodiment of the present specification provides a data processing device, by receiving a data block to be stored, and acquiring a first check value of the data block to be stored, and the check value exists in the stored data block to match the first check value. a target data block, and when the data block to be stored is different from the target data block, storing the data block to be stored, and assigning an auxiliary query identifier different from the target data block to the data block to be stored, thus, for the stored target data block and For the data block to be stored, when the check values of the two are the same, but the data contents of the two are different, the data block to be stored may be stored, and the auxiliary query identifier different from the target data block may be re-allocated for the data block to be stored. Therefore, the two data blocks having the same check value and different data contents are further distinguished, thereby solving the problem that the data block to be stored with different data contents of the same check value cannot be stored in the server, thereby avoiding confusion of the service scene.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing description of the specific embodiments of the specification has been described. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than the embodiments and still achieve the desired results. In addition, the processes depicted in the figures are not necessarily in a particular order or in a sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如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)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. Designers program themselves to "integrate" a digital system on a single PLD without having to ask the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, 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., are currently the most commonly used VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以 及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. In the form of logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip The PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that in addition to implementing the controller in purely computer readable program code, the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of each unit may be implemented in the same software or software and/or hardware when implementing the present application.
本领域内的技术人员应明白,本说明书的实施例可提供为方法、系统、或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present specification can be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present specification. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本说明书的实施例可提供为方法、系统或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例 的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present specification can be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This description can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本说明书的实施例而已,并不用于限制本说明书。对于本领域技术人员来说,本说明书可以有各种更改和变化。凡在本说明书的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书的权利要求范围之内。The above descriptions are only examples of the present specification and are not intended to limit the present specification. Various modifications and changes can be made in the present specification to those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the specification are intended to be included within the scope of the appended claims.

Claims (16)

  1. 一种数据的处理方法,其特征在于,所述方法包括:A method for processing data, characterized in that the method comprises:
    接收待存储数据块,获取所述待存储数据块的第一校验值;Receiving a data block to be stored, and acquiring a first check value of the to-be-stored data block;
    如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。If the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
  2. 根据权利要求1所述的方法,其特征在于,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅助查询标识;The method according to claim 1, wherein the target data block includes a plurality of different sub-data blocks, and each of the sub-data blocks is provided with a corresponding auxiliary query identifier;
    所述接收待存储数据块,获取所述待存储数据块的第一校验值之后,所述方法还包括:After the receiving the data block to be stored and acquiring the first check value of the data block to be stored, the method further includes:
    如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;Determining, if the stored data block has a target data block whose check value matches the first check value, determining whether the data block to be stored is the same as each of the target data blocks;
    如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And if the to-be-stored data block is the same as the first sub-block in the target data block, outputting the auxiliary query identifier of the first sub-block and the first check value.
  3. 根据权利要求2所述的方法,其特征在于,所述存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识,包括:The method according to claim 2, wherein the storing the data block to be stored and assigning the auxiliary data identifier different from the target data block to the data block to be stored comprises:
    将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。And storing the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the auxiliary query identifier of the target data block in the same data block set.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述辅助查询标识为字符或字符串。The method according to any one of claims 1 to 3, wherein the auxiliary query identifier is a character or a character string.
  5. 根据权利要求4所述的方法,其特征在于,所述第一校验值为哈希值。The method of claim 4 wherein said first check value is a hash value.
  6. 一种数据的处理方法,其特征在于,所述方法包括:A method for processing data, characterized in that the method comprises:
    向服务器发送待存储数据块;Sending a data block to be stored to the server;
    接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。Receiving a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value in the stored data block that matches a first check value of the to-be-stored data block. A target data block is generated if the to-be-stored data block is different from the target data block.
  7. 根据权利要求6所述的方法,其特征在于,所述向服务器发送待存储数据块之后,所述方法还包括:The method according to claim 6, wherein after the sending the data block to be stored to the server, the method further comprises:
    接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;Receiving, by the server, the first check value and the target auxiliary query identifier, where the target auxiliary query identifier is a target data block whose check value matches the first check value, and the to-be-stored Auxiliary query identifier of the first sub-block of the same data block;
    将所述第一校验值和目标辅助查询标识发送给风险控制服务器。Sending the first check value and the target auxiliary query identifier to the risk control server.
  8. 一种数据的处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device comprises:
    获取模块,用于接收待存储数据块,获取所述待存储数据块的第一校验值;An acquiring module, configured to receive a data block to be stored, and obtain a first check value of the to-be-stored data block;
    数据处理模块,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。a data processing module, configured to store, if the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, A data block to be stored, and an auxiliary query identifier different from the target data block is allocated to the to-be-stored data block.
  9. 根据权利要求8所述的装置,其特征在于,所述目标数据块中包括多个不同的子数据块,每个子数据块设置有相应的辅助查询标识,所述装置还包括:The apparatus according to claim 8, wherein the target data block includes a plurality of different sub-blocks, each sub-block is provided with a corresponding auxiliary query identifier, and the apparatus further comprises:
    判断模块,用于如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,则判断所述待存储数据块与所述目标数据块中的每个子数据块是否相同;a determining module, configured to determine, if the stored data block has a target data block whose check value matches the first check value, determine the data block to be stored and each of the target data blocks Whether they are the same;
    输出模块,用于如果所述待存储数据块与所述目标数据块中的第一子数据块相同,则输出所述第一子数据块的辅助查询标识和所述第一校验值。And an output module, configured to output an auxiliary query identifier of the first sub-block and the first check value if the to-be-stored data block is identical to the first sub-block in the target data block.
  10. 根据权利要求9所述的装置,其特征在于,所述数据处理模块,用于将所述待存储数据块和所述待存储数据块的辅助查询标识,以及所述目标数据块和所述目标数据块的辅助查询标识存储于同一数据块集合中。The device according to claim 9, wherein the data processing module is configured to: the to-be-stored data block and the auxiliary query identifier of the to-be-stored data block, and the target data block and the target The auxiliary query ID of the data block is stored in the same data block set.
  11. 根据权利要求8-10中任一项所述的装置,其特征在于,所述辅助查询标识为字符或字符串。Apparatus according to any one of claims 8-10, wherein the auxiliary query identifier is a character or a character string.
  12. 根据权利要求11所述的装置,其特征在于,所述第一校验值为哈希值。The apparatus of claim 11 wherein said first check value is a hash value.
  13. 一种数据的处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device comprises:
    数据发送模块,用于向服务器发送待存储数据块;a data sending module, configured to send a data block to be stored to the server;
    结果接收模块,用于接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。a result receiving module, configured to receive a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value and a first block of the to-be-stored data block in the stored data block The target data block whose check value matches, and the data block to be stored is generated differently from the target data block.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    信息接收模块,用于接收所述服务器发送的所述第一校验值和目标辅助查询标识,所述目标辅助查询标识为校验值与所述第一校验值相匹配的目标数据块中,与所述待存储数据块相同的第一子数据块的辅助查询标识;An information receiving module, configured to receive the first check value and the target auxiliary query identifier sent by the server, where the target auxiliary query identifier is a target data block whose check value matches the first check value And an auxiliary query identifier of the first sub-block of the same as the data block to be stored;
    信息发送模块,用于将所述第一校验值和目标辅助查询标识发送给风险控制服务器。The information sending module is configured to send the first check value and the target auxiliary query identifier to the risk control server.
  15. 一种数据的处理设备,所述设备包括:A data processing device, the device comprising:
    处理器;以及Processor;
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理 器执行以下操作:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
    接收待存储数据块,获取所述待存储数据块的第一校验值;Receiving a data block to be stored, and acquiring a first check value of the to-be-stored data block;
    如果存储的数据块中存在校验值与所述第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同,则存储所述待存储数据块,并为所述待存储数据块分配与所述目标数据块不同的辅助查询标识。If the stored data block has a target data block whose check value matches the first check value, and the to-be-stored data block is different from the target data block, storing the to-be-stored data block, and And assigning, to the stored data block, an auxiliary query identifier different from the target data block.
  16. 一种数据的处理设备,所述设备包括:A data processing device, the device comprising:
    处理器;以及Processor;
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer executable instructions that, when executed, cause the processor to perform the following operations:
    向服务器发送待存储数据块;Sending a data block to be stored to the server;
    接收所述服务器发送的所述待存储数据块的存储结果,所述存储结果是所述服务器在存储的数据块中存在校验值与所述待存储数据块的第一校验值相匹配的目标数据块,且所述待存储数据块与所述目标数据块不同的情况下生成。Receiving a storage result of the to-be-stored data block sent by the server, where the storage result is that the server has a check value in the stored data block that matches a first check value of the to-be-stored data block. A target data block is generated if the to-be-stored data block is different from the target data block.
PCT/CN2019/071145 2018-01-18 2019-01-10 Data processing method, apparatus and device WO2019141128A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810047394.4A CN108304503A (en) 2018-01-18 2018-01-18 A kind of processing method of data, device and equipment
CN201810047394.4 2018-01-18

Publications (1)

Publication Number Publication Date
WO2019141128A1 true WO2019141128A1 (en) 2019-07-25

Family

ID=62865565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071145 WO2019141128A1 (en) 2018-01-18 2019-01-10 Data processing method, apparatus and device

Country Status (3)

Country Link
CN (1) CN108304503A (en)
TW (1) TWI700905B (en)
WO (1) WO2019141128A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795269B (en) * 2018-08-03 2023-05-26 阿里巴巴集团控股有限公司 Data recovery verification method, device and equipment
CN112749228B (en) * 2019-10-31 2024-01-26 北京金山云网络技术有限公司 Data synchronization method, device, storage server and storage medium
CN113329139B (en) * 2020-02-28 2023-11-03 天翼云科技有限公司 Video stream processing method, device and computer readable storage medium
CN112379843B (en) * 2020-11-23 2022-09-23 上海儒竞智控技术有限公司 EEPROM data processing method, system, storage medium and terminal
CN113010105A (en) * 2021-02-25 2021-06-22 深圳市广和通无线股份有限公司 Data backup method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7275244B1 (en) * 2003-03-18 2007-09-25 Microsoft Corporation System and method for incrementally saving web files to a web server using file hash values
CN101989929A (en) * 2010-11-17 2011-03-23 中兴通讯股份有限公司 Disaster recovery data backup method and system
US20150293985A1 (en) * 2010-09-08 2015-10-15 Daniel Young Distribution and synchronization of digital objects

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8255773B2 (en) * 2009-06-29 2012-08-28 Sandisk Technologies Inc. System and method of tracking error data within a storage device
CN102156727A (en) * 2011-04-01 2011-08-17 华中科技大学 Method for deleting repeated data by using double-fingerprint hash check
CN105589885B (en) * 2014-10-24 2019-07-02 阿里巴巴集团控股有限公司 A kind of method and system of consistency verification of data
CN106407226B (en) * 2015-07-31 2019-09-13 华为技术有限公司 A data processing method, backup server and storage system
CN106325769B (en) * 2016-08-19 2019-05-28 华为技术有限公司 A kind of method and device of data storage
CN106528125A (en) * 2016-10-26 2017-03-22 腾讯科技(深圳)有限公司 Data file incremental updating method, server, client and system
CN107544863B (en) * 2017-06-26 2021-07-20 新华三技术有限公司 Data storage method and device
CN107562533B (en) * 2017-07-28 2021-08-06 创新先进技术有限公司 Data loading processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7275244B1 (en) * 2003-03-18 2007-09-25 Microsoft Corporation System and method for incrementally saving web files to a web server using file hash values
US20150293985A1 (en) * 2010-09-08 2015-10-15 Daniel Young Distribution and synchronization of digital objects
CN101989929A (en) * 2010-11-17 2011-03-23 中兴通讯股份有限公司 Disaster recovery data backup method and system

Also Published As

Publication number Publication date
TW201933812A (en) 2019-08-16
CN108304503A (en) 2018-07-20
TWI700905B (en) 2020-08-01

Similar Documents

Publication Publication Date Title
WO2019141128A1 (en) Data processing method, apparatus and device
TWI715999B (en) Identification method and device of identity information
JP6804668B2 (en) Block data validation method and equipment
EP3910513B1 (en) Blockchain-based data processing method and device
WO2021259147A1 (en) Block chain-based resource transfer method, apparatus and device
CN107450981A (en) A kind of block chain common recognition method and apparatus
CN107578238A (en) A risk control method and device
WO2019029455A1 (en) Payment method and apparatus and device thereof
CN111860011A (en) A kind of target graphic code identification method and device
EP3644254A1 (en) Virtual card opening method and system, payment system, and card issuing system
CN111028084A (en) Transaction processing method, device and equipment based on block chain
CN109271611B (en) Data verification method and device and electronic equipment
CN108881120A (en) A kind of data processing method and equipment based on block chain
US12111838B2 (en) Systems and methods for expedited large file processing
WO2021174997A1 (en) Cross-border payment method, apparatus, device and system
TW201937425A (en) Transaction processing method, server, client, and system
TWI710993B (en) Business processing method, device and equipment, and storage medium
CN110992164B (en) Transaction processing method, device, system and equipment based on block chain
WO2024114163A1 (en) Resource transfer processing method and apparatus
CN112330457A (en) UTXO-based transaction method and device in block chain and related product
CN111241494A (en) A method, device, equipment and medium for depositing evidence of jewelry design copyright
TW201606667A (en) System and method for detecting and alerting risks in refill transactions
WO2025060761A1 (en) Order settlement processing
CN113553519A (en) Interface address display method and device, computer equipment and storage medium
JP2018180787A (en) Change detection program, change detection method and change detection apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19740994

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19740994

Country of ref document: EP

Kind code of ref document: A1