Data processing method and device, equipment, storage medium and program product

By introducing sub-objects representing overlapping data regions into data objects and utilizing rule-based update and restore techniques, the flexibility issues in the data object splitting and merging process are resolved, enabling efficient processing of sensitive data in mobile storage devices.

CN118672979BActive Publication Date: 2026-11-20MASHANG CONSUMER FINANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410390064.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-01
Publication Date
2026-11-20
Estimated Expiration
2044-04-01

AI Technical Summary

Technical Problem

Existing technologies are not very flexible in the process of splitting and merging data objects, requiring changes to file names or reliance on other storage media, making it difficult to achieve partial transmission and partial reading of sensitive data in mobile storage devices.

Method used

By dividing the data object into sub-objects with overlapping data areas, and updating the overlapping areas using the first rule, a marked second data sub-object is obtained. Then, the overlapping areas are restored using the second rule to determine the connection relationship, and finally the sub-objects are merged.

Benefits of technology

It improves the flexibility and applicability of data processing without changing filenames or writing data, supports partial transmission and reading of sensitive data, and is suitable for various mobile storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672979B_ABST
    Figure CN118672979B_ABST
Patent Text Reader

Abstract

The application provides a data processing method, device and equipment, a storage medium and a program product. The method comprises the following steps: dividing a first data object into N first data sub-objects, and grouping the N first data sub-objects into a second data object; updating the data in the data overlap area in the second data object by using a first rule to obtain a third data object comprising N second data sub-objects; processing M second data sub-objects in the third data object by using a second rule to obtain a fourth data object comprising M third data sub-objects; and merging the M third data sub-objects in the fourth data object to obtain a fifth data object. In this way, the first data sub-objects are updated by using the first rule to mark the division position, the second data sub-objects are restored by using the second rule, and then the merging operation of the data is realized, thereby improving the universality of the application and the flexibility of the data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data processing method, apparatus, device, storage medium, and program product. Background Technology

[0002] Any data structure element referenced in an application, such as a file, image, or video, is called a data object. Sharing and exchanging data objects is a very important process, and the splitting and merging of data objects is even more crucial in data object sharing and exchange.

[0003] In related technologies, a data object can be divided into multiple sub-data objects, and the positional order of these sub-data objects can be recorded. Then, the filenames of the sub-data objects can be modified based on the positional order. Alternatively, the relationship data between the sub-data objects and their adjacent sub-data objects can be written to the file of each sub-data object to achieve splitting and merging operations based on the filenames or relationship data.

[0004] However, the above-mentioned data object splitting process requires changing the data object's file name, writing data into the data object, and relying on other storage media to achieve splitting, merging, and other processes. The operation is limited and the flexibility is poor. Summary of the Invention

[0005] This application provides a data processing method, apparatus, device, storage medium, and program product to improve the flexibility of data objects in the process of segmentation and merging.

[0006] Firstly, this application provides a data processing method, including:

[0007] The first data object is divided into N first data sub-objects, and the N first data sub-objects are combined into a second data object; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, where N is an integer greater than 1;

[0008] The data in the overlapping area of ​​the second data object is updated using the first rule to obtain a third data object that includes N second data sub-objects;

[0009] The second rule is used to process the M second data sub-objects in the third data object to obtain a fourth data object that includes M third data sub-objects; where M is an integer less than or equal to N; any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other;

[0010] The M third data sub-objects in the fourth data object are merged to obtain the fifth data object.

[0011] Secondly, this application provides a data processing apparatus, comprising:

[0012] The segmentation module is used to segment a first data object into N first data sub-objects and to combine the N first data sub-objects into a second data object; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, where N is an integer greater than 1;

[0013] The update module is used to update the data in the overlapping area of ​​the data in the second data object using the first rule, so as to obtain a third data object including N second data sub-objects;

[0014] The processing module is used to process the M second data sub-objects in the third data object using the second rule to obtain a fourth data object including the M third data sub-objects; where M is an integer less than or equal to N; any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other;

[0015] The merge module is used to merge the M third data sub-objects in the fourth data object to obtain the fifth data object.

[0016] Thirdly, this application provides an electronic device, including: a memory and at least one processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions in the memory to execute the data processing method as described in the first aspect.

[0017] Fourthly, this application provides a computer-readable storage medium on which a computer program is stored; when the computer program is executed, it implements the data processing method as described in the first aspect.

[0018] Fifthly, this application provides a computer program product, comprising: a computer program that, when executed by a processor, implements the data processing method as described in the first aspect.

[0019] This application provides a data processing method, apparatus, device, storage medium, and program product. Since each segmented first data sub-object has at least one connected first data sub-object, any two connected first data sub-objects have a data overlap area. Thus, after combining N first data sub-objects into a second data object, the first data sub-objects in the second data object are connected. The data in the data overlap area of ​​the second data object is updated according to a first rule, so that each second data sub-object in the updated third data object has a special marker to distinguish different second data sub-objects, and the second data sub-objects are also connected. Furthermore, before data merging, a first rule is used to... The second rule restores the overlapping areas of the M second data sub-objects to obtain M third data sub-objects. Since any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, each of the M second data sub-objects has a special mark. Based on the connection relationship between the M second data sub-objects, the connection relationship between the M third data sub-objects obtained after processing by the second rule can also be determined. Furthermore, based on the connection relationship, the M third data sub-objects are merged to obtain a fifth data object that meets the requirements. Here, M is less than or equal to N, indicating that some or all of the third data sub-objects can be merged.

[0020] In this way, this application can eliminate the need for any other storage medium to record the relationship and positional order of data sub-objects. Instead, it determines the connection relationship of each third data sub-object based on the same overlapping data area between the second data sub-objects, and then realizes the merging operation based on the connection relationship. Even in scenarios with constraints, such as not allowing the file name of the data sub-object to be changed or the data to be written into the data sub-object during the splitting process, this application can still realize the merging operation based on the above method. Therefore, this application is applicable to more scenarios, has a wider range of uses, and is not constrained by the above conditions. It can support data processing on various mobile storage devices and improve the flexibility of data processing. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram illustrating the principle of data object splitting and merging in an existing manner.

[0023] Figure 2 A schematic diagram illustrating a data processing method provided in an embodiment of this application;

[0024] Figure 3 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0025] Figure 4 A schematic diagram illustrating the principle of data object segmentation provided in an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of the data structure corresponding to a first data sub-object provided in an embodiment of this application;

[0027] Figure 6 This application provides a schematic diagram of a data structure corresponding to an overlapping data region.

[0028] Figure 7 A schematic diagram of a data structure for numerical updating based on a first rule is provided in an embodiment of this application;

[0029] Figure 8 This application provides a schematic diagram of a data structure corresponding to a data overlap range in an embodiment of the present application.

[0030] Figure 9 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0031] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0033] The terms "first" and "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the implementations of this application described herein can be implemented, for example, in an order other than that illustrated or described. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0034] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. " / " indicates an "or" relationship.

[0035] The following is an explanation of the technical terms used in this application.

[0036] Data objects: can refer to data such as files, images, or videos in a certain format.

[0037] Partial transmission: This can refer to transmitting only a portion of the data sub-objects when a data object is divided into N data sub-objects, where N is an integer greater than 1.

[0038] Partial reading: This can refer to directly reading and displaying the content of a portion of the data sub-objects on a mobile device, without needing to fully retrieve all the data sub-objects.

[0039] For example, any data structure element referenced in an application, such as a file, image, or video, is called a data object. Sharing and exchanging data objects is a very important process, and the splitting and merging of data objects is even more crucial in the sharing and exchange of data objects.

[0040] In one possible implementation, the data object can be divided into multiple data sub-objects, and the positional order of these multiple data sub-objects can be recorded. Then, the filenames of the data sub-objects can be modified based on the positional order. Alternatively, the relationship data between the data sub-objects and their adjacent data sub-objects can be written to the file of each data sub-object to achieve the splitting and merging operations based on the filenames or relationship data.

[0041] For example, Figure 1 This is a schematic diagram illustrating the principle of data object splitting and merging, as follows: Figure 1As shown, taking a data object as an example of a super-large data object, the super-large data object can refer to a data object containing more than a preset threshold. The super-large data object can be a file or an image. This application embodiment does not specifically limit the preset threshold or the type of super-large data object.

[0042] In portable storage devices such as USB flash drives and TF cards (Trans-flash cards), a large data object A can be divided into 16 data sub-objects, including data sub-objects 1-16. Since mobile devices do not have other storage media, such as databases, the filenames of these 16 data sub-objects can be modified to record that these 16 data sub-objects belong to data object A and their positional order. Furthermore, based on the modified filenames of the data sub-objects and their positional order, these 16 data sub-objects can be merged.

[0043] However, the above-mentioned data object splitting process requires changing the file name of the data sub-object or writing data into the data object, as well as relying on other storage media to realize the splitting and merging process, which is limited in operation and has poor flexibility.

[0044] In some scenarios, it is difficult to split and merge large data objects that are sensitive or confidential in a mobile storage device without changing the file names of the data objects or writing data into them.

[0045] It should be noted that for the extremely large data objects corresponding to sensitive data, different users only have partial permissions to the extremely large data objects. Therefore, it is necessary to implement partial transmission and partial reading functions for the data objects.

[0046] However, existing methods for implementing partial transmission and partial reading of data objects rely on other storage media, such as databases, to record the filenames and positional order of data sub-objects. Furthermore, in sensitive data or restricted scenarios, it is difficult to complete functions such as splitting, merging, partial transmission, and partial reading (or partial loading and display) on mobile storage devices.

[0047] To address the aforementioned issues, this application provides a data processing method. This method involves dividing a first data object into N first data sub-objects, each of which has at least one connected first data sub-object, such that any two connected first data sub-objects have a data overlap region. Further, the N first data sub-objects are combined to form a second data object, ensuring that the first data sub-objects within the second data object are connected. Furthermore, the data in the data overlap region of the second data object is updated using a first rule, resulting in each second data sub-object in the updated third data object having a unique marker to distinguish different second data sub-objects, and ensuring that the second data sub-objects are also connected.

[0048] Furthermore, before data merging, the overlapping areas of the M second data sub-objects are restored using the second rule to obtain M third data sub-objects. Since any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, each of the M second data sub-objects has a special marker. Based on the connection relationship between the M second data sub-objects, the connection relationship between the M third data sub-objects obtained after processing by the second rule can also be determined. Further, the M third data sub-objects are merged based on the connection relationship to obtain a fifth data object that meets the requirements. Since the processing of the first rule and the second rule are inverses of each other, the second rule can restore the overlapping areas of the M second data sub-objects.

[0049] In this way, this application can eliminate the need for any other storage medium to record the relationship and positional order of data sub-objects. Instead, it determines the connection relationship of each third data sub-object based on the same overlapping data area between the second data sub-objects, and then realizes the merging operation based on the connection relationship. Even in scenarios with constraints, such as not allowing the file name of the data sub-object to be changed or the data to be written into the data sub-object during the splitting process, this application can still realize the merging operation based on the above method. Therefore, this application is applicable to more scenarios, has a wider range of uses, and is not constrained by the above conditions. It can support data processing on various mobile storage devices and improve the flexibility of data processing.

[0050] It should be noted that the data processing method provided in this application can realize flexible processing of any partially connected data sub-objects, including partial transmission and partial reading. For example, the data in the overlapping area of ​​some data sub-objects can be transformed by the first rule and restored by the second rule, and then the restored partial data sub-objects can be merged to realize partial transmission and partial reading.

[0051] Next, the data processing method will be described in detail with reference to specific embodiments. Figure 2 This is a schematic diagram illustrating a data processing method provided in an embodiment of this application. Figure 2 As shown, the scenario includes: the user's terminal device 201.

[0052] Taking the reading of a data object as an example, when the terminal device 201 needs to read a certain data object, the terminal device 201 can divide the data object into multiple first data sub-objects, such as first data sub-objects 1-16. These first data sub-objects 1-16 are assembled into a file with a network structure according to the original position of the data object, forming a second data object, such as... Figure 2 As shown, each first data sub-object has a data overlap area with the connected first data sub-objects. Further, the data in the data overlap area of ​​each first data sub-object is updated according to the first rule, and then the updated data in the data overlap area is restored according to the second rule to obtain 16 third data sub-objects. Then, the 16 third data sub-objects are connected according to the relationship of the network structure to obtain the required fifth data object.

[0053] Furthermore, the fifth data object is visualized on the display interface of the terminal device 201.

[0054] If multiple third-party data sub-objects are connected together, they may form an irregular sphere or cylinder. Figure 2 The mesh structure of the first data sub-objects 1-16 shown is only a planar schematic diagram. The actual mesh structure of the first data sub-objects 1-16 is a three-dimensional structure. For example, the first data sub-objects adjacent to (connected to) the first data sub-object 1 are the first data sub-object 5, the first data sub-object 8, the first data sub-object 16 and the first data sub-object 13. The dashed first data sub-objects in the figure are given for the purpose of easy understanding.

[0055] It should be noted that the size of the data overlap area of ​​each first data sub-object is random, and the embodiments of this application do not specifically limit the size of the data overlap area.

[0056] Optionally, when the terminal device 201 needs to read a portion of the data sub-objects in a certain data object, it only needs to obtain a portion of the second data sub-objects and their corresponding adjacent second data sub-objects. Further, the data in the overlapping area of ​​the data of the portion of the second data sub-objects is restored based on the second rule, and then the restored portion of the second data sub-objects are connected based on the relationship of the network structure to obtain the required fifth data object.

[0057] Optionally, when the data object is transmitted, there are multiple terminal devices. Specifically, the first terminal device divides the data object into multiple first data sub-objects and assembles these multiple first data sub-objects into a second data object with a mesh structure according to the original position of the data object. Each first data sub-object will have a data overlap area with its adjacent first data sub-object. Further, the multiple first data sub-objects are updated based on a first rule to obtain a third data object including multiple second data sub-objects. Further, the third data object is sent to the second terminal device so that the second terminal device can process the multiple second data sub-objects in the third data object using a second rule to obtain multiple third data sub-objects. Then, the multiple third data sub-objects are connected based on the mesh structure relationship to obtain the desired fifth data object.

[0058] Optionally, the fifth data object can be visualized on a second terminal device.

[0059] It should be noted that the number of the first terminal device and the second terminal device is not specifically limited in the embodiments of this application, and can be determined based on the application scenario.

[0060] Optionally, when the first terminal device needs to transmit a portion of a data sub-object from a certain data object, it only needs to update the data in the overlapping area of ​​the data in the portion of the first data sub-object based on the first rule to obtain a portion of the second data sub-object. Further, the portion of the second data sub-object is transmitted to the second terminal device so that the second terminal device can restore the data based on the overlapping area of ​​the data in the portion of the second data sub-object using the second rule, and then connect the restored portion of the second data sub-object based on the relationship of the mesh structure to obtain the required fifth data object.

[0061] For example, four adjacent second data sub-objects, namely second data sub-object 3, second data sub-object 4, second data sub-object 7, and second data sub-object 8, can be sent to terminal device A, and four adjacent second data sub-objects, namely second data sub-object 9, second data sub-object 10, second data sub-object 13, and second data sub-object 14, can be sent to terminal device B. Terminal device A and terminal device B can restore the data in the overlapping areas of the second data sub-objects, and then merge and restore the various second data sub-objects for viewing.

[0062] It should be noted that if the data object is sensitive data, a second data object that needs to be partially transmitted and / or partially read can be obtained based on the user's permissions. Then, the required second data object can be processed based on the data processing method provided in this application for merging and viewing.

[0063] Terminal equipment can also be referred to as user equipment (UE), mobile station (MS), mobile terminal, or terminal. In practical applications, terminal equipment includes, for example, desktop computers, laptops, personal digital assistants (PDAs), smartphones, tablets, in-vehicle devices, wearable devices (such as smartwatches and smart bracelets), and smart home devices (such as smart display devices).

[0064] In some alternative embodiments, the scenario may also include a server that performs data processing, including data segmentation and merging, and then sends the merged fifth data object to the terminal device.

[0065] In this context, a server is a business unit that provides data processing, database, and other functions. A server can be a monolithic server or a distributed server spanning multiple computers or a computer data center. A server can include hardware, software, or embedded logical components or combinations of two or more such components to perform the appropriate functions supported or implemented by the server. Examples of servers include blade servers, cloud servers, or server clusters composed of multiple servers.

[0066] The terminal device and the server can communicate via a wired network or a wireless network. In this embodiment, the server can perform some of the functions of the terminal device.

[0067] For example, a data object can be uploaded to a server via a terminal device, and the server can process the data object using the data processing method provided in this application embodiment to obtain a fifth data object, which is then output by the terminal device.

[0068] It should be understood that Figure 2 This is merely a schematic diagram illustrating one application scenario provided by an embodiment of this application. This embodiment of the application does not necessarily represent an application scenario. Figure 2 The types and number of devices included are limited, for example, in Figure 2 The application scenarios shown may also include data storage devices for storing data objects. These data storage devices can be external storage devices or internal storage devices integrated into terminal devices or servers.

[0069] The technical solutions of the embodiments of this application and how the technical solutions of this application solve the above-mentioned technical problems are described in detail below with specific examples. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0070] Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application. It should be understood that the execution entity of this embodiment is the aforementioned terminal device or server, such as... Figure 3 As shown, the data processing method includes the following steps:

[0071] S301. Divide the first data object into N first data sub-objects, and combine the N first data sub-objects into a second data object; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, and N is an integer greater than 1.

[0072] In this embodiment, the data overlap region can refer to the region where the first data sub-object overlaps with the surrounding adjacent first data sub-objects when the first data sub-object is pieced together into a mesh structure. This embodiment does not specifically limit the size of the data overlap region.

[0073] It should be noted that the overlapping area of ​​each first data sub-object is random. Therefore, the probability that the overlapping areas of any two first data sub-objects will have exactly the same value is very low. As a result, the probability of data sub-object position disorder is very small and can be ignored.

[0074] In some embodiments, a first data object is divided into multiple first data sub-objects. These multiple first data sub-objects can be arranged into a network structure according to the original positional order of the first data object, thereby forming a second data object, such as... Figure 4 As shown in Figure A, each first data sub-object is separated from the first data sub-objects on the left and right by a first distance in the horizontal direction, and overlaps with the first data sub-objects on the top and bottom within a first range in the vertical direction. In this embodiment of the application, the first distance and the first overlapping range are not specifically limited, and their corresponding values ​​are random or can be set based on the application scenario.

[0075] Optionally, multiple first data sub-objects can also be arranged into a circular structure according to the original position order of the first data objects, such as... Figure 4As shown in Figure B, each first data sub-object overlaps with the adjacent first data sub-objects on the left and right sides within a second range only in the horizontal direction. In this embodiment of the application, the overlapping second range is not specifically limited, and its corresponding value is random or can be set based on the application scenario.

[0076] It is understandable that when the first data object is segmented, it may only be segmented horizontally. That is, the multiple first data sub-objects obtained by segmentation only overlap with the adjacent first data sub-objects in the vertical direction within a third range. In this application embodiment, the overlapping third range is not specifically limited, and its corresponding value is random or can be set based on the application scenario.

[0077] For example, Figure 4 This is a schematic diagram illustrating the principle of data object segmentation provided in an embodiment of this application, such as... Figure 4 As shown in Figure A, a very large data object, such as a data object exceeding a preset threshold, is divided into multiple first data sub-objects, such as first data sub-objects 1-16. These first data sub-objects 1-16 are then concatenated to form a structure as shown in Figure A. Figure 4 In the mesh structure shown in Figure A, taking the example that each first data sub-object has 4 data overlap areas with its adjacent first data sub-objects, the four corners of each first data sub-object will overlap with the adjacent first data sub-objects, and the data overlap areas are random.

[0078] Viewed horizontally, Figure 4 In the first data sub-object 8 of A, the upper right corner overlaps with the lower left corner of the first data sub-object 1, and the lower right corner of the first data sub-object 8 overlaps with the upper left corner of the first data sub-object 9; looking at it vertically, Figure 4 The top left corner of the first data sub-object A will overlap with the bottom right corner of the first data sub-object 16, and the top right corner of the first data sub-object 1 will overlap with the bottom left corner of the first data sub-object 13.

[0079] It should be noted that if multiple first data sub-objects are connected together, they may form an irregular sphere or cylinder. Figure 4 The mesh structure of the first data sub-objects 1-16 shown in Figure A is only a planar schematic diagram. The actual mesh structure of the first data sub-objects 1-16 is a three-dimensional structure. For example, the first data sub-object 1 is connected to the first data sub-objects 5, 8, 16 and 13. The dashed lines in the figure are for illustrative purposes. For example, the first data sub-objects 8' and 16' indicate that they are connected to the first data sub-object 1.

[0080] It should be noted that the embodiments of this application do not specifically limit the number of data overlap areas between the first data sub-object and adjacent first data sub-objects. For example, it can be... Figure 4 The overlapping four corner regions shown in A, or only two overlapping regions.

[0081] Optional, such as Figure 4 As shown in Figure B, a data object is divided into multiple first data sub-objects, such as first data sub-objects 1-3. These first data sub-objects 1-3 are then concatenated to form a structure as shown in Figure B. Figure 4 In the ring structure shown in B, taking the example that each first data sub-object has two overlapping regions with its adjacent first data sub-object, the overlapping regions of each first data sub-object are random.

[0082] Viewed horizontally, Figure 4 The left parts of the first data sub-object 1 and the first data sub-object 2 overlap in B, and the right part of the first data sub-object 2 overlaps with the left part of the first data sub-object 3.

[0083] It should be noted that, Figure 4 The annular structure of the first data sub-object 1-3 shown in Figure B is only a planar schematic diagram. In reality, the annular structure of the first data sub-object 1-3 is a three-dimensional structure, such as the connection between the first data sub-object 1 and the first data sub-object 3.

[0084] Among them, the ring structure corresponds to a cylinder, and the mesh structure corresponds to an irregular sphere.

[0085] S302. Update the data in the overlapping area of ​​the second data object using the first rule to obtain a third data object that includes N second data sub-objects.

[0086] In this embodiment of the application, the first rule is a predefined algorithm for updating the corresponding data within the data overlap area, so as to mark the data corresponding to the data overlap area of ​​the first data sub-object by the updated value, and then determine the connection relationship of the second data sub-object, that is, which second data sub-objects overlap with the second data sub-object.

[0087] Optionally, the first data sub-object is converted into binary data and filled into an array, such as a row with 1000 0s and 1s, and a total of 2000 rows. Further, the value corresponding to the data overlap area of ​​the first data sub-object and the adjacent first data sub-object is found, and the data is updated according to the first rule. The first rule is that if the corresponding values ​​in the data overlap areas of the two first data sub-objects are the same, the value remains unchanged; if the values ​​are different, each is incremented by 2. For example, if the data of 100 (first row) in the overlap area of ​​the first data sub-object 1 and 101 in the first data sub-object 5 are updated, the update result is: the data overlap area in the first data sub-object 1 becomes 102, the data overlap area in the first data sub-object 5 becomes 103, and the values ​​in other positions remain unchanged, thus obtaining the second data sub-object.

[0088] Since the first two digits of 100 are the same as the first two digits of 101, the value remains unchanged. The third digit is different, so 0 plus 2 becomes 2, and 1 plus 2 becomes 3.

[0089] It should be noted that the embodiments of this application do not specifically limit the way the first data sub-object is converted into an array. It can be converted into a binary array, or into a decimal, octal, etc. The embodiments of this application also do not specifically limit the algorithm corresponding to the first rule. It can be addition, subtraction, multiplication, or weighted algorithm, etc.

[0090] Optionally, when using the first rule to update the values ​​of overlapping data areas, the number of updated values ​​is not specifically limited. It can be +2 if the values ​​are different, or +3 if the values ​​are different, etc. In this application embodiment, the algorithm logic of the first rule is set, that is, if the values ​​at corresponding positions are the same, they remain unchanged, and if the values ​​are different, the values ​​are updated using a predefined algorithm.

[0091] S303. Process the M second data sub-objects in the third data object using the second rule to obtain a fourth data object including M third data sub-objects; where M is an integer less than or equal to N; any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other.

[0092] In this embodiment of the application, the second rule is the reverse process of the first rule, that is, the value in the overlapping area of ​​the data of the second data sub-object updated by the value is restored to the value corresponding to the original data object (first data object). For example, the first rule is that the value at the corresponding position is the same and remains unchanged, and the value is different and is increased by 2. Taking a binary array as an example, the second rule is that the value 1 and 0 at the corresponding position remain unchanged, and if the value is 2 and 3, it is decreased by 2 respectively.

[0093] It should be noted that the specific algorithm corresponding to the second rule is not limited in the embodiments of this application; it can be used to restore the numerical value corresponding to the original data object.

[0094] In some embodiments, a second data sub-object is randomly selected, the number of data overlapping regions is determined first, and then, for each data overlapping region, other second data sub-objects are traversed to find a second data sub-object whose data overlapping region is consistent with that of the second data sub-object. The values ​​in the data overlapping regions of the second data sub-object and the found second data sub-object are restored using a second rule to obtain a third data sub-object.

[0095] In other embodiments, the data overlap area of ​​the second data sub-object may be smaller than or equal to the data overlap area of ​​the first data sub-object. This application does not specifically limit this. For example, taking binary as an example, if the data overlap area of ​​a certain first data sub-object is represented as "11011 1103211003", then the data overlap area of ​​the second data sub-object is "32 03".

[0096] In this data set, "11011" represents the first row of data, "11032" represents the second row of data, and "11003" represents the third row of data. The length and width of the overlapping area of ​​the first data sub-object are 5*3. However, the overlapping area of ​​the second data sub-object is "32 03", which corresponds to "32" in the second row of data and "03" in the third row of data. The length and width of the overlapping area of ​​the second data sub-object are 2*2.

[0097] Therefore, when processing the second data sub-object using the second rule, we can first determine the data overlap area of ​​the second data sub-object, that is, how much the data overlap range of the second data sub-object is.

[0098] It should be noted that since the "0" and "1" in the first, second, and third rows of data do not need to be updated, the merging process is not affected even though the overlap of the data is reduced.

[0099] Optionally, for cases involving partial transmission and / or partial reading, in this step, some second data sub-objects can be determined based on the application scenario. Then, each of the M second data sub-objects with the same data overlap range is searched, and the data of the M second data sub-objects is restored using the second rule to obtain the fourth data object. Here, the M second data sub-objects can refer to one or more of all second data sub-objects, and in this case, M is less than N.

[0100] S304. Merge the M third data sub-objects in the fourth data object to obtain the fifth data object.

[0101] In some embodiments, after traversing all third data sub-objects, finding third data sub-objects with the same overlapping data area, and restoring the data of the aforementioned third data sub-objects to obtain a fourth data object, the position of each third data sub-object in the fourth data object within the entire mesh structure can be determined, and the third data sub-objects can be merged based on their positions to obtain a fifth data object.

[0102] In other embodiments, when merging the mesh structure corresponding to the third data sub-object, it is necessary to determine the position of the edge sub-object in the third data sub-object. Since the edge sub-object will overlap with the corresponding data sub-object on the other side horizontally or vertically, the position of the edge sub-object can be determined based on the number of data overlap areas of the first data sub-object or whether there is a data overlap area on one side of the first data sub-object when performing data object segmentation.

[0103] Furthermore, the position of the third data sub-object in the mesh structure is determined based on the position of the edge sub-object, and then the fourth data object is merged based on this position to obtain the fifth data object.

[0104] Therefore, the application provides a data processing method that, after dividing a first data object, can form a second data object with a mesh structure from N first data sub-objects. By updating the values ​​of the overlapping areas of the data in the first data sub-objects using a first rule, the second data sub-objects are obtained. Then, the same overlapping areas between the second data sub-objects can be restored using a second rule, and the connection relationships of each third data sub-object can be determined. This enables the data merging operation. Even in scenarios with extremely high security requirements, such as when modifying filenames or writing irrelevant data into data objects is not allowed, the connection relationships of each third data sub-object can still be determined based on the same overlapping areas between the second data sub-objects, and the merging operation can be performed based on the connection relationships, thereby improving the versatility of the application and the flexibility of data processing.

[0105] Optionally, for each data overlap region in the second data object, the data in the data overlap region is updated using the first rule, including:

[0106] A first array is determined based on the data of a first data sub-object in the data overlap region; and a second array is determined based on the data of another first data sub-object in the data overlap region; the first array and the second array have the same structure;

[0107] Determine the first value in the first array and the second value in the second array; the position of the first value in the first array corresponds to the position of the second value in the second array, and the first value and the second value are not the same.

[0108] Increase the preset value in both the first and second arrays.

[0109] In this context, the first data sub-object is connected to the other data sub-object, and the first data sub-object and the other data sub-object have overlapping data areas.

[0110] In this embodiment, the first array and the second array are merely representations of data sub-objects. The first array and the second array can be binary arrays, decimal arrays, octal arrays, etc., and this embodiment does not impose any specific limitations on them.

[0111] It should be noted that the preset value is a value that is preset in advance to update the value in the overlapping area of ​​the data, so as to distinguish it from the value in the original overlapping area of ​​the data. The preset value can be determined by the corresponding base. In this application embodiment, the size of the preset value is not specifically limited.

[0112] In some embodiments, the massive data object can be divided into 16 first data sub-objects, and then all 16 first data sub-objects can be converted to binary and filled into an array. Figure 5 This is a schematic diagram of the data structure corresponding to a first data sub-object provided in an embodiment of this application, such as... Figure 5 As shown, each of the first data sub-objects 1-16 has a length of 25, and there are 14 rows in total. Each row corresponds to the values ​​"0" and "1", which are used to represent the data corresponding to the binary representation of the first data sub-object.

[0113] Optionally, the first and second arrays can have the same number of rows and columns. Figure 6 This application provides a schematic diagram of a data structure corresponding to an overlapping data region, as shown in the embodiment of the present application. Figure 6 As shown, the first array is determined based on the overlapping area of ​​the first data sub-object 1, and the second array is determined based on the overlapping area of ​​the first data sub-object 5. The area within the dashed box is the overlapping area of ​​the two first data sub-objects. The length and width of the overlapping area of ​​the first data sub-object 1 and the first data sub-object 5 are the same, that is, the length and width of the first array and the second array are the same.

[0114] The first array is “100 011”, and the second array is “101 101”.

[0115] It should be noted that the specific size of the length and width of the overlapping area is not limited in the embodiments of this application, as long as the length and width of the overlapping area of ​​the two overlapping first data sub-objects are the same.

[0116] Optional, with Figure 4Taking the schematic diagram as an example, when the first data sub-object 5, first data sub-object 1, first data sub-object 2, first data sub-object 9, and first data sub-object 10 form a second data object with a mesh structure, the length and width of the data overlap area of ​​the upper left corner of the first data sub-object 5 and the lower right corner of the first data sub-object 1 can be randomly generated, such as length = 3 and width = 2.

[0117] In this embodiment of the application, the first value and the second value are values ​​that need to be changed. The purpose of updating the first value and the second value is to mark the position of the first data sub-object and establish the connection relationship between the first data sub-object and other overlapping first data sub-objects. For example, after updating the first value or the second value in a certain first data sub-object, a unique second data sub-object can be obtained.

[0118] It should be noted that since the data overlap area of ​​each first data sub-object is random, the probability that the data overlap areas of any two first data sub-objects will randomly have the exact same value is very low. Correspondingly, the probability that the second data sub-object obtained by updating the first data sub-object will have the same other second data sub-object is very low, so it can be ignored.

[0119] Optionally, if there are other second data sub-objects that are identical to a certain second data sub-object, then when merging the third data sub-objects later, the erroneous second data sub-objects can be filtered out, because if the second data sub-object is erroneous, it may cause errors in the mesh structure and prevent data merging.

[0120] For example, Figure 7 A schematic diagram of a data structure for numerical updating based on a first rule is provided in an embodiment of this application, as shown below. Figure 7 As shown, taking the first rule—that values ​​at corresponding positions remain unchanged if they are the same, and increase by 2 (preset value) for each different value—as an example, Figure 7 The update process for the overlapping data area is as follows: 100 (first row) in the first array of the first data sub-object 1 and 101 (first row) in the second array of the first data sub-object 5 are updated with values. The update result is that the overlapping data area of ​​the first data sub-object 1 becomes 102, and the overlapping data area of ​​the first data sub-object 5 becomes 103. 011 (second row) in the first array of the first data sub-object 1 and 101 (second row) in the second array of the first data sub-object 5 are updated with values. The update result is that the overlapping data area of ​​the first data sub-object 1 becomes 231, and the overlapping data area of ​​the first data sub-object 5 becomes 321.

[0121] In this array, “0” in the first array 100 (first row) is the first value, “1” in the second array 101 is the second value, “0 and 1” in the first array 011 (second row) is the first value, and “1 and 0” in the second array 101 (second row) is the second value.

[0122] It should be noted that the processing methods for the first and second arrays of other first data sub-objects are similar and will not be repeated here, in order to complete the update operation of all first data sub-objects.

[0123] Therefore, this application can convert multiple first data sub-objects after segmentation into arrays and determine the overlapping areas of data in the arrays corresponding to the first data sub-objects. That is, the first array and the second array are used for subsequent numerical conversion calculations, which improves processing efficiency and convenience and can be used directly in mobile storage devices.

[0124] Furthermore, based on the first rule, the overlapping areas of all first data sub-objects are updated to obtain second data sub-objects, which are then used to mark the positions of the first data sub-objects. This eliminates the need for other storage media to record the relationships and order of the data sub-objects, thus improving the convenience of the application.

[0125] Optionally, for each of the M second data sub-objects, the second rule is used to process the second data sub-object, including:

[0126] Determine the data overlap range of the second data sub-object, and find the second data sub-object with the same data overlap range among M second data sub-objects;

[0127] Identify the values ​​to be converted within the overlapping range of data;

[0128] The second rule is used to reduce the values ​​to be converted in the second data sub-object and the second data sub-object with the same data overlap range by a preset value.

[0129] In this embodiment of the application, the data overlap range may be smaller than the data overlap area or equal to the data overlap area, which is determined based on the actual situation.

[0130] For example, when splitting data objects, the randomly generated data overlap area may be 3*4, but the first 3 values ​​(101) in the 4th row only contain 1 and 0, indicating that the data overlap area in the lower right corner of another first data sub-object also corresponds to the value 101 (only when the two values ​​are the same will it remain unchanged). Therefore, although the determined data overlap range has become smaller, it does not affect the merging.

[0131] In some embodiments, an application scenario can be obtained, and a second data sub-object to be processed can be determined based on the application scenario; for each second data sub-object to be processed, the data overlap range of the second data sub-object can be determined, and a second data sub-object with the same data overlap range can be found; the value to be converted within the data overlap range can be determined; and the value to be converted in both the second data sub-object and the second data sub-object with the same data overlap range can be reduced by a preset value using a second rule.

[0132] The application scenario can refer to scenarios such as transmitting all data objects, transmitting some data objects, reading all data objects, reading some data objects, and whether sensitive data is involved. For different application scenarios, different numbers of second data sub-objects that need to be processed can be determined.

[0133] It should be noted that the embodiments of this application do not specifically limit the number of second data sub-objects determined based on the application scenario.

[0134] For example, the processing procedure for any second data sub-object includes: taking the second data sub-object having four data overlap regions and the second data sub-object being a binary array as an example, for a randomly selected second data sub-object, determining the data overlap range in the upper left corner, the method of determination is to find the maximum range including the value 2 or 3.

[0135] For example, if the data overlap region is "10201 10301 10212", then the determined data overlap range is "201 301212".

[0136] Furthermore, iterate through the data overlap range of the lower right corner of other second data sub-objects, and determine whether the data overlap range of the lower right corner of other second data sub-objects is the same as that of this second data sub-object. If they are the same, then use the second rule to restore the value to be converted in the data overlap range of the lower right corner of this second data sub-object, and restore the value to be converted in the second data sub-object with the same data overlap range. The second rule is: if the value is 1 and 0, it remains unchanged; if it is 2 and 3, then subtract 2 respectively.

[0137] It should be noted that the overlapping data ranges at the top right, bottom right, and bottom left corners of the second data sub-object undergo similar operations as described above, which will not be repeated here.

[0138] For example, Figure 8 This is a schematic diagram of a data structure corresponding to a data overlap range provided in an embodiment of this application, such as... Figure 8As shown, the maximum range corresponding to a randomly selected second data sub-object, i.e., the data overlap range is a 3*3 range, including "103 321 103"; the data overlap area of ​​the first data sub-object corresponding to this second data sub-object may be "10301 32101 10301 10101".

[0139] It should be noted that since the "0" and "1" in the data overlap area do not need to be numerically restored, the data overlap range is determined to be the maximum range containing the value 2 or 3.

[0140] Furthermore, the values ​​to be converted in the overlapping data range "103 321 103" are restored to "101 101 101", while the other values ​​in the second data sub-object and the second data sub-object with the same overlapping data range remain unchanged.

[0141] It should be noted that in this step, the process of determining the value to be converted is to find a value that is equal to n or equal to m, where n is the sum of the preset value and the first value; and m is the sum of the preset value and the second value.

[0142] Optionally, when the first transformation rule corresponds to addition, based on the second rule, the values ​​to be transformed in the second data sub-object and the second data sub-object with the same data overlap range are reduced by a preset value.

[0143] Similarly, the inverse process of the various possible implementations of the first rule described above is the reverse transformation rule, which is not specifically limited in the embodiments of this application.

[0144] Optionally, if there are multiple second data sub-objects with the same overlapping range as the data, then when merging the third data sub-objects later, the erroneous second data sub-objects can be filtered out, because if the second data sub-object is erroneous, it will cause the mesh structure to be erroneous and the data merging will not be possible.

[0145] Therefore, by finding the data overlap range in this application to perform subsequent data restoration using the second rule, the amount of data restored can be reduced, and the speed of data restoration using the second rule can be improved.

[0146] Optionally, determine the data overlap range of the second data sub-object, including:

[0147] Search sequentially from the edge of the second data sub-object, column or row, and determine whether the current column or row contains data equal to n or m; n is the sum of the preset value and the first value; m is the sum of the preset value and the second value;

[0148] If it is contained, the current column or row is added to the data overlap range until the current column or row does not contain data equal to n or m.

[0149] For example, taking the case where the data overlap range of the second data sub-object has two parts, such as... Figure 4 As shown in B, taking the second data sub-object as a binary 0-1 array and the preset value as 2 as an example, when the second data sub-object is "110201110301 110212", it searches from the column on the side

[112] to determine whether it contains data equal to 2 or 3. If it does, this column is added to the data overlap range. The number of columns is added in sequence until it is determined that the last column does not contain data equal to 2 or 3. Then the data overlap range determined by the second data sub-object is "201 301 212".

[0150] Optionally, if the first data object is split horizontally, the determined data overlap range can be searched row by row. For example, if the second data sub-object is "10201 10302 10001", then the determined data overlap range is "10201 10302".

[0151] It should be noted that, Figure 4 The image shown in section B is a vertically segmented image.

[0152] Therefore, the embodiments of this application can determine the data overlap range by row-by-row or column-by-column, reducing data omissions and improving the speed and accuracy of determining the data overlap range.

[0153] Optionally, determine the data overlap range of the second data sub-object, including:

[0154] Search sequentially from the edge of the second data sub-object, and determine whether the current column contains data equal to n or m; n is the sum of the preset value and the first value; m is the sum of the preset value and the second value;

[0155] If it contains data, add the current column to the first area until the current column no longer contains data equal to n or m.

[0156] Search sequentially from the edge of the first region, and determine whether the current row contains data equal to n or m;

[0157] If it contains data, add the current row to the data overlap range until the current row does not contain data equal to n or m.

[0158] It should be noted that the data overlap range includes at least one row, at least one column, and at least one row and at least one column contain a value equal to n or equal to m.

[0159] For example, taking a second data sub-object with four overlapping data ranges as an example, such as... Figure 4 As shown in Figure A, taking the second data sub-object as a binary 0-1 array and the preset value as 2 as an example, when the second data sub-object is "110201110302 110001", it searches from the edge column

[121] to determine whether it contains data equal to 2 or 3. If it does, this column is added to the first region. The number of columns is added sequentially until it is determined that the last column does not contain data equal to 2 or 3. The determined first region is "201 302 001". Further, it searches sequentially from the edge of the first region. The first row is

[201] . It is determined whether it contains data equal to 2 or 3. If it does, this row is added to the data overlap range. The number of rows is added sequentially until it is determined that the last row does not contain data equal to 2 or 3. The determined data overlap range is "201 302".

[0160] Optionally, search sequentially from the edge of the second data sub-object and determine whether the current row contains data equal to n or equal to m; n is the sum of the preset value and the first value; m is the sum of the preset value and the second value;

[0161] If it contains data, add the current row to the second region until the current row does not contain data equal to n or m.

[0162] Search sequentially from the edge of the second region, and determine whether the current column contains data equal to n or m;

[0163] If it contains data, add the current column to the data overlap range until the current column does not contain data equal to n or m.

[0164] It should be noted that when the data overlap area is located in a corner, the above method can also be used to determine the range of data overlap, such as... Figure 4 As shown in B, although there are two data overlap ranges for the second data sub-object, if the columns or rows in the data overlap range do not completely cover each other, but rather the data overlap range corresponding to a corner as shown in A in 4, the data overlap range can also be determined in the above way.

[0165] Therefore, when determining the range of data overlap, the selection method can be based on the actual situation, and the embodiments of this application do not impose specific limitations on this.

[0166] Therefore, the embodiments of this application can determine the data overlap range in different ways for different situations, which improves the flexibility of determining the data overlap range.

[0167] Optionally, the M third data sub-objects in the fourth data object are merged to obtain the fifth data object, including:

[0168] Based on the location of the overlapping data region in each third data sub-object, determine the edge data sub-object and the initial order of the edge data sub-object;

[0169] The initial order of the M third data sub-objects is determined based on the data in the overlapping areas of the edge data sub-objects and the initial order;

[0170] The fifth data object is obtained by concatenating the data based on the initial order of the M third data sub-objects.

[0171] In this embodiment of the application, when merging the third data sub-object, it is necessary to determine the edge data sub-object, that is, the data sub-object located at the edge of the data object after being segmented. Based on the position of the edge data sub-object and the mesh structure corresponding to each third data sub-object, the fifth data object can be obtained.

[0172] Optionally, when the number of overlapping data regions corresponding to the third data sub-object is less than a specific threshold, the third data sub-object can be determined as an edge file. The specific threshold can be determined based on the segmentation situation. For example, if the overlapping data regions corresponding to the third data sub-object are four-corner regions, then the third data sub-object with less than two overlapping data regions can be determined as an edge data sub-object.

[0173] Optionally, edge data sub-objects can be determined based on the number of third data sub-objects with connected relationships corresponding to the third data sub-object; when the number of third data sub-objects with connected relationships is less than a certain threshold, the third data sub-object can be determined as an edge data sub-object.

[0174] It should be noted that the method for determining edge data sub-objects is not specifically limited in the embodiments of this application.

[0175] For example, taking six adjacent third data sub-objects—third data sub-object 3, third data sub-object 4, third data sub-object 6, third data sub-object 7, third data sub-object 8, and third data sub-object 11—as an example, based on the position of the data overlap area in each third data sub-object, the edge data sub-objects can be determined as third data sub-object 3, third data sub-object 4, and third data sub-object 8. Further, based on the positions of third data sub-object 3, third data sub-object 4, and third data sub-object 8, the initial order of these three third data sub-objects can be determined as 3-4-8. Further, based on the data overlap area in the edge data sub-objects, third data sub-objects with the same data overlap area are searched, and the initial order of third data sub-object 3, third data sub-object 4, third data sub-object 6, third data sub-object 7, third data sub-object 8, and third data sub-object 11 is determined as 3-4-6-7-8-11. Further, the data is concatenated to obtain the fifth data object.

[0176] Optionally, the edge data sub-objects and their initial order can be determined based on the location of each first data sub-object in the data overlap area, and the edge data sub-objects can be marked for subsequent use. Alternatively, the edge data sub-objects and their initial order can be determined based on the location of each second data sub-object in the data overlap area. The method for determining the edge data sub-objects in this application embodiment is not specifically limited.

[0177] Therefore, the embodiments of this application can determine the initial order of the third data sub-object based on the edge sub-file and its corresponding initial order, and then perform data merging based on the initial order of the third data sub-object, thereby improving the accuracy of data merging.

[0178] Optionally, the method also includes:

[0179] The first rule is used to update the data in the overlapping areas of the M third data sub-objects to obtain M fifth data sub-objects;

[0180] Verify whether the data in the overlapping areas of the M fifth data sub-objects and the M second data sub-objects are consistent.

[0181] For example, taking a third data sub-object as an example, the first rule is used to update the data overlapping area of ​​the third data sub-object to obtain a fifth data sub-object. Further, it is determined whether the data in the overlapping area of ​​the fifth data sub-object is consistent with that in the corresponding second data sub-object.

[0182] If they match, it means that the process of updating the first data sub-object by the first rule is correct; if they do not match, a prompt message can be generated to prompt the user to check the data object processing process and determine the problem; or S301-S304 can be re-executed. This application embodiment does not specifically limit the processing method after the verification process is wrong.

[0183] Optionally, the overlapping areas of the third data sub-object are validated using a predefined validation algorithm to determine whether the update process of the first data sub-object is correct; the third data sub-object may be the same as or different from the first data sub-object when the data object is split.

[0184] Therefore, the embodiments of this application can also verify the data overlap area of ​​the third data sub-object, thereby improving the accuracy of data updates.

[0185] In the foregoing embodiments, the data processing method provided by the embodiments of this application has been described. To implement the functions of the methods provided by the embodiments of this application, the electronic device serving as the execution subject may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0186] Figure 9 This is a schematic diagram of a data processing device provided in an embodiment of this application. The data processing device can be implemented using software and / or hardware. In practical applications, this data processing device can be integrated into the aforementioned terminal device or server.

[0187] like Figure 9 As shown, the data object device 900 includes: a segmentation module 901, used to segment a first data object into N first data sub-objects, and to form a second data object from the N first data sub-objects; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, and N is an integer greater than 1;

[0188] Update module 902 is used to update the data in the overlapping area of ​​the data in the second data object using the first rule, so as to obtain a third data object including N second data sub-objects;

[0189] Processing module 903 is used to process M second data sub-objects in the third data object using the second rule to obtain a fourth data object including M third data sub-objects; where M is an integer less than or equal to N; any second data sub-object among the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other;

[0190] The merging module 904 is used to merge the M third data sub-objects in the fourth data object to obtain the fifth data object.

[0191] Optional, update module 902, specifically used for:

[0192] A first array is determined based on the data of a first data sub-object in the data overlap region; and a second array is determined based on the data of another first data sub-object in the data overlap region; the first array and the second array have the same structure;

[0193] Determine the first value in the first array and the second value in the second array; the position of the first value in the first array corresponds to the position of the second value in the second array, and the first value and the second value are not the same.

[0194] Increase both the first and second values ​​by the preset value.

[0195] Optional, processing module 903, specifically used for:

[0196] Determine the data overlap range of the second data sub-object, and find the second data sub-object with the same data overlap range among M second data sub-objects;

[0197] Identify the values ​​to be converted within the overlapping range of data;

[0198] The second rule is used to reduce the values ​​to be converted in the second data sub-object and the second data sub-object with the same data overlap range by a preset value.

[0199] Optionally, the processing module 903 includes a determining unit, which is used to:

[0200] Search sequentially from the edge of the second data sub-object, column or row, and determine whether the current column or row contains data equal to n or m; n is the sum of the preset value and the first value; m is the sum of the preset value and the second value;

[0201] If it is contained, the current column or row is added to the data overlap range until the current column or row does not contain data equal to n or m.

[0202] Optional, define the unit for:

[0203] Search sequentially from the edge of the second data sub-object, and determine whether the current column contains data equal to n or m; n is the sum of the preset value and the first value; m is the sum of the preset value and the second value;

[0204] If it contains data, add the current column to the first area until the current column no longer contains data equal to n or m.

[0205] Search sequentially from the edge of the first region, and determine whether the current row contains data equal to n or m;

[0206] If it contains data, add the current row to the data overlap range until the current row does not contain data equal to n or m.

[0207] Optional, merging module 904, specifically used for:

[0208] Based on the location of the overlapping data region in each third data sub-object, determine the edge data sub-object and the initial order of the edge data sub-object;

[0209] The initial order of the M third data sub-objects is determined based on the data in the overlapping areas of the edge data sub-objects and the initial order;

[0210] The fifth data object is obtained by concatenating the data based on the initial order of the M third data sub-objects.

[0211] The specific implementation principle and effects of the data processing device provided in this application embodiment can be found in the relevant descriptions and effects of the above embodiments, and will not be elaborated further here.

[0212] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device 1000 includes: a processor 1001, a memory 1002, a communication interface 1003, and a system bus 1004.

[0213] The memory 1002 and the communication interface 1003 are connected to the processor 1001 via the system bus 1004 and communicate with each other. The memory 1002 is used to store program instructions, the communication interface 1003 is used to communicate with other devices, and the processor 1001 is used to call the program instructions in the memory to execute the data processing method scheme as described in the above method embodiment.

[0214] Specifically, the processor 1001 may include one or more processing units. For example, the processor 1001 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0215] The memory 1002 can be used to store program instructions. The memory 1002 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback), etc. The data storage area may store data created during the use of the electronic device 1000 (such as audio data), etc. Furthermore, the memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 1001 executes various functional applications and data processing of the electronic device 1000 by running the program instructions stored in the memory 1002.

[0216] The communication interface 1003 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on the electronic device 1000. The communication interface 1003 can receive electromagnetic waves via an antenna, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The communication interface 1003 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna. In some embodiments, at least some functional modules of the communication interface 1003 can be housed in the processor 1001. In some embodiments, at least some functional modules of the communication interface 1003 and at least some modules of the processor 1001 can be housed in the same device.

[0217] System bus 1004 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus 1004 can be divided into address bus, data bus, control bus, etc. For ease of illustration, it is represented by only one thick line in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0218] It should be noted that the number of memory 1002 and processor 1001 is not limited in this embodiment; there can be one or more of them. Figure 10 The diagram illustrates an example; the memory 1002 and processor 1001 can be connected via wired or wireless means, such as a bus connection. In practical applications, the electronic device 1000 can be various forms of computers or mobile terminals. Computers include, for example, laptops, desktop computers, workbenches, servers, blade servers, mainframe computers, etc.; mobile terminals include, for example, personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices.

[0219] The electronic device in this embodiment can be used to execute the technical solution of the data processing method in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0220] This application also provides a computer-readable storage medium storing a computer program, which, when executed, implements the data processing method as described in any of the above embodiments.

[0221] This application also provides a chip for executing instructions, which is used to perform the data processing method described in any of the foregoing embodiments executed by an electronic device as described in any of the foregoing embodiments of this application.

[0222] This application also provides a computer program product comprising a computer program stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the various steps of the data processing methods provided in the various embodiments described above.

[0223] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0224] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0225] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0226] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0227] It should be understood that the aforementioned storage media can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage media can be any available medium accessible to general-purpose or special-purpose computers.

[0228] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0229] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0230] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0231] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.

[0232] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.

[0233] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A data processing method, characterized in that, include: The first data object is divided into N first data sub-objects, and the N first data sub-objects are combined to form a second data object; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, and N is an integer greater than 1; The data in the overlapping area of ​​the second data object is updated using the first rule to obtain a third data object that includes N second data sub-objects; the updated data in the overlapping area is used to represent the connection relationship between the second data sub-objects. Based on the updated data in the overlapping data area, determine the connection relationships between the M second data sub-objects in the third data object; The M second data sub-objects are processed using the second rule to obtain a fourth data object including M third data sub-objects; where M is an integer less than or equal to N; any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other; The M third data sub-objects in the fourth data object are merged according to the connection relationship to obtain the fifth data object.

2. The method according to claim 1, characterized in that, For each data overlap region in the second data object, the data in the data overlap region is updated using the first rule, including: A first array is determined based on data from a first data sub-object in the data overlap region; and a second array is determined based on data from another first data sub-object in the data overlap region; the first array and the second array have the same structure. Determine a first value in the first array and a second value in the second array; the position of the first value in the first array corresponds to the position of the second value in the second array, and the first value and the second value are not the same. Increase both the first value and the second value by a preset value.

3. The method according to claim 1, characterized in that, For each of the M second data sub-objects, the second data sub-object is processed using the second rule, including: Determine the data overlap range of the second data sub-object, and search for second data sub-objects with the same data overlap range among the M second data sub-objects; Determine the value to be converted within the overlapping range of the data; The second rule is used to reduce the values ​​to be converted in the second data sub-object and the second data sub-object with the same data overlap range by a preset value.

4. The method according to claim 3, characterized in that, Determining the data overlap range of the second data sub-object includes: Search sequentially from a column or row at the edge of the second data sub-object, and determine whether the current column or row contains data equal to n or equal to m; n is the sum of a preset value and a first value; m is the sum of a preset value and a second value; If it is contained, the current column or row is added to the data overlap range until the current column or row does not contain data equal to n or m.

5. The method according to claim 3, characterized in that, Determining the data overlap range of the second data sub-object includes: Search sequentially from one column at the edge of the second data sub-object, and determine whether the current column contains data equal to n or equal to m; n is the sum of a preset value and a first value; m is the sum of a preset value and a second value; If it contains data, add the current column to the first area until the current column no longer contains data equal to n or m. Search sequentially from the edge of the first region, and determine whether the current row contains data equal to n or equal to m; If it contains data, add the current row to the data overlap range until the current row does not contain data equal to n or m.

6. The method according to claim 1, characterized in that, The step of merging the M third data sub-objects in the fourth data object according to the connection relationship to obtain the fifth data object includes: Based on the location of the data overlap region in each third data sub-object, determine the edge data sub-object and the initial order of the edge data sub-object; The initial order of the M third data sub-objects is determined based on the data in the overlapping area of ​​the edge data sub-objects and the initial order. The data is concatenated based on the initial order of the M third data sub-objects to obtain the fifth data object.

7. A data processing apparatus, characterized in that, include: The segmentation module is used to segment a first data object into N first data sub-objects, and to combine the N first data sub-objects into a second data object; wherein, in the second data object, each first data sub-object has at least one first data sub-object connected to it, and any two connected first data sub-objects have a data overlap region, and N is an integer greater than 1; The update module is used to update the data in the overlapping area of ​​the second data object using a first rule, so as to obtain a third data object including N second data sub-objects; the updated data in the overlapping area is used to represent the connection relationship between the second data sub-objects. The processing module is used to determine the connection relationship between M second data sub-objects in the third data object based on the updated data overlap area; process the M second data sub-objects using a second rule to obtain a fourth data object including M third data sub-objects; wherein M is an integer less than or equal to N; any one of the M second data sub-objects has a data overlap area with at least one other second data sub-object, and the processing of the first rule and the second rule are inverses of each other; The merging module is used to merge the M third data sub-objects in the fourth data object according to the connection relationship to obtain the fifth data object.

8. An electronic device, characterized in that, include: A memory and at least one processor, wherein the memory is used to store program instructions and the processor is used to invoke the program instructions in the memory to perform the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The readable storage medium stores a computer program; when the computer program is executed, it implements the method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, include: A computer program, when executed by a processor, implements the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data management method, system, device and equipment in data warehouse and medium

    CN116991794A