Data processing method, device, electronic device and readable storage medium
By constructing a data bitmap set and filtering target data bitmaps, the problem of long user data transfer time in the existing technology is solved, rapid user data transfer is achieved, and user experience and performance are improved.
Patent Information
- Application Number
- CN202410930955.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The existing user data transfer restriction method requires the transfer records to be read from the cache for verification when a large amount of user data is transferred, resulting in a longer transfer time and reduced user experience.
By acquiring multiple user data bitmaps to be transferred, a data bitmap collection is constructed, which contains target data bitmaps with different limits on the number of transfers. The qualified target data bitmaps are filtered based on the number of transfers and sent directly to avoid caching. Reading and verification.
It realizes the rapid transfer of user data while meeting the user data transfer restrictions, and significantly improves the performance indicators of batch user data transfer.
Smart Images

Figure CN118467208B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data flow restriction, and in particular to a data processing method, device, electronic device and readable storage medium. Background Art
[0002] The existing user data flow restriction function is implemented by storing the flow records of user data in the cache during data flow, and then using the flow records in the cache to verify in each user data flow process to filter out the repeated user data. However, this user data flow restriction method requires reading the flow records from the cache and verifying them for each user data, so when a large number of user data are flowing, the user data flow time is long, which reduces the user experience. Summary of the invention
[0003] In view of this, embodiments of the present application provide a data processing method, device, electronic device, and readable storage medium.
[0004] According to the first aspect of the present application, an embodiment of the present application provides a data processing method, including:
[0005] A plurality of user data bitmaps to be transferred are obtained; the user data bitmap includes at least one user data;
[0006] Based on multiple user data bitmaps, a data bitmap set is constructed; the data bitmap set includes multiple target data bitmaps corresponding to different restricted flow times; the target data bitmap includes each user data under the same restricted flow times;
[0007] Based on the data bitmap set, determine the target data bitmap that meets the data screening condition; the data screening condition includes the target number of times of limiting the flow of user data;
[0008] Send out the target data bitmap that meets the data screening conditions.
[0009] Optionally, based on multiple user data bitmaps, a data bitmap set is constructed, including:
[0010] A union operation and an intersection operation are performed on multiple user data bitmaps to obtain a data bitmap set.
[0011] Optionally, a union operation and an intersection operation are performed on multiple user data bitmaps to obtain a data bitmap set, including:
[0012] For each user data bitmap in the multiple user data bitmaps, select the first data bitmap in the second data bitmap set to perform a union operation and an intersection operation with the user data bitmap to obtain a first union and a first intersection; wherein the initial value of the second data bitmap set is empty;
[0013] If the first intersection is not empty and there is a second data bitmap in the second data bitmap set, perform a union operation and an intersection operation on the first intersection and the second data bitmap in the second data bitmap set, and so on, until an empty nth intersection is generated or the last data bitmap in the second data bitmap set is traversed, and n≥2;
[0014] The first union...n-1th union, and n-1th intersection are used as target data bitmaps for limiting the flow of user data 1 time...limiting the flow n-1 times, and limiting the flow n times, and replace the first data bitmap...n-1th data bitmap, and nth data bitmap of the second data bitmap set to refresh the second data bitmap set and obtain a data bitmap set.
[0015] Optionally, if the first intersection is empty, the first union is used as the target data bitmap for limiting the flow of user data once, and replaces the first data bitmap of the second data bitmap set to refresh the second data bitmap set to obtain a data bitmap set.
[0016] Optionally, if the first intersection is not empty and the second data bitmap does not exist in the second data bitmap set, the first union and the first intersection are used as target data bitmaps for limiting the flow of user data once and twice, and the first data bitmap and the second data bitmap of the second data bitmap set are replaced to refresh the second data bitmap set and obtain a data bitmap set.
[0017] Optionally, based on the data bitmap set, determining a target data bitmap that meets the data screening condition includes:
[0018] From the data bitmap set, a target data bitmap whose restricted flow times are less than or equal to the target restricted flow times of the user data is selected to obtain a target data bitmap that meets the data screening condition.
[0019] Optionally, the data processing method further includes:
[0020] Determine the total amount of user data in the target data bitmap that meets the data screening condition;
[0021] Displays the total quantity.
[0022] According to a second aspect of the present application, an embodiment of the present application provides a data processing device, including:
[0023] An acquisition module, used to acquire a plurality of user data bitmaps to be transferred; the user data bitmap includes at least one user data;
[0024] A construction module, for constructing a data bitmap set based on a plurality of user data bitmaps; the data bitmap set includes a plurality of target data bitmaps corresponding to different restricted flow times; the target data bitmap includes each user data under the same restricted flow times;
[0025] A determination module, for determining a target data bitmap that meets a data screening condition based on a data bitmap set; the data screening condition includes a target number of times that user data is restricted from flowing;
[0026] The sending module is used to send out the target data bitmap that meets the data screening conditions.
[0027] According to a third aspect of the present application, an embodiment of the present application provides an electronic device, including:
[0028] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the data processing method as in the first aspect or any embodiment of the first aspect.
[0029] According to the fourth aspect of the present application, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute a data processing method as in the first aspect or any embodiment of the first aspect.
[0030] The data processing method, device, electronic device and readable storage medium provided by the embodiments of the present application are as follows: a plurality of user data bitmaps to be transferred are obtained; the user data bitmap includes at least one user data; a data bitmap set is constructed based on the plurality of user data bitmaps; the data bitmap set includes a plurality of target data bitmaps corresponding one-to-one to different restricted transfer times; the target data bitmap includes each user data under the same restricted transfer times; based on the data bitmap set, a target data bitmap that meets the data screening condition is determined; the data screening condition includes the target number of restricted transfers of the user data; the target data bitmap that meets the data screening condition is sent out; in this way, when the node obtains the plurality of user data bitmaps to be transferred, the plurality of user data bitmaps are directly converted into a plurality of target data bitmaps corresponding one-to-one to different restricted transfer times, and the user data that meets the target number of restricted transfers of the user data can be quickly filtered out, and the transfer records no longer need to be read from the cache and verified, so that the user data can be quickly transferred when the user data transfer restriction condition is met.
[0031] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flowchart of a data processing method in an embodiment of the present application;
[0033] Figure 2 This is a data schematic diagram of a data bitmap set in an embodiment of the present application;
[0034] Figure 3 A flowchart of another data processing method in an embodiment of the present application;
[0035] Figure 4 This is a schematic diagram of the structure of a data processing device in an embodiment of the present application;
[0036] Figure 5 This is a schematic diagram of the hardware structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0038] The present application embodiment provides a data processing method, such as Figure 1 As shown, including:
[0039] S101, a plurality of user data bitmaps to be transferred are obtained; the user data bitmap includes at least one user data.
[0040] In this embodiment, a bitmap is used to transfer user data.
[0041] In this embodiment, the data processing method can be applied to a target system that needs to restrict the flow of user data, such as an intelligent marketing system. The data processing method can be applied to each node in the target system. Among them, each downstream node can receive the user data bitmap sent by each upstream node connected to it, thereby obtaining multiple user data bitmaps to be circulated; the upstream node and the downstream node are both nodes in the target system.
[0042] S102, constructing a data bitmap set based on multiple user data bitmaps; the data bitmap set includes multiple target data bitmaps corresponding to different restricted flow times; the target data bitmap includes each user data under the same restricted flow times.
[0043] In this embodiment, after obtaining multiple user data bitmaps, the user data in the multiple user data bitmaps can be recombined according to the order of the user data restricted circulation times to form multiple target data bitmaps corresponding to different restricted circulation times, and obtain a data bitmap set.
[0044] Specifically, in one implementation, after obtaining multiple user data bitmaps, the number of times to be circulated corresponding to different user data in the multiple user data bitmaps can be calculated, and then the user data in the multiple user data bitmaps can be classified based on the number of times to be circulated corresponding to the different user data, so as to form multiple target data bitmaps corresponding to the number of times the user data is restricted to be circulated. Among them, different types of user data, that is, different target data bitmaps represent user data sets corresponding to different restricted numbers of circulation. For example, user data that is restricted to be circulated once is a target data bitmap, user data that is restricted to be circulated twice is another target data bitmap, and user data that is restricted to be circulated three times is another target data bitmap, wherein user data that is restricted to be circulated once includes user data that is restricted to be circulated twice, and user data that is restricted to be circulated twice is part of user data that is restricted to be circulated once; user data that is restricted to be circulated twice includes user data that is restricted to be circulated three times, and user data that is restricted to be circulated three times is part of user data that is restricted to be circulated twice, and so on.
[0045] In some embodiments, the data bitmap set is as follows Figure 2 As shown, including the Figure 1 ,Bit Figure 2 ,Bit Figure 3 ,Bit Figure 4 ….Bit Figure 1 The first target data bitmap in the corresponding data bitmap set has a subscript of 0 and stores user data that is limited to one transfer. Figure 2 The second target data bitmap in the corresponding data bitmap set has a subscript of 1 and stores user data that is restricted to flow twice; Figure 3 The third target data bitmap in the corresponding data bitmap set has a subscript of 2, which stores user data that is restricted to flow three times; Figure 4 The fourth target data bitmap in the corresponding data bitmap set has a subscript of 3, which stores user data that is restricted to flow 4 times; and so on.
[0046] S103, based on the data bitmap set, determining a target data bitmap that meets the data screening condition; the data screening condition includes a target number of times of limiting the flow of user data.
[0047] In this embodiment, the target number of times that the user data is restricted to be transferred is the maximum number of times that the same user data can be transferred. If the target data bitmap meets the data brushing condition, the restricted number of transfers corresponding to the target data bitmap needs to be less than or equal to the target number of transfers. Since each target data bitmap in the data bitmap set corresponds to the restricted number of transfers, after determining the target number of times that the user data is restricted to be transferred, the target data bitmap that meets the target number of times that the user data is restricted to be transferred can be determined.
[0048] For example, a data bitmap collection such as Figure 2 As shown, if the target number of user data transfer restrictions is 3, then after obtaining the data bitmap set, it is only necessary to take the target data bitmap with a subscript less than 3 in the data bitmap set and transfer it backwards, thereby achieving the effect of limiting the user data transfer times to a maximum of 3 times.
[0049] S104, sending out the target data bitmap that meets the data screening conditions.
[0050] In this embodiment, only the target data bitmap that meets the data screening conditions is sent out, which can filter out user data that exceeds the target number of restricted flows, avoid repeated flow of user data, and implement the user data flow restriction function.
[0051] In some embodiments, the test results and performance improvement results of the new and old solutions for user data flow restriction are performed using a test server with 4 cores and 8G memory, as shown in Table 1. It can be seen from Table 1 that by optimizing the user data flow restriction solution, the time-consuming performance index of batch user data flow restriction has been greatly improved.
[0052] Table 1
[0053]
[0054] The data processing method provided by the embodiment of the present application obtains multiple user data bitmaps to be circulated; the user data bitmap includes at least one user data; based on the multiple user data bitmaps, a data bitmap set is constructed; the data bitmap set includes multiple target data bitmaps corresponding to different restricted flow times; the target data bitmap includes each user data under the same restricted flow times; based on the data bitmap set, a target data bitmap that meets the data screening condition is determined; the data screening condition includes the target number of user data restricted flow; the target data bitmap that meets the data screening condition is sent out; in this way, when the node obtains multiple user data bitmaps to be circulated, the multiple user data bitmaps are directly converted into multiple target data bitmaps corresponding to different restricted flow times, and the user data that meets the target number of user data restricted flow can be quickly screened, and it is no longer necessary to read the flow record from the cache and verify it, so that the user data can be quickly circulated when the user data flow restriction condition is met.
[0055] In an optional embodiment, step S102, constructing a data bitmap set based on multiple user data bitmaps, includes:
[0056] A union operation and an intersection operation are performed on multiple user data bitmaps to obtain a data bitmap set.
[0057] In this embodiment, since the union operation and the intersection operation can calculate the number of times different user data in multiple user data bitmaps are to be circulated, and classify them according to the limited number of circulation times, a data bitmap set can be quickly obtained by performing union operations and intersection operations on multiple user data bitmaps.
[0058] In an optional embodiment, a plurality of user data bitmaps are subjected to a union operation and an intersection operation to obtain a data bitmap set, including:
[0059] For each user data bitmap in the multiple user data bitmaps, select the first data bitmap in the second data bitmap set to perform a union operation and an intersection operation with the user data bitmap to obtain a first union and a first intersection; wherein the initial value of the second data bitmap set is empty; if the first intersection is not empty and there is a second data bitmap in the second data bitmap set, perform a union operation and an intersection operation on the first intersection and the second data bitmap in the second data bitmap set, and so on, until an empty nth intersection is generated or the last data bitmap of the second data bitmap set is traversed, n≥2; the first union...n-1th union, n-1th intersection are used as target data bitmaps for limiting the flow of user data 1 time...limiting the flow n-1 times, and limiting the flow n times, and replace the first data bitmap...n-1th data bitmap, nth data bitmap of the second data bitmap set to refresh the second data bitmap set to obtain a data bitmap set.
[0060] In this embodiment, when selecting the first data bitmap in the second data bitmap set to perform a union operation and an intersection operation with the user data bitmap for each user data bitmap in the multiple user data bitmaps, the operation is performed by traversing each user data bitmap in the multiple user data bitmaps. That is, the first user data bitmap in the multiple user data bitmaps performs a union operation and an intersection operation with the second data bitmap set whose initial value is empty, and the second user data bitmap performs a union operation and an intersection operation with the second data bitmap set after the first refresh.
[0061] In some implementations, if the first intersection is empty, the first union is used as the target data bitmap for limiting the flow of user data once, and replaces the first data bitmap of the second data bitmap set to refresh the second data bitmap set to obtain a data bitmap set.
[0062] Specifically, if the first intersection is empty and the last user data bitmap among the multiple user data bitmaps has been traversed, then after refreshing the second data bitmap set, the refreshed second data bitmap set is used as the final data bitmap set. Then, based on the data bitmap set, a target data bitmap that meets the data screening condition can be determined. If the first intersection is empty and the last user data bitmap among the multiple user data bitmaps has not been traversed, then after refreshing the second data bitmap set, the traversal process continues.
[0063] In some embodiments, if the first intersection is not empty and the second data bitmap does not exist in the second data bitmap set, the first union and the first intersection are used as target data bitmaps for limiting the flow of user data once and twice, and the first data bitmap and the second data bitmap of the second data bitmap set are replaced to refresh the second data bitmap set and obtain a data bitmap set.
[0064] Specifically, since the first intersection is not empty, it indicates that the number of times the user data in the first intersection is to be circulated is at least 2 times, so when the flow is limited to 2 times, these user data can be circulated, so the first intersection can be used as the target data bitmap corresponding to the 2-time flow limitation.
[0065] In this embodiment, through the second data bitmap with an initial value of empty, each user data bitmap is traversed, the union operation and the intersection operation are performed, and the second data bitmap is updated based on the results of the union operation and the intersection operation. It is possible to obtain multiple target data bitmaps with increasing restricted flow times in one traversal, thereby quickly obtaining a data bitmap set.
[0066] In an optional embodiment, step S103, based on the data bitmap set, determining a target data bitmap that meets the data screening condition includes:
[0067] From the data bitmap set, a target data bitmap whose restricted flow times are less than or equal to the target restricted flow times of the user data is selected to obtain a target data bitmap that meets the data screening condition.
[0068] In this embodiment, the target data bitmap whose restricted flow times are less than or equal to the target flow times of the user data is selected, which is to select all target data bitmaps whose restricted flow times are less than or equal to the target flow times of the user data. In this way, all user data that meet the flow restriction conditions can be quickly obtained.
[0069] In an optional embodiment, if it is necessary to count and display the amount of user data to be sent by each node, the data processing method further includes:
[0070] Determine the total amount of user data in the target data bitmap that meets the data filtering conditions; display the total amount.
[0071] Specifically, the number of user data in each target data bitmap that meets the data screening condition may be counted, and then the numbers corresponding to each target data bitmap may be summarized to obtain the total number of user data in the target data bitmap that meets the data screening condition.
[0072] In this embodiment, since the target data bitmap that meets the data screening conditions has been quickly obtained, the number of user data to be sent down by each node can be quickly counted and displayed quickly, which can improve the user experience of the activity approval function generated based on the number of user data to be sent down by the node.
[0073] In order to further explain the present application, a specific embodiment is described below.
[0074] The upstream node transfers 4 user data bitmaps to the downstream node:
[0075] Bitmap E: 1, 2, 3; Bitmap F: 2, 4, 7; Bitmap G: 2, 3, 5, 6; Bitmap H: 3, 5, 9.
[0076] First, create a second data bitmap set with an empty bitmap, and then traverse the four bitmaps to be transferred. The specific process is as follows: Figure 3 As shown. Bitmap set A is a set of the above four bitmaps to be transferred, and the target bitmap set B is the second data bitmap. A.get(i) is the bitmap with subscript i in bitmap set A, that is, the i+1th bitmap; B.get(j) is the bitmap with subscript j in the target bitmap set B, that is, the j+1th bitmap; i, j are both 0-n. The transfer limit number N is the target number of user data transfer limits, that is, the upper limit of user data transfer limits.
[0077] For bitmap E, first take the first bitmap in the second data bitmap set and then intersect it. At this time, since the second data bitmap set is empty, the union result is (1, 2, 3), which represents user data that is restricted to flow once, and the intersection result is empty. Then the union result is directly assigned to the first bitmap in the second data bitmap set, and the data in the second data bitmap set is {(1, 2, 3)}.
[0078] For bitmap F, first take the first bitmap (1, 2, 3) in the second data bitmap set and perform intersection and union calculations with it. Here, the union (1, 2, 3, 4, 7) represents user data that is restricted to flow once, and the intersection (2) represents user data that is restricted to flow twice. This intersection generates data, and it is necessary to take the second bitmap in the second data bitmap set to perform the above operation. Since there is no second bitmap in the second data bitmap set, the operation stops. Then reassign the union (1, 2, 3, 4, 7) and the intersection (2) to the first bitmap and the second bitmap of the second data bitmap set. The data in the second data bitmap set is {(1 23 4 7), (2)}.
[0079] For bitmap G, first take the first bitmap in the second data bitmap set and perform intersection and union calculations with it. Here, the union (1, 2, 3, 4, 5, 6, 7) represents user data that is restricted to flow once, and the intersection (2, 3) represents user data that is restricted to flow twice. This intersection generates data, and it is necessary to take the second bitmap (2) in the second data bitmap set to perform the above operation to generate a union (2, 3), which represents user data that is restricted to flow twice, and the intersection (2) represents user data that is restricted to flow three times. If there is data in this intersection, then obtain the third bitmap in the second data bitmap set to perform a union and intersection operation, and so on, until an empty intersection is generated or the second data bitmap set is traversed to the end. After the calculation is completed, the data in the second data bitmap set is {(1, 2, 3, 4, 5, 6, 7), (2, 3), (2)}.
[0080] For the bitmap H, according to the above calculation logic, after the calculation is completed, the data in the second data bitmap set is {(1, 2, 3, 4, 5, 6, 7, 9), (2, 3, 5), (2, 3)}.
[0081] At this point, we have built a mapping relationship between the limited flow times and the bitmap. If the flow limit upper limit of the downstream node is 3, we only need to obtain the first 3 bitmaps in the second data bitmap set for distribution.
[0082] The present application also provides a data processing device, such as Figure 4 As shown, including:
[0083] The acquisition module 41 is used to acquire a plurality of user data bitmaps to be transferred; the user data bitmap includes at least one user data;
[0084] A construction module 42 is used to construct a data bitmap set based on multiple user data bitmaps; the data bitmap set includes multiple target data bitmaps corresponding to different limited circulation times; the target data bitmap includes each user data under the same limited circulation times;
[0085] A determination module 43 is used to determine a target data bitmap that meets a data screening condition based on the data bitmap set; the data screening condition includes a target number of times of limiting the flow of user data;
[0086] The sending module 44 is used to send out the target data bitmap that meets the data screening conditions.
[0087] The data processing device provided by the embodiment of the present application obtains multiple user data bitmaps to be circulated; the user data bitmap includes at least one user data; based on the multiple user data bitmaps, a data bitmap set is constructed; the data bitmap set includes multiple target data bitmaps corresponding to different restricted flow times; the target data bitmap includes each user data under the same restricted flow number; based on the data bitmap set, a target data bitmap that meets the data screening condition is determined; the data screening condition includes the target number of user data restricted flow; the target data bitmap that meets the data screening condition is sent out; in this way, when the node obtains multiple user data bitmaps to be circulated, the multiple user data bitmaps are directly converted into multiple target data bitmaps corresponding to different restricted flow times, and the user data that meets the target number of user data restricted flow can be quickly screened, and there is no need to read the flow record from the cache and verify it, so that the user data can be quickly circulated when the user data flow restriction condition is met.
[0088] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0089] Figure 5 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0090] like Figure 5 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0091] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0092] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).
[0093] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0094] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0095] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0096] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0097] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0098] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0099] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0100] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0101] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: include: Obtain multiple user data bitmaps to be transferred; The user data bitmap includes at least one user data; Based on the multiple user data bitmaps, a data bitmap set is constructed, including: for each user data bitmap in the multiple user data bitmaps, selecting the first data bitmap in the second data bitmap set to perform a union operation and an intersection operation with the user data bitmap to obtain a first union and a first intersection; wherein the initial value of the second data bitmap set is empty; if the first intersection is not empty and there is a second data bitmap in the second data bitmap set, the first intersection is performed with the second data bitmap in the second data bitmap set. The operation of union and intersection is performed, and so on, until an empty nth intersection is generated or the last data bitmap of the second data bitmap set is traversed, n≥2; the first union...n-1th union, and n-1th intersection are used as target data bitmaps for limiting the flow of user data 1 time...limiting the flow of n-1 times, and limiting the flow of n times, and replace the first data bitmap of the second data bitmap set...the nth intersection. n-1 data bitmaps and the nth data bitmap are used to refresh the second data bitmap set to obtain the data bitmap set; if the first intersection is empty, the first union is used as the target data bitmap for limiting the flow of user data to 1 time, and the first data bitmap of the second data bitmap set is replaced to refresh the second data bitmap set to obtain the data bitmap set; if the first intersection is not empty and the second data bitmap does not exist in the second data bitmap set, the first union and the first intersection are used as the target data bitmaps for limiting the flow of user data to 1 time and 2 times respectively, and the first data bitmap and the second data bitmap of the second data bitmap set are replaced to refresh the second data bitmap set to obtain the data bitmap set; the data bitmap set includes multiple target data bitmaps corresponding to different limited flow times; the target data bitmap includes each user data under the same limited flow times; Based on the data bitmap set, determining a target data bitmap that meets a data screening condition; the data screening condition includes a target number of times that the user data is restricted from flowing; The target data bitmap that meets the data screening conditions is sent out.
2. The data processing method according to claim 1, characterized in that: Based on the plurality of user data bitmaps, constructing a data bitmap set, including: A union operation and an intersection operation are performed on a plurality of the user data bitmaps to obtain the data bitmap set.
3. The data processing method according to claim 1, characterized in that: Based on the data bitmap set, determining a target data bitmap that meets the data screening condition includes: From the data bitmap set, a target data bitmap whose restricted flow times are less than or equal to the target restricted flow times of the user data is selected to obtain a target data bitmap that meets the data screening condition.
4. The data processing method according to claim 1, characterized in that: Also includes: Determine the total amount of user data in the target data bitmap that meets the data screening condition; Displays the stated total quantity.
5. A data processing device, characterized in that: include: An acquisition module, used to acquire multiple user data bitmaps to be transferred; The user data bitmap includes at least one user data; A construction module is used to construct a data bitmap set based on multiple user data bitmaps, including: for each user data bitmap in the multiple user data bitmaps, selecting the first data bitmap in the second data bitmap set and the user data bitmap to perform a union operation and an intersection operation to obtain a first union and a first intersection; wherein the initial value of the second data bitmap set is empty; if the first intersection is not empty and there is a second data bitmap in the second data bitmap set, the first intersection is subjected to a union operation and an intersection operation with the second data bitmap in the second data bitmap set, and so on, until an empty nth intersection is generated or the last data bitmap of the second data bitmap set is traversed, n≥2; the first union...n-1th union, n-1th intersection are used as target data bitmaps corresponding to user data limited flow 1 time...limited flow n-1 times, limited flow n times, and replace the first data bitmap of the second data bitmap set bitmap…n-1th data bitmap, nth data bitmap, to refresh the second data bitmap set, to obtain the data bitmap set; if the first intersection is empty, use the first union as the target data bitmap for limiting the flow of user data to 1 time, and replace the first data bitmap of the second data bitmap set, to refresh the second data bitmap set, to obtain the data bitmap set; if the first intersection is not empty, and there is no second data bitmap in the second data bitmap set, use the first union and the first intersection as the target data bitmaps for limiting the flow of user data to 1 time and 2 times, respectively, and replace the first data bitmap and the second data bitmap of the second data bitmap set, to refresh the second data bitmap set, to obtain the data bitmap set; the data bitmap set includes multiple target data bitmaps corresponding to different limited flow times; the target data bitmap includes each user data under the same limited flow times; A determination module, configured to determine a target data bitmap that meets a data screening condition based on the data bitmap set; the data screening condition includes a target number of times of limiting the flow of user data; The sending module is used to send out the target data bitmap that meets the data screening conditions.
6. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the data processing method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data processing method according to any one of claims 1 to 4.
