Label data processing method and device
By obtaining the index identifier of user tag data and determining the target data chain in the data structure, combined with the parameter calculation strategy, the performance bottleneck and high operating cost of existing user tag storage solutions are solved, achieving low-cost and high-efficiency tag data processing.
Patent Information
- Application Number
- CN202410982874.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
AI Technical Summary
Existing user tag storage solutions face performance bottlenecks and high operating costs when processing large-scale data, especially in high-concurrency write scenarios where they struggle to meet real-time requirements.
A tag data processing method is adopted, which obtains the index identifier of user tag data, determines the target data chain in the data structure based on the index identifier, and performs parameter calculation according to the parameter calculation strategy of the operation type, so as to realize efficient tag storage, query, modification and deletion operations.
It achieves low-cost and high-efficiency tag access, improves the real-time performance and accuracy of data processing, reduces resource waste, and increases the utilization rate of memory resources.
Smart Images

Figure CN118939656A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of Internet technology, and in particular to a tag data processing method and device. Background Art
[0002] With the continuous development of Internet technology, digital marketing has become an important means for enterprises to acquire users and enhance brand influence. In this process, precision marketing plays a vital role, which is inseparable from the accurate extraction and efficient management of user tags.
[0003] At present, the storage and management of user tags usually rely on traditional database systems. Some database systems are stable and mature, but their performance is limited when processing large-scale data; some database systems are good at full-text search and complex queries, but there are performance bottlenecks in high-concurrency write scenarios. Although the above technologies meet the needs of user tag management to a certain extent, they still have their own limitations when facing Internet marketing scenarios with extremely high real-time requirements. With the surge in the number of users and the increase in the number of tags that each user may generate, the existing tag storage solutions face severe challenges in processing speed and storage efficiency. Therefore, how to reduce operating costs while ensuring the efficiency of tag data processing has become an urgent problem to be solved. Summary of the invention
[0004] An object of one embodiment of the present specification is to provide a tag data processing method and device to achieve low-cost and high-efficiency tag access.
[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:
[0006] In a first aspect, an embodiment of the present specification provides a tag data processing method, including:
[0007] Obtain user tag data for data processing;
[0008] Extracting an index identifier from the user tag data, and determining a target data link in a data structure based on the index identifier;
[0009] Performing parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters;
[0010] In a second aspect, another embodiment of the present specification provides a tag data processing device, including:
[0011] A data acquisition module, configured to acquire user tag data for data processing;
[0012] an identifier extraction module, configured to extract an index identifier from the user tag data, and determine a target data link in a data structure based on the index identifier;
[0013] A parameter calculation module is configured to perform parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters;
[0014] The processing module is configured to perform label data processing in the target data link according to the data parameters in accordance with the operation processing mode corresponding to the operation type.
[0015] In the third aspect, another embodiment of the present specification provides a label data processing device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the label data processing method as described in the first aspect above.
[0016] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the label data processing method described in the first aspect above are implemented.
[0017] In a fifth aspect, another embodiment of the present specification provides a computer program product, wherein the computer program product includes a label data processing program, and the label data processing program is executed by a processor to implement the steps of the label data processing method as described in the first aspect above.
[0018] The tag data processing method provided in this embodiment first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data link in the data structure based on the index identifier, then performs parameter calculation on the user tag data based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, and finally performs tag data processing on the target data link according to the data parameters in accordance with the operation processing method corresponding to the operation type. The tag data processing is performed by the above method to achieve low-cost and high-efficiency tag access. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0020] Figure 1 A tag data processing flow chart provided for one embodiment of this specification;
[0021] Figure 2 A schematic diagram of an array provided for one embodiment of this specification;
[0022] Figure 3 A processing flow chart of a tag data processing method applied to a data storage scenario provided by one embodiment of this specification;
[0023] Figure 4 A processing flow chart of a tag data processing method applied to a data query scenario provided by an embodiment of this specification;
[0024] Figure 5 A processing flow chart of a tag data processing method applied to a data modification scenario provided by an embodiment of this specification;
[0025] Figure 6 A processing flow chart of a tag data processing method applied to a data deletion scenario provided by an embodiment of this specification;
[0026] Figure 7 A schematic diagram of a tag data processing device provided in one embodiment of this specification;
[0027] Figure 8 A schematic diagram of the structure of a tag data processing device provided in one embodiment of this specification. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0029] This specification provides an embodiment of a tag data processing method:
[0030] Reference Figure 1 , which shows a processing flow chart of a tag data processing method provided in this embodiment. The tag data processing method provided in this embodiment specifically includes the following steps S102 to S108.
[0031] Step S102, obtaining user tag data for data processing.
[0032] During the specific implementation process, when the user triggers the data collection point in the key page, the user-related behavior data is automatically recorded, and the user's unique identifier is obtained through the user authentication information. The behavior data is associated with the user identifier to form user tag data, so that the user tag data can be obtained and processed to provide data support for precision marketing and personalized recommendations.
[0033] The user tag data described in this embodiment refers to information related to the user, which can be used to mark the user's characteristics or behaviors, such as the user's interests, shopping habits, login behaviors, etc.; in specific implementation, through the user's interactive behaviors, such as clicking, browsing, purchasing, etc., the user's real-time behavior data is collected, the collected data is parsed, key information is extracted, the parsed data is mapped to predefined tags to form user tag data, the structure and location of data storage are determined, and preparations are made for storing user tag data
[0034] In order to improve the access efficiency of user tag data, a specially designed data structure is introduced, namely an array, which can be a long array, so as to effectively compress the tag data, reduce the storage space requirement, and optimize the data access speed, making the real-time tag processing faster and more efficient.
[0035] The array includes multiple data chains, the head data element of each data chain is an index identifier, the data elements in the chain are other reorganization parameters under the same index identifier, and the data elements in each data chain form a data chain through right pointers, such as Figure 2 The array shown includes reorganization parameters M1, M2, M3, M4, M5, and M6, wherein M1 is the chain head data element, and M4 is pointed to by the right pointer, indicating that M4 is the first data element in the data chain identified by the index of M1 as the chain head data element, and M4 is pointed to M6 by the right pointer, indicating that M6 is the second data element in the data chain identified by the index of M4 as the chain head data element, and M1, M4, and M6 constitute a data chain with M1 as the chain head data element; similarly, M2, M3, and M5 also constitute a data chain with M2 as the chain head data element; Figure 2 The array also includes a dividing line. The area before the dividing line is a discrete area, which stores the head data elements of each data chain, and the area after the dividing line is a continuous data area, which stores the middle data elements and the tail data elements of each data chain. In addition, the array also includes a maximum cursor, which is used to record the length of data in the continuous data area as a basis for the position of newly inserted data or the opening of new space.
[0036] In practical applications, data processing may include several operations such as data storage (data addition), data query, data modification and data deletion. Through this specially designed array, the processing efficiency under various data operations can be improved. In this embodiment, taking data processing including data storage, data query, data modification and data deletion as an example, the process of label data processing is specifically described. The following is a specific description of the processing process of each operation category in each step.
[0037] (1) Data storage: Under the data operation of data storage, user tag data for data storage is obtained, which can be user tag data for data storage. In order to improve the integrity of the stored data, the obtained user tag data includes key information such as tag name, tag value, number segment, expiration time, etc.
[0038] (2) Data query: In the data query operation, the user tag data for the data query is obtained, and the corresponding tag data stored in the array is quickly located according to the user's query request. For example, when a user browses in a shopping app, the user's real-time tag, such as "someone who wants to shop temporarily", is quickly retrieved based on the user's mobile phone number, and relevant shopping activities are recommended to the user accordingly.
[0039] (3) Data modification: In the data modification operation, the tag data of the user who is performing the data modification is obtained, and the tag data stored in the array is updated according to the user's operation or behavior change. For example, if the user's behavior in the relevant software indicates that his or her interests have changed, the user's tag data will be updated, such as changing "like technology products" to "like outdoor sports", and the expiration time of the tag will be updated accordingly.
[0040] (4) Data deletion: In the data deletion operation, the user tag data for data deletion is obtained, and the no longer valid tag data is removed from the array according to the tag expiration time or other deletion conditions. For example, when the expiration time of a real-time tag is reached, it will be automatically deleted from the array to maintain the real-time and accuracy of the data.
[0041] Step S104: extract the index identifier in the user tag data, and determine the target data link in the data structure based on the index identifier.
[0042] The user tag data for data processing is obtained above. In this step, an index identifier in the user tag data is extracted, and a target data link is determined in the data structure based on the index identifier.
[0043] During the specific execution process, the index identifier in the user tag data is extracted, and the target data chain is determined in the data structure based on this identifier, and then the parameters of the user tag data are calculated to obtain key data parameters, thereby ensuring the accuracy and real-time nature of the data and laying the foundation for subsequent data processing.
[0044] In this embodiment, taking data processing including data storage, data query, data modification and data deletion as an example, the process of extracting index identifiers and determining target data links is specifically described; the following specifically describes the processing process of each operation category in the step of extracting index identifiers and determining target data links.
[0045] (1) Data storage: After receiving new user tag data, extract its index identifier, that is, the last 8 digits of the phone number, and then find the corresponding target data link in the data structure based on this index identifier, and prepare for data storage operations.
[0046] (2) Data query: When it is necessary to query the tag data of a specific user, extract the index identifier in the query request, usually the last 8 digits of the user's phone number, and then locate the target data link containing the user's data in the data structure for subsequent query operations.
[0047] (3) Data modification: When modifying data, first extract the index identifier of the data to be modified, and then find the corresponding target data link in the data structure based on this index identifier to ensure that the data element to be modified can be accurately located.
[0048] (4) Data deletion: When performing a data deletion operation, it is also necessary to extract the index identifier of the data to be deleted, and then determine the target data chain in the data structure based on this index identifier so that the corresponding data element can be accurately found and deleted.
[0049] Through the above process, it can be ensured that when processing user tag data, whether it is storage, query, modification or deletion operation, the target data chain can be located quickly and accurately, laying a solid foundation for subsequent data processing operations.
[0050] Step S106: Calculate parameters of the user tag data based on the parameter calculation strategy corresponding to the data processing operation type to obtain data parameters.
[0051] The above first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data link in the data structure based on the index identifier. In this step, the user tag data is calculated based on the parameter calculation strategy corresponding to the data processing operation type to obtain data parameters.
[0052] In this embodiment, taking data processing including data storage, data query, data modification and data deletion as an example, the parameter calculation strategy corresponding to the operation type of data processing is used to calculate the parameters of the user tag data to obtain the data parameters. The following specifically describes each operation category.
[0053] (1) Data storage
[0054] In the specific execution process, the user tag data for data storage is first obtained, and then the information in the user tag data is mapped to obtain corresponding parameters, and the parameters are calculated according to the parameter calculation strategy to obtain data parameters. Accordingly, in an optional implementation manner provided by this embodiment, the user tag data is calculated based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, including:
[0055] a. Determine a storage location in the data structure for storing the user tag data.
[0056] Furthermore, in an optional implementation manner provided by this embodiment, determining a storage location for storing data of user tag data in a data structure includes:
[0057] Reading a deletion chain in the data structure and detecting whether a data element exists in the deletion chain;
[0058] If so, determining the element storage position of the first data element in the deletion chain as the storage position;
[0059] If not, the maximum cursor position in the data structure is determined as the storage position, and the maximum cursor position in the data structure is moved backward.
[0060] The first data element in this embodiment refers to a data element that is directly connected to the head data of the deletion chain in the data structure. When the data is deleted or expires, the data element will be added to the deletion chain and become the first data element of the deletion chain, that is, the first data element; optionally, for each data chain, according to the data chain relationship, the data element connected to the head data element is the first data element, the data element connected to the first data element is the second data element, and so on, until the tail data element of the data chain is reached.
[0061] In the specific implementation, user tag data is collected through user behavior, preferences, etc., the last 8 digits of the phone number are extracted from the user tag data as an index identifier, the target data link is determined in the data structure based on the index identifier, and then the user tag data is parameter calculated according to the parameter calculation strategy corresponding to the operation type to obtain data parameters, and finally, according to the operation processing method corresponding to the operation type, the tag data is processed in the target data link according to the data parameters.
[0062] The deletion chain relationship described in this embodiment is updated in the following manner:
[0063] Reading the right pointer parameter of the first data element;
[0064] Update the right pointer parameter of the head data element of the deletion chain to the right pointer parameter of the first data element. In specific implementation, during the tag data processing, when a data element needs to be deleted, it is not only necessary to remove the data element from the original data chain, but also to add it to the deletion chain. Specifically, first locate the data element to be deleted, the position of the data element in the data chain is the first data element, read the right pointer parameter of the first data element, the parameter points to the next data element under the same discrete value, and then update the right pointer parameter of the head data element of the deletion chain to the right pointer parameter of the first data element. Correspondingly, the head of the deletion chain points to the next data element that originally follows the element to be deleted in the data chain, thereby maintaining the continuity of the data chain. If the right pointer parameter of the first data element is 0, it indicates that the data element is the last data element under the discrete value. At this time, the right pointer parameter of the head data element of the deletion chain is updated to 0, indicating that the head of the deletion chain points to an empty position.
[0065] For example, in the data structure, in the deletion chain, data element A (chain head) points to data element B, data element B points to data element C, and the right pointer parameter of data element C is 0, indicating that C is the tail data element of the deletion chain. Now the storage location of data element B in the deletion chain is used as the storage location for storing user tag data. The right pointer parameter of data element B (the first data element) is first read, and the parameter points to data element C. The right pointer parameter of the head data element A of the deletion chain is updated to the right pointer parameter of data element B, that is, it points to data element C. If the right pointer parameter of data element B is 0, the right pointer parameter of the head data element A of the deletion chain is also updated to 0, indicating that the head of the deletion chain points to an empty position.
[0066] b. Based on a pre-configured mapping strategy, mapping processing is performed on the storage location and the data of each data item in the user tag data to obtain location mapping parameters and mapping parameters of each data item.
[0067] Further, based on the pre-configured mapping strategy, the data of each data item in the storage location and the user tag data is mapped to obtain the location mapping parameters and the mapping parameters of each data item, including:
[0068] Performing identity splitting on the identity identifier in the user tag data to obtain an index identifier and an association identifier;
[0069] Based on a preconfigured mapping strategy, the storage location, the association identifier, the tag name and the tag value in the user tag data are mapped to obtain the location mapping parameters, identifier mapping parameters, name mapping parameters and tag value mapping parameters.
[0070] First, obtain the original data, as shown in Table 1.
[0071]
[0072] Table 1
[0073] Secondly, the data is split to obtain the index identifier (the last 8 digits of the phone number) and the association identifier (the first 3 digits of the phone number), as shown in Table 2.
[0074]
[0075] Table 2
[0076] Based on the pre-configured mapping strategy, the tag name, the tag value, the number segment, the number, and the expiration time are mapped to obtain corresponding mapping parameters, as shown in Table 3.
[0077]
[0078] Table 3
[0079] c. Calculate the recombination parameters according to the recombination calculation strategy, the position mapping parameters and the mapping parameters to obtain the recombination parameters.
[0080] In the specific implementation, first, data splitting and mapping are performed: the telephone number is split into the operator segment and the last 8 digits, and the tag name, tag value, segment, number and expiration time are mapped to numbers; secondly, space allocation is performed: according to the estimated amount of data, appropriate space is allocated for each data item. For example, the tag name may occupy 9 bits, the segment occupies 5 bits, the tag value occupies 4 bits, the number occupies 27 bits, and the expiration time occupies 16 bits; thirdly, space reorganization is performed: the allocated space is further adjusted to ensure that the total occupied space does not exceed the preset value; fourthly, the reorganization value is calculated: the values of each data item are shifted left by the corresponding number of bits and then added to obtain the reorganized value. For example, if the tag name is mapped to 1, the segment is mapped to 2, the tag value is mapped to 3, the number is 12345678, the expiration time is 25 time units, and the back pointer is 0, then the reorganization value is calculated as:
[0081] 1L<<55|2L<<50|25L<<30|0=38491729908727808
[0082] Finally, based on the stored data parameters, the corresponding data element is found in the target data chain, and the reorganization parameter of the data element is updated to the modified reorganization parameter; through the above process, the reorganization parameter calculation in the data storage operation is completed, ensuring the real-time and accuracy of the user tag data.
[0083] In the specific implementation, the user tag data to be stored is first obtained, and the relevant data is split and mapped. According to the pre-configured mapping strategy, the storage position of the data in the data structure is determined, and then based on the reorganization calculation strategy, the position mapping parameters and the mapping parameters of each mapped data item are reorganized. Parameter calculation, finally, the calculated reorganization parameters are stored in a predetermined position in the data structure. At the same time, the data link relationship in the data structure is updated to ensure that the new data can be correctly retrieved and processed.
[0084] (2) Data Query
[0085] In the specific execution process, the user tag data for data query is first obtained, and then the information in the user tag data is mapped to obtain corresponding parameters, and the parameters are calculated according to the parameter calculation strategy to obtain data parameters. Accordingly, in an optional implementation manner provided by this embodiment, the user tag data is calculated based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, including:
[0086] a. Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter.
[0087] Specifically, the tag data of the user to be queried is obtained, including the tag name and the associated identifier, and then based on the pre-configured mapping strategy, the tag name and the associated identifier in the user tag data are mapped, and the corresponding name mapping parameters and identifier mapping parameters are found using the mapping table.
[0088] b. Calculate query data parameters according to the name mapping parameters and the identifier mapping parameters.
[0089] Based on the name mapping parameters and identifier mapping parameters obtained from the above operations, the query data parameters are calculated. Finally, the calculated query data parameters are used to quickly query the data structure, find matching data elements in the target data chain through data identifiers, obtain the tag value in the user tag data, and perform subsequent data query operations.
[0090] (3) Data modification
[0091] In the specific execution process, the user tag data for data modification is first obtained, and then the information in the user tag data is mapped to obtain corresponding parameters, and the parameters are calculated according to the parameter calculation strategy to obtain data parameters. Accordingly, in an optional implementation manner provided by this embodiment, the user tag data is calculated based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, including:
[0092] a. Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter.
[0093] Specifically, first obtain the user tag data to be modified, including the index identifier, the new tag name and the new associated identifier. After receiving the modification request, extract the tag name and associated identifier to be modified, and then map the tag name and associated identifier according to the pre-configured mapping strategy to obtain the corresponding name mapping parameters and identifier mapping parameters.
[0094] b. Calculate and modify data parameters according to the name mapping parameters and the identifier mapping parameters.
[0095] Based on the name mapping parameters and the identifier mapping parameters obtained by the aforementioned operations, the modified data parameters are calculated, and finally the data elements to be modified are located in the data structure using the calculated modified data parameters.
[0096] In addition, in another optional implementation manner provided by this embodiment, the parameter calculation strategy corresponding to the data processing operation type is used to calculate the parameters of the user tag data to obtain the data parameters, which further includes:
[0097] a. Based on a pre-configured mapping strategy, mapping processing is performed on the data of each data item in the user tag data to obtain mapping parameters of each data item.
[0098] Specifically, first, a data modification request is received, and the data modification request contains user tag data to be modified, which includes tag name, association identifier, tag value, index identifier and expiration time. The user tag data to be modified is split into basic data items such as tag name, number segment, tag value, telephone number and expiration time. Based on the mapping strategy, the tag name to be modified is mapped to a unique digital identifier, namely, the tag name mapping parameter. Correspondingly, the number segment, tag value, telephone number and expiration time are also mapped one by one. The mapping parameters of the above-mentioned data items are integrated together for subsequent positioning and modification of the target data elements in the data structure.
[0099] b. Calculate the reorganization parameters according to the reorganization calculation strategy and the mapping parameters to obtain modified reorganization parameters.
[0100] (4) Data Deletion
[0101] a. Determine the location of the user tag data to be deleted in the data structure.
[0102] During the specific execution process, a deletion request is received, which contains specific information of the user tag data to be deleted, such as the tag name, telephone number, number segment, etc. According to the received telephone number, the remaining 8 bits are extracted as discrete values, and the calculated discrete value is used to find the corresponding chain head in the discrete area of the data structure. The data chain pointed to by the chain head contains all data with the same discrete value, including the data to be deleted. Along the target data chain, the data elements are traversed to find data elements that match the tag name and number segment provided in the deletion request. After finding the matching data element, it is confirmed that the position of the data element is the position of the user tag data to be deleted.
[0103] b. Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to be deleted to obtain a name mapping parameter and an identifier mapping parameter.
[0104] Based on the above operations, the location of the user tag data to be deleted is determined, and then according to the pre-configured mapping strategy, the tag name and the associated identifier are mapped to obtain the name mapping parameter and the identifier mapping parameter.
[0105] c. Calculate deletion parameters according to the name mapping parameters and the identifier mapping parameters to obtain deletion data parameters.
[0106] Based on the above operations, the name mapping parameters and identifier mapping parameters after mapping processing are obtained, and the deletion parameters are calculated to obtain the deletion data parameters to determine the specific location and method of the deletion operation in the data structure. Finally, the data elements to be deleted are found in the target data chain and the data deletion operation is executed.
[0107] Step S108, performing tag data processing in the target data link according to the data parameters in accordance with the operation processing method corresponding to the operation type.
[0108] In the above operation process, firstly, the user tag data is obtained, and the phone number is extracted as an index identifier. Secondly, in the pre-constructed data structure, the corresponding target data chain is determined according to the phone number, and the array is logically divided into a data discrete area and a data continuous area. Each array element contains information of each field. According to different operation types (such as storage, query, modification, and deletion), different parameter calculation strategies are adopted. Finally, according to the calculated data parameters, corresponding data processing operations are performed in the target data chain. Corresponding to the above different operation types, the implementation method of this step under different operation types is specifically described as follows:
[0109] (1) Data storage
[0110] After obtaining the target data link and data parameters for data storage, in an optional implementation provided by this embodiment, according to the operation processing mode corresponding to the operation type, label data processing is performed on the target data link according to the data parameters, including:
[0111] If the storage location is a storage location on the deletion chain, updating the deletion chain relationship and the data chain relationship of the target data chain;
[0112] If the storage location is not a storage location on the deleted data link, the data link relationship of the target data link is updated.
[0113] For example, in a data storage operation, if the storage location is a storage location on the deletion chain, the deletion chain relationship and the data chain relationship of the target data chain are updated; if the storage location is not a storage location on the deletion data chain, only the data chain relationship of the target data chain is updated.
[0114] Furthermore, the data link relationship of the target data link in this embodiment is updated in the following manner:
[0115] Reading a right pointer parameter in a head data element in the target data chain;
[0116] The right pointer parameter is determined as the right pointer parameter of the data element corresponding to the user tag data, and the right pointer parameter in the chain head data element is updated based on the storage position.
[0117] The chain head data element described in this embodiment refers to the starting point of each data chain in the data structure, and includes a right pointer parameter pointing to the next data element in the chain; the reorganization parameter refers to an integer value combined according to a specific algorithm after mapping each field in the user tag data (such as tag name, number segment, tag value, expiration time, etc.) into numbers, which is used to quickly access and process data in the data structure; the right pointer parameter refers to the pointer of each data element in the data chain pointing to the next data element in the chain, which is used to maintain the logical relationship of the data chain.
[0118] During the specific execution process, for new operations, the user tag data is first obtained, and the number data therein is extracted as a discrete value. Based on the discrete value, the corresponding target data chain is determined in the data structure, that is, the discrete area in the data structure is found through the discrete value of the number, and then the head position of the data chain corresponding to the number is determined, and it is detected whether the target data chain contains the reorganized value of the data to be inserted. If not, the storage position is determined, the reorganized value is stored in the position, and the data chain relationship is updated.
[0119] (2) Data Query
[0120] In the specific execution process, after obtaining the user tag data for data query, the tag name and the associated identifier are mapped based on the pre-configured mapping strategy to obtain the name mapping parameter and the identifier mapping parameter, and then based on the query data parameter, the parameters are matched in each data element of the target data chain to obtain the target data element, and finally the tag value mapping parameter is calculated according to the reorganized value of the target data element, and the tag value is obtained based on the mapping strategy. In an optional implementation manner provided by this embodiment, according to the operation processing method corresponding to the operation type, the tag data is processed in the target data chain according to the data parameter, including:
[0121] Based on the query data parameters, parameter matching is performed in each data element of the target data chain to obtain the target data element;
[0122] Calculate a label value mapping parameter of the target data element according to the reorganized value of the target data element;
[0123] Based on the mapping strategy, the label value mapping parameters are mapped to obtain a label value.
[0124] In the specific implementation, the user initiates a query request, provides the tag name and associated identifier to be queried, and then maps the tag name and associated identifier to corresponding mapping parameters according to the pre-configured mapping strategy, calculates the query data parameters according to the name mapping parameters and the identifier mapping parameters, calculates the query data parameters, matches the parameters in each data element of the target data chain, obtains the target data element, calculates the tag value mapping parameters according to the reorganized value of the target data element, and finally, based on the mapping strategy, maps the tag value mapping parameters to obtain the tag value.
[0125] During the specific execution process, for the query operation, first obtain the query data, extract the number data therein as the discrete value to be queried, and determine the target data chain in the data structure based on the discrete value to be queried, that is, find the discrete area in the data structure through the discrete value of the number, and then determine the chain head position of the data chain corresponding to the number, calculate the data identifier based on the tag name and number segment of the data to be queried, and then perform identifier matching in the target data chain. If the match is successful, read the corresponding user tag.
[0126] (3) Data modification
[0127] Based on the parameter calculation strategy corresponding to the operation type of the aforementioned data processing, the user tag data is modified to calculate the parameter, and the modified data parameter is obtained. In an optional implementation provided by this embodiment, according to the operation processing method corresponding to the operation type, the tag data is processed in the target data link according to the data parameter, including:
[0128] Based on the modified data parameters, parameter matching is performed in each data element of the target data chain to obtain a target data element;
[0129] The reorganization parameters of the target data element are updated to the modified reorganization parameters.
[0130] In the specific implementation, first, data splitting and mapping are performed: the telephone number is split into the operator segment and the last 8 digits, and the tag name, tag value, segment, number and expiration time are mapped to numbers; secondly, space allocation is performed: according to the estimated amount of data, appropriate space is allocated for each data item. For example, the tag name may occupy 9 bits, the segment occupies 5 bits, the tag value occupies 4 bits, the number occupies 27 bits, and the expiration time occupies 16 bits; thirdly, space reorganization is performed: the allocated space is further adjusted to ensure that the total occupied space does not exceed the preset value; fourthly, the reorganization value is calculated: the values of each data item are shifted left by the corresponding number of bits and then added to obtain the reorganized value. For example, if the tag name is mapped to 1, the segment is mapped to 2, the tag value is mapped to 3, the number is 12345678, the expiration time is 25 time units, and the back pointer is 0, then the reorganization value is calculated as:
[0131] 1L<<55|2L<<50|25L<<30|0=38491729908727808
[0132] Finally, based on the modified data parameters, the corresponding data element is found in the target data chain, and the reorganization parameter of the data element is updated to the modified reorganization parameter; through the above process, the reorganization parameter calculation in the data modification operation is completed, ensuring the real-time and accuracy of the user tag data.
[0133] During the specific implementation, for the modification operation, first obtain the data to be modified, and extract the number data therein as the discrete value to be modified, determine the target data chain in the data structure based on the discrete value to be modified, that is, find the discrete area in the data structure through the discrete value of the number, and then determine the head position of the data chain corresponding to the number, calculate the data identifier based on the label name and number segment of the data to be modified, and then perform identifier matching in the target data chain. If the match is successful, the target data element is modified to the data to be modified.
[0134] (4) Delete operation
[0135] Specifically, first obtain the deletion data, and extract the number data therein as a discrete value, determine the target data chain in the data structure based on the discrete value to be deleted, that is, find the discrete area in the data structure through the discrete value of the number, and then determine the head position of the data chain corresponding to the number, calculate the deletion identifier based on the label name and number segment of the data to be deleted, and then perform identifier matching in the target data chain. If the match is successful, update the data chain relationship and the deletion chain relationship.
[0136] In addition, for the above-mentioned tag data processing method, another optional implementation manner provided by this embodiment further includes:
[0137] When the update time period is detected to have arrived, calculating the time parameter of each data element in the data structure, and updating the time parameter according to the update time period;
[0138] If the time parameter of the target data element meets the deletion condition, the deletion chain relationship and the data link relationship of the data chain to be updated to which the target data element belongs are updated.
[0139] Specifically, first set an update time period. When the update time period arrives, start a timer task, which is responsible for traversing each data element in the data structure. For each data element, obtain the current time parameter of the data element and subtract the update time period from it. If the updated time parameter is less than or equal to 0, the data element is determined to be expired. For expired data elements, first update the data chain relationship of the data chain to which the data element belongs, remove it from the data chain, and then add the expired data element to the deletion chain, and update the relationship of the deletion chain. Based on this, the expired data element no longer participates in data query and processing, and the space it occupies is marked as reusable, waiting for the insertion of new data. Through the above process, automatic management of expired data in the data structure can be achieved to ensure the timeliness and accuracy of the data. At the same time, by recycling and reusing the space occupied by expired data, the utilization rate of memory resources is improved, and the waste of resources caused by data expiration is reduced.
[0140] For example, assuming that the time parameter of a data element is 10 minutes and the update time cycle is 1 minute, when it is detected that the update time cycle has arrived, the time parameter of the data element is subtracted by 1 minute, and the new time parameter is 9 minutes. If the original time parameter of the data element is 1 minute, after the update, the time parameter becomes 0 minutes, and the deletion condition is met, the data element is removed from the data chain and added to the deletion chain, waiting for subsequent reuse. In this way, the data is always kept up to date, and expired data is cleaned up in a timely manner, ensuring the efficiency and accuracy of data processing.
[0141] Furthermore, in an optional implementation manner provided by this embodiment, the chain relationship is deleted and updated in the following manner:
[0142] Reading a right pointer parameter of a head data object in the deletion chain, and calculating a target right pointer parameter based on a storage location of the target data element;
[0143] The right pointer parameter is updated to the target right pointer parameter, and a reorganization parameter of the target data element is updated based on the right pointer parameter.
[0144] Specifically, when it is detected that a data element is expired, the head data object of the deletion chain is first located, and the right pointer parameter of the head data object is read. Secondly, according to the storage position of the target data element in the data structure, a new right pointer parameter is calculated. The parameter points to the next free position in the deletion chain. Then, the right pointer parameter of the head data object is updated to the newly calculated target right pointer parameter to maintain the continuity of the deletion chain. Finally, according to the updated right pointer parameter, the reorganization parameter of the target data element is updated accordingly to ensure that the data chain relationship in the data structure remains consistent.
[0145] In addition, in the process of checking the expiration time of each data element in the user tag data, determining whether it has expired, and processing the expired data element, in an optional implementation manner provided by this embodiment, the time expiration review includes:
[0146] When the update time period is detected to have arrived, the time parameter of each data element in each relationship chain is read;
[0147] If the time parameter of the target data element is 0, the data link relationship of the data link to which the target data element belongs is updated, and the link relationship is updated and deleted.
[0148] In the specific implementation, a timer is set at startup, and the time expiration review operation is triggered according to the preset update time period. When the timer is triggered, all relationship chains in the data structure are traversed, including data chains in discrete areas and continuous areas. For each data element, the time parameter stored in the data element is read. The time parameter represents the difference between the expiration time of the data element and the reference time. If the time parameter is 0, it means that the data element has expired. First, the data chain relationship to which the data element belongs is updated to remove it from the data chain. Secondly, the expired data element is added to the deletion chain, and the right pointer parameter of the head data element of the deletion chain is updated to point to the new expired data element. Then the deletion chain relationship is updated to ensure that the data elements in the deletion chain are arranged in a logical order to facilitate subsequent data reuse. After the review is completed, the time base is updated, and the current time is set as the new base time for the next time expiration review.
[0149] Furthermore, based on the storage, query, modification and expiration processing of the aforementioned real-time tag data, in order to accurately analyze the user group through an efficient data processing method and perform hobby group detection, in an optional implementation manner provided by this embodiment, the detection of the hobby group includes:
[0150] Get the tag value to be matched;
[0151] Performing element matching in each data element in the data structure based on the tag value to be matched to obtain at least one target data element;
[0152] The element number segment of each target data element is read, and at least one telephone number is calculated based on the element number segment and the link header data of the corresponding target data link to obtain at least one matching telephone number.
[0153] Specifically, firstly, a label value to be matched is received, and then all data elements in the data structure are traversed. For each data element, the label value part of the data element is extracted, and the extracted label value is compared with the label value to be matched. If they match, the data element is marked as a target data element. For each target data element, the number segment information of the target data element is read, and the complete telephone number is calculated through a specific algorithm based on the number segment of the target data element and the chain head data of the target data chain. Finally, all matching telephone numbers are collected to form a list of people with the same interests. Through this process, not only the amount of traversed data is reduced and the query efficiency is improved, but also people with the same interests can be quickly recommended to users, thereby enhancing the user experience.
[0154] In addition, based on this data structure, data persistence processing can also be performed, such as through data compression, so that the data volume is not large and all data is stored in a long array, the array is logically divided into several blocks, and when a block of data changes, it is marked as to be saved, and the data blocks to be saved are periodically saved to the hard disk with the help of random file reading and writing technology.
[0155] To summarize, the label data processing method provided in this embodiment first obtains the user label data to be processed, then extracts the index identifier in the user label data, and determines the target data link in the data structure based on the index identifier, and then performs parameter calculation on the user label data based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, and finally performs label data processing on the target data link according to the data parameters in accordance with the operation processing method corresponding to the operation type, thereby achieving low machine cost and high-efficiency label access.
[0156] The following combination Figure 3 , taking the application of the tag data processing method provided by this embodiment in the data storage scenario as an example, the tag data processing method provided by this embodiment is further described. Figure 3 The tag data processing method applied to the data storage scenario specifically includes steps S302 to S314.
[0157] Step S302: Acquire user tag data for data storage.
[0158] Step S304: extract the index identifier in the user tag data, and determine the target data link in the data structure based on the index identifier.
[0159] Step S306: determining a storage location for storing the user tag data in the data structure.
[0160] Step S308: Based on a pre-configured mapping strategy, mapping processing is performed on the storage location and the data of each data item in the user tag data to obtain location mapping parameters and mapping parameters of each data item.
[0161] Step S310: performing a reorganization parameter calculation according to the reorganization calculation strategy, the position mapping parameter and the mapping parameter to obtain a reorganization parameter.
[0162] Step S312: If the storage location is a storage location on the deletion chain, the deletion chain relationship and the data chain relationship of the target data chain are updated.
[0163] Step S314: if the storage location is not a storage location on the deleted data link, then the data link relationship of the target data link is updated.
[0164] The following combination Figure 4 , taking the application of the label data processing method provided by this embodiment in the data query scenario as an example, the label data processing method provided by this embodiment is further described. Figure 4 The label data processing method applied to the data query scenario specifically includes steps S402 to S414.
[0165] Step S402, obtaining user tag data for data query.
[0166] Step S404: extract the index identifier in the user tag data, and determine the target data link in the data structure based on the index identifier.
[0167] Step S406: Based on a pre-configured mapping strategy, mapping processing is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter.
[0168] Step S408: Calculate query data parameters according to the name mapping parameters and the identifier mapping parameters.
[0169] Step S410, based on the query data parameters, parameter matching is performed in each data element of the target data chain to obtain the target data element.
[0170] Step S412: Calculate the label value mapping parameter of the target data element according to the reorganized value of the target data element.
[0171] Step S414: Based on the mapping strategy, the label value mapping parameters are mapped to obtain a label value.
[0172] The following combination Figure 5, taking the application of the tag data processing method provided by this embodiment in the data modification scenario as an example, the tag data processing method provided by this embodiment is further described. Figure 5 The tag data processing method applied to the data modification scenario specifically includes steps S502 to S516.
[0173] Step S502, obtaining user tag data for data modification.
[0174] Step S504: extract the index identifier in the user tag data, and determine the target data link in the data structure based on the index identifier.
[0175] Step S506: Based on a pre-configured mapping strategy, mapping processing is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter.
[0176] Step S508: Calculate a modified data identifier according to the name mapping parameter and the identifier mapping parameter.
[0177] Step S510: Mapping the data of each data item in the user tag data based on a pre-configured mapping strategy to obtain mapping parameters of each data item.
[0178] Step S512: performing reorganization parameter calculation according to the reorganization calculation strategy and the mapping parameters to obtain modified reorganization parameters.
[0179] Step S514: Based on the modified data parameters, parameter matching is performed in each data element of the target data chain to obtain the target data element.
[0180] Step S516, updating the reorganization parameters of the target data element to the modified reorganization parameters.
[0181] The following combination Figure 6 , taking the application of the label data processing method provided by this embodiment in the data deletion scenario as an example, the label data processing method provided by this embodiment is further described. Figure 6 The label data processing method applied to the data deletion scenario specifically includes steps S602 to S612.
[0182] Step S602, obtaining user tag data for data deletion.
[0183] Step S604: extract the number data in the data to be deleted as a discrete value, and determine the target data link in the data structure based on the discrete value to be deleted.
[0184] Step S606: Based on the pre-configured mapping strategy, mapping processing is performed on the tag name and the associated identifier in the user tag data to be deleted to obtain a name mapping parameter and an identifier mapping parameter.
[0185] Step S608: Calculate deletion parameters according to the name mapping parameters and the identifier mapping parameters to obtain deletion data parameters.
[0186] Step S610: Based on the deletion identifier, identifier matching is performed on each data element in the target data chain.
[0187] Step S612: If the target data element is matched, the data link relationship of the target data link is updated, and the deletion link relationship is updated.
[0188] The tag data processing method provided in this embodiment first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data chain in the data structure based on the index identifier, then performs parameter calculation on the user tag data based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, and finally performs tag data processing on the target data chain according to the data parameters in accordance with the operation processing method corresponding to the operation type. The tag data processing is performed by the above method, thereby achieving low machine cost and high-efficiency tag access.
[0189] Figure 7 A schematic diagram of a tag data processing device provided by an embodiment of the present invention is shown in FIG. Figure 7 Said device comprises:
[0190] A data acquisition module 702 is configured to acquire user tag data for data processing;
[0191] The identifier extraction module 704 is configured to extract the index identifier in the user tag data, and determine the target data link in the data structure based on the index identifier;
[0192] A parameter calculation module 706 is configured to perform parameter calculation on the user tag data based on a parameter calculation strategy ui corresponding to the operation type of the data processing to obtain data parameters;
[0193] The processing module 708 is configured to perform tag data processing in the target data link according to the data parameters in accordance with the operation processing mode corresponding to the operation type.
[0194] The label data processing device provided in this embodiment firstly acquires the user label data for data processing by running the data acquisition module 702, and then runs the identifier extraction module 704 to extract the index identifier in the user label data, and determines the target data link in the data structure based on the index identifier, and then runs the parameter calculation module 706 to perform parameter calculation on the user label data based on the parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters; finally, runs the processing module 708 to perform label data processing on the target data link according to the data parameters in accordance with the operation processing mode corresponding to the operation type, and performs label data processing by the above method to achieve low machine cost and high-efficiency label access.
[0195] The video call detection device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0196] Furthermore, an embodiment of the present specification also provides a tag data processing device, Figure 8 A structural diagram of a tag data processing device provided in one embodiment of this specification is shown as follows: Figure 8 As shown, the device includes: a memory 801, a processor 802, a bus 803 and a communication interface 804. The memory 801, the processor 802 and the communication interface 804 communicate through the bus 803, and the communication interface 804 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.
[0197] Figure 8 In the embodiment, the memory 801 stores computer executable instructions that can be run on the processor 802, and when the computer executable instructions are executed by the processor 802, the following process is implemented:
[0198] Obtain user tag data for data processing;
[0199] Extracting an index identifier from the user tag data, and determining a target data link in a data structure based on the index identifier;
[0200] Performing parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters;
[0201] According to the operation processing mode corresponding to the operation type, label data processing is performed in the target data link according to the data parameters.
[0202] The tag data processing device provided in this embodiment, through the cooperation of the memory 801, the processor 802, the bus 803 and the communication interface 804, first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data link in the data structure based on the index identifier, and then calculates the parameters of the user tag data based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, and finally performs tag data processing in the target data link according to the operation processing method corresponding to the operation type and the data parameters. The tag data processing device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same function and effect, which will not be repeated here.
[0203] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:
[0204] Obtain user tag data for data processing;
[0205] Extracting an index identifier from the user tag data, and determining a target data link in a data structure based on the index identifier;
[0206] Performing parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters;
[0207] According to the operation processing mode corresponding to the operation type, label data processing is performed in the target data link according to the data parameters.
[0208] The computer-readable storage medium provided in this embodiment first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data link in the data structure based on the index identifier, and then performs parameter calculation on the user tag data based on the parameter calculation strategy corresponding to the operation type of data processing to obtain data parameters, and finally performs tag data processing on the target data link according to the data parameters in accordance with the operation processing method corresponding to the operation type.
[0209] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0210] The computer-readable storage medium provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0211] Furthermore, another embodiment of the present specification also provides a computer program product, which implements the following process when executed by a processor:
[0212] Obtain user tag data for data processing;
[0213] Extracting an index identifier from the user tag data, and determining a target data link in a data structure based on the index identifier;
[0214] Performing parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters;
[0215] According to the operation processing mode corresponding to the operation type, label data processing is performed in the target data link according to the data parameters.
[0216] The computer program product provided in this embodiment first obtains the user tag data for data processing, then extracts the index identifier in the user tag data, and determines the target data link in the data structure based on the index identifier, and then performs parameter calculation on the user tag data based on the parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters, and finally performs tag data processing on the target data link according to the data parameters in accordance with the operation processing method corresponding to the operation type.
[0217] The computer program product provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0218] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0219] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0220] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0221] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0222] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0223] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0224] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0225] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0226] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0227] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A tag data processing method, characterized in that: The method comprises: Obtain user tag data for data processing; Extracting an index identifier from the user tag data, and determining a target data link in a data structure based on the index identifier; Performing parameter calculation on the user tag data based on a parameter calculation strategy corresponding to the operation type of the data processing to obtain data parameters; According to the operation processing mode corresponding to the operation type, label data processing is performed in the target data link according to the data parameters.
2. The tag data processing method according to claim 1, characterized in that: The obtaining of user tag data for data processing includes: Get user tag data for data storage; Accordingly, the parameter calculation strategy corresponding to the operation type based on the data processing performs parameter calculation on the user tag data to obtain data parameters, including: Determining a storage location for storing the data of the user tag data in the data structure; Based on a pre-configured mapping strategy, mapping processing is performed on the storage location and the data of each data item in the user tag data to obtain a location mapping parameter and a mapping parameter of each data item; Recombination parameter calculation is performed according to the recombination calculation strategy, the position mapping parameter and the mapping parameter to obtain the recombination parameter.
3. The tag data processing method according to claim 2, characterized in that: The processing method according to the operation type corresponding to the operation type and performing tag data processing in the target data link according to the data parameter include: If the storage location is a storage location on the deletion chain, updating the deletion chain relationship and the data chain relationship of the target data chain; If the storage location is not a storage location on the deleted data link, the data link relationship of the target data link is updated.
4. The tag data processing method according to claim 2, characterized in that: Determining a storage location for storing the data of the user tag data in the data structure includes: Reading a deletion chain in the data structure and detecting whether a data element exists in the deletion chain; If so, determining the element storage position of the first data element in the deletion chain as the storage position; If not, the maximum cursor position in the data structure is determined as the storage position, and the maximum cursor position in the data structure is moved backward.
5. The tag data processing method according to claim 1, characterized in that: The obtaining of user tag data for data processing includes: Get user tag data for data query; Accordingly, the parameter calculation strategy corresponding to the operation type based on the data processing performs parameter calculation on the user tag data to obtain data parameters, including: Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter; A query data parameter is calculated according to the name mapping parameter and the identifier mapping parameter.
6. The tag data processing method according to claim 5, characterized in that: The processing method according to the operation type corresponding to the operation type and performing tag data processing in the target data link according to the data parameter include: Based on the query data parameters, parameter matching is performed in each data element of the target data chain to obtain the target data element; Calculate a label value mapping parameter of the target data element according to the reorganized value of the target data element; Based on the mapping strategy, the label value mapping parameters are mapped to obtain a label value.
7. The tag data processing method according to claim 1, characterized in that: The obtaining of user tag data for data processing includes: Get the user tag data for data modification; Accordingly, the parameter calculation strategy corresponding to the operation type based on the data processing performs parameter calculation on the user tag data to obtain data parameters, including: Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter; A modified data parameter is calculated based on the name mapping parameter and the identifier mapping parameter.
8. The tag data processing method according to claim 1, characterized in that: The obtaining of user tag data for data processing includes: Get the user tag data for data deletion; Accordingly, the parameter calculation strategy corresponding to the operation type based on the data processing performs parameter calculation on the user tag data to obtain data parameters, including: Based on a pre-configured mapping strategy, mapping is performed on the tag name and the associated identifier in the user tag data to obtain a name mapping parameter and an identifier mapping parameter; A delete data parameter is calculated according to the name mapping parameter and the identifier mapping parameter.
9. The tag data processing method according to claim 1, characterized in that: The method further comprises: When the update time period is detected to have arrived, calculating the time parameter of each data element in the data structure, and updating the time parameter according to the update time period; If the time parameter of the target data element meets the deletion condition, the deletion chain relationship and the data link relationship of the data chain to be updated to which the target data element belongs are updated.
10. The tag data processing method according to claim 1, characterized in that: The method further comprises: Get the tag value to be matched; Performing element matching in each data element in the data structure based on the tag value to be matched, to obtain at least one target data element; The element number segment of each target data element is read, and at least one telephone number is calculated based on the element number segment and the link header data of the corresponding target data link to obtain at least one matching telephone number.
