User information aggregation method and device

By retrieving and merging according to the priority of user information key-value pairs in the information set family, the management problems of user information diversity and dispersion are solved, and efficient aggregation and management of user information is achieved.

CN119939569APending Publication Date: 2025-05-06KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411793776.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

When today's Internet application scenarios are complex and diverse, users can access the Internet through different accounts and/or devices, resulting in diversity and dispersion of user information, which makes it difficult to effectively aggregate and manage.

Method used

By obtaining user information generated by business events, obtaining the priority of each key-value pair, searching from high to low in the information set family in the order of priority of key-value pairs, determining whether the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair, and combining user information into a corresponding information set based on the priority relationship and adding it to the information set family.

Benefits of technology

It realizes effective aggregation and management of user information, and improves the efficiency and accuracy of data integration in the information set family.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119939569A_ABST
    Figure CN119939569A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a user information aggregation method and device, and the method comprises the steps: obtaining user information generated by a business event, and the user information comprises at least one key value pair; searching in an information set family according to the sequence of the priorities of the key value pairs from high to low, searching an information set containing the key value pair with the highest priority in the user information to obtain a first information set, the information set family comprising information sets obtained by aggregating historical user information; determining whether the priority of the first key value pair is higher than or equal to the priority of the second key value pair; the first key value pair is the key value pair with the highest priority in the first information set, and the second key value pair is the key value pair with the highest priority in the user information; if yes, combining each key value pair in the user information into a first information set; and if not, combining the key value pairs in the user information to generate a second information set, and adding the second information set into the information set family. The present application is used for effectively aggregating and managing user information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for aggregating user information. Background Art

[0002] In today's digital age, the application scenarios of the Internet are becoming increasingly rich and diverse. As people's dependence on the Internet continues to deepen, the way users interact with the Internet has become more complex and diverse.

[0003] Users often access the Internet through multiple accounts and / or multiple devices. For example, the same user may log in and access the Internet through mobile phone numbers, email addresses, and third-party accounts on different devices such as mobile phones, tablets, and computers. When accessing the Internet through different accounts and / or different devices, the access operation will generate different user information, such as login accounts, device identifiers, etc. The diversity and dispersion of this information will make it difficult to effectively aggregate and manage user information. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a user information aggregation method and device for effectively aggregating and managing user information.

[0005] In order to achieve the above purpose, the embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a method for aggregating user information, including:

[0007] Obtain user information generated by a business event, wherein the user information includes at least one key-value pair;

[0008] Obtaining the priority of each of the key-value pairs;

[0009] Searching in the information set family in descending order of priority of the key-value pairs, searching for an information set containing the key-value pair with the highest priority in the user information, to obtain a first information set, wherein the information set family includes each information set obtained by aggregating the historical user information;

[0010] Determine whether the priority of a first key-value pair is higher than or equal to the priority of a second key-value pair; the first key-value pair is the key-value pair with the highest priority in the first information set, and the second key-value pair is the key-value pair with the highest priority in the user information;

[0011] If yes, merging each key-value pair in the user information into the first information set;

[0012] If not, then combine the key-value pairs in the user information to generate a second information set, and add the second information set to the information set family.

[0013] As an optional implementation of the embodiment of the present application, the key-value pair includes: a field and a field value; and obtaining the priority of each key-value pair includes:

[0014] Obtaining the priority of each field of the key-value pair;

[0015] The priority of the field of each of the key-value pairs is determined as the priority of each of the key-value pairs.

[0016] As an optional implementation of the embodiment of the present application, the searching in the information set family in order of priority of the key-value pairs from high to low, searching the information set containing the key-value pair with the highest priority in the user information to obtain the first information set includes:

[0017] Determining whether there is an information set containing the second key-value pair in the information set family;

[0018] If an information set including the second key-value pair exists in the information set family, the information set including the second key-value pair in the information set family is determined as the first information set.

[0019] As an optional implementation of the embodiment of the present application, the method further includes:

[0020] If the information set family does not contain the second key-value pair, then the key-value pair of the next priority is used as the current key-value pair, and it is determined whether there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a higher priority than the current key-value pair, until it is determined that there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a higher priority than the current key-value pair;

[0021] An information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key having a higher priority than the current key-value pair is determined as the first information set.

[0022] As an optional implementation of the embodiment of the present application, after adding the second information set to the information set family, the method further includes:

[0023] Determining whether there is an information set containing the second key-value pair in the information set family;

[0024] If the third information set in the information set family contains the second key-value pair, the second information set and the third information set are merged.

[0025] As an optional implementation of the embodiment of the present application, merging each key-value pair in the user information into the first information set includes:

[0026] Determine a repeated key-value pair, where the repeated key-value pair is a key-value pair included in both the user information and the first information set;

[0027] Deleting the repeated key-value pairs in the user information;

[0028] The remaining key-value pairs of the user information after deleting the duplicate key-value pairs are added to the first information set.

[0029] As an optional implementation of the embodiment of the present application, before obtaining the priority of each of the key-value pairs, the method further includes:

[0030] Perform a null value check on each key-value pair in the user information, and delete the key-value pairs with null values ​​in the user information.

[0031] As an optional implementation of the embodiment of the present application, before acquiring the first information set, the method further includes:

[0032] Determine whether the second key-value pair is a single-value key-value pair;

[0033] If the second key-value pair is not a single-value key-value pair, a prompt message is output, where the prompt message is used to indicate data abnormality.

[0034] In a second aspect, an embodiment of the present application provides a user information aggregation device, including:

[0035] An information acquisition unit, used to acquire user information generated by a business event, wherein the user information includes at least one key-value pair;

[0036] A priority obtaining unit, used to obtain the priority of each of the key-value pairs;

[0037] a retrieval unit, configured to search in the information set family in descending order of priority of the key-value pairs, and retrieve the information set containing the key-value pair with the highest priority in the user information, so as to obtain a first information set, wherein the information set family includes each information set obtained by aggregating the historical user information;

[0038] a processing unit, configured to determine whether a priority of a first key-value pair is higher than or equal to a priority of a second key-value pair; the first key-value pair being a key-value pair with the highest priority in the first information set, and the second key-value pair being a key-value pair with the highest priority in the user information;

[0039] An aggregation unit is used to merge the key-value pairs in the user information into the first information set when the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair; and to combine the key-value pairs in the user information to generate a second information set and add the second information set to the information set family when the priority of the first key-value pair is lower than the priority of the second key-value pair.

[0040] As an optional implementation of the embodiment of the present application, the key-value pair includes: a field and a field value; the priority acquisition unit is specifically used to obtain the priority of the field of each key-value pair; and the priority of the field of each key-value pair is determined as the priority of each key-value pair.

[0041] As an optional implementation of an embodiment of the present application, the retrieval unit is specifically used to determine whether there is an information set containing the second key-value pair in the information set family; and when there is an information set containing the second key-value pair in the information set family, determine the information set containing the second key-value pair in the information set family as the first information set.

[0042] As an optional implementation of the embodiment of the present application, the retrieval unit is also used to, when there is no information set containing the second key-value pair in the information set family, take the key-value pair of the next priority as the current key-value pair, and determine whether there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair, until it is determined that there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair; and determine the information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair as the first information set.

[0043] As an optional implementation of the embodiment of the present application, the retrieval unit is further used to determine whether there is an information set containing the second key-value pair in the information set family after adding the second information set to the information set family;

[0044] The aggregation unit is further configured to merge the second information set and the third information set when the third information set in the information set family includes the second key-value pair.

[0045] As an optional implementation of an embodiment of the present application, the aggregation unit is specifically used to determine duplicate key-value pairs, where the duplicate key-value pairs are key-value pairs contained in both the user information and the first information set; delete the duplicate key-value pairs in the user information; and add the remaining key-value pairs of the user information after deleting the duplicate key-value pairs to the first information set.

[0046] As an optional implementation of the embodiment of the present application, the acquisition unit is also used to perform a null value check on each key-value pair in the user information before acquiring the priority of each key-value pair, and delete the key-value pairs with empty values ​​in the user information.

[0047] As an optional implementation of the embodiment of the present application, the acquisition unit is also used to determine whether the second key-value pair is a single-value key-value pair before acquiring the first information set, and to output a prompt message when the second key-value pair is not a single-value key-value pair, wherein the prompt message is used to indicate data abnormality.

[0048] In a third aspect, an embodiment of the present application provides a user information aggregation device, comprising: a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to enable the user information aggregation device to implement the user information aggregation method described in any of the above-mentioned embodiments when executing the computer program.

[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which, when the computer program is executed by a computing device, enables the computing device to implement any of the above-mentioned user information aggregation methods.

[0050] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to implement any of the above-mentioned user information aggregation methods.

[0051] The user information aggregation method provided in the embodiment of the present application first obtains user information generated by a business event and contains at least one key-value pair, and obtains the priority of each key-value pair, and then searches in the information set family in order of the priority of the key-value pairs from high to low, and retrieves the information set containing the key-value pair with the highest priority in the user information to obtain a first information set, and then determines whether the priority of the first key-value pair with the highest priority in the first information set is higher than or equal to the priority of the second key-value pair with the highest priority in the user information, and when the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair, merges each key-value pair in the user information into the first information set, and when the priority of the first key-value pair is lower than the priority of the second key-value pair, combines each key-value pair in the user information to generate a second information set, and adds the second information set to the information set family. Since the embodiment of the present application searches for an information set containing the key-value pair with the highest priority in the user information in the information set family in order of the priority of the key-value pairs from high to low, and determines whether to merge the key-value pairs in the user information into the retrieved information set or to combine the key-value pairs in the user information into an information set and add it to the information set family based on the key-value pairs with the highest priority in the retrieved information set and the key-value pairs with the highest priority in the user information, the user information aggregation method provided by the embodiment of the present application can effectively aggregate and manage user information. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0054] Figure 1 A flowchart of a user information aggregation method provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of the structure of a user information aggregation device provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the hardware structure of the user information aggregation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0059] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0060] The present application embodiment provides a method for aggregating user information. Figure 1 As shown, the user information aggregation method includes the following steps:

[0061] S101. Obtain user information generated by a business event.

[0062] The user information includes at least one key-value pair.

[0063] The business events in the embodiments of the present application refer to things that occur during the user's Internet access, have specific business significance, and can trigger a series of related business operations or process changes. Business events are generally key occurrence points in the business process, marking the change of business status or the start, progress, or end of business activities. For example: business events generated during the visit to the real estate information service website may include: house entry, house review, house status update, house release, account registration, house search, house viewing appointment, etc.

[0064] In the embodiment of the present application, the user information generated by the business event may include: the associated subject information of the business event or the business event context information. For example, when the business event is an appointment to view a house, the user information generated by the business event may include: user = user A; house = house 1; time = YYYY:MM:DD and other key-value pairs.

[0065] S102: Obtain the priority of each of the key-value pairs.

[0066] In some embodiments, the key-value pair includes: a field and a field value; obtaining the priority of each key-value pair includes: obtaining the priority of the field of each key-value pair; and determining the priority of the field of each key-value pair as the priority of each key-value pair.

[0067] In some embodiments, the priority of each field can be predefined, and the priority of each key-value pair in the user information can be obtained according to the priority of each field of each key-value pair in the user information. For example, the user information includes three key-value pairs, namely: A=a1, B=b1, C=c1; the priority of the predefined field is A>B>C, then it can be determined that the priority of A=a1 is higher than the priority of B=b1, and the priority of B=b1 is higher than the priority of C=c1.

[0068] S103 . Search the information set family in descending order of priority of the key-value pairs, and search for the information set containing the key-value pair with the highest priority in the user information to obtain a first information set.

[0069] The information set family includes various information sets obtained by aggregating historical user information.

[0070] A family of sets is a set with sets as elements. That is, a family of sets is a special set, and the special thing is that each element in the family of sets is also a set. The information family of sets in the embodiment of the present application is a set composed of various information sets obtained by aggregating historical user information.

[0071] In some embodiments, searching in the information set family in descending order of priority of the key-value pairs, searching for the information set containing the key-value pair with the highest priority in the user information to obtain the first information set includes the following steps a to d:

[0072] Step a: Determine whether there is an information set containing the second key-value pair in the information set family.

[0073] That is, it is sufficient to determine whether there is information in the information set that contains the key-value pair with the highest priority in the user information.

[0074] Assumption: user information contains a key-value pair A=a1, B=b1, C=c1, and the priority of A=a1 is higher than the priority of B=b1, and the priority of B=b1 is higher than the priority of C=c1, then the key-value pair with the highest priority in the user information is A=a1; determining whether there is an information set containing the second key-value pair in the information set family includes: determining whether there is an information set containing A=a1 in the information set family.

[0075] In the above step a, if there is an information set containing the second key-value pair in the information set family, the following step b is executed:

[0076] Step b: Determine the information set containing the second key-value pair in the information set family as the first information set.

[0077] In the above step a, if the information set family does not contain the information set containing the second key-value pair, then execute the following step c:

[0078] Step c: take the key-value pair of the next priority as the current key-value pair, and determine whether there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair, until it is determined that there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair.

[0079] As described in the above example, if there is no information set containing A=a1 in the information set family, B=b1 is used as the current key-value pair, and it is determined whether there is an information set containing B=b1 and not containing a key-value pair with key A in the information set family (an information set where A=null and contains B=b1); if there is an information set containing B=b1 and not containing a key-value pair with key A in the information set family, the information set containing B=b1 and not containing a key-value pair with key A in the information set family is determined as the first information set; if there is no information set containing B=b1 and not containing a key-value pair with key A in the information set family, it is further determined whether there is an information set containing C=c1 and not containing a key-value pair with key A or B in the information set family (an information set where A=null, B=null and contains C=c1).

[0080] Step d: Determine the information set in the information set family that contains the current key-value pair and does not contain a key-value pair with the same key and a higher priority than the current key-value pair as the first information set.

[0081] When the user information contains the key-value pair A=a1, B=b1, C=c1, and the priority of A=a1 is higher than the priority of B=b1, and the priority of B=b1 is higher than the priority of C=c1, the above steps a to d can also be described as: searching for information sets in the information set family based on the search conditions "A=a1", "A=null and B=b1", "A=null and B=null and C=c1" in sequence; if a certain search condition retrieves the information set, the retrieved information set is determined as the first information set, and searching based on subsequent search conditions is stopped.

[0082] S104: Determine whether the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair.

[0083] The first key-value pair is the key-value pair with the highest priority in the first information set, and the second key-value pair is the key-value pair with the highest priority in the user information.

[0084] That is, the priorities of the key-value pair with the highest priority in the first information set and the key-value pair with the highest priority in the user information are compared.

[0085] In the above step S104, if the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair (the priority of the key-value pair with the highest priority in the first information set is higher than or equal to the priority of the key-value pair with the highest priority in the user information), the following step S105 is executed:

[0086] S105: Merge each key-value pair in the user information into the first information set.

[0087] In some embodiments, merging each key-value pair in the user information into the first information set includes the following steps 1 to 3:

[0088] Step 1: Identify duplicate key-value pairs.

[0089] The repeated key-value pair is a key-value pair included in both the user information and the first information set.

[0090] For example, if the user information includes a key-value pair A=a1, B=b1, C=c1, and the first information set is {A=a1, B=b1, D=d1}, then the repeated key-value pairs include: A=a1 and B=b1.

[0091] Step 2: Delete the repeated key-value pairs in the user information.

[0092] As described in the above example, after deleting A=a1 and B=b1 in the user information and deleting the duplicate key-value pairs, the user information only includes one key-value pair, C=c1.

[0093] Step 3: Add the remaining key-value pairs of the user information after deleting the duplicate key-value pairs to the first information set.

[0094] As described in the above example, after deleting the duplicate key-value pairs, the remaining key-value pairs of the user information only include C=c1, so C=c1 is added to the first information set. After adding and deleting the duplicate key-value pairs, the first information set becomes: {A=a1, B=b1, C=c1, D=d1}.

[0095] In the above step S103, if the priority of the first key-value pair is lower than the priority of the second key-value pair (the priority of the key-value pair with the highest priority in the first information set is lower than the priority of the key-value pair with the highest priority in the user information), the following step S105 is executed:

[0096] S106: Combine the key-value pairs in the user information to generate a second information set, and add the second information set to the information set family.

[0097] As described in the above example, the user information contains the key-value pair A=a1, B=b1, C=c1, so the second information set generated by combining the key-value pairs in the user information is: {A=a1, B=b1, C=c1}, so {A=a1, B=b1, C=c1} is added to the information set family.

[0098] The user information aggregation method provided in the embodiment of the present application first obtains the priority of each key-value pair in the user information generated by the business event, and obtains the priority of each key-value pair, and then searches in the information set family in order of the priority of the key-value pairs from high to low, and retrieves the information set containing the key-value pair with the highest priority in the user information to obtain a first information set, and then determines whether the priority of the first key-value pair with the highest priority in the first information set is higher than or equal to the priority of the second key-value pair with the highest priority in the user information, and when the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair, merges each key-value pair in the user information into the first information set, and when the priority of the first key-value pair is lower than the priority of the second key-value pair, combines each key-value pair in the user information to generate a second information set, and adds the second information set to the information set family. Since the embodiment of the present application searches for an information set containing the key-value pair with the highest priority in the user information in the information set family in order of the priority of the key-value pairs from high to low, and determines whether to merge the key-value pairs in the user information into the retrieved information set or to combine the key-value pairs in the user information into an information set and add it to the information set family based on the key-value pairs with the highest priority in the retrieved information set and the key-value pairs with the highest priority in the user information, the user information aggregation method provided by the embodiment of the present application can effectively aggregate and manage user information.

[0099] In some embodiments, after adding the second information set to the information set family, the method further includes: determining whether there is an information set containing the second key-value pair in the information set family; if the third information set in the information set family contains the second key-value pair, merging the second information set and the third information set.

[0100] Assumption: The priority of predefined keys is A>B>C>D, and the information set in the information set family includes:

[0101] o1={A=a1, B=b1, C=c1};

[0102] o2={A=a2, B=b1, C=c2};

[0103] o3={B=b1, C=c1, D=d1}.

[0104] Although the key of the highest priority key-value pair of information set o1 and information set o2 is A, because A=a1 in information set o1 and A=a2 in information set o2 are not equal, information set o1 and information set o2 cannot be merged. Since the highest priority key-value pair of information set o3 is B=b1, and information set o2 contains the same key-value pair B=b1, information set o3 can be merged into information set o2. After information set o3 is merged into information set o2, the resulting set o4 is: {A=a2, B=b1, C=c1, c2, D=d1}.

[0105] After the merging is completed, the information set in the information set family includes:

[0106] o1={A=a1, B=b1, C=c1};

[0107] o4={A=a2, B=b1, C=c1, c2, D=d1}.

[0108] In some embodiments, before obtaining the priority of each of the key-value pairs, the method further includes: performing a null value check on each of the key-value pairs in the user information, and deleting the key-value pairs with null values ​​in the user information.

[0109] When faced with a large amount of user information generated by business events, there may be some key-value pairs with empty values. These empty values ​​may be caused by data entry errors, data transmission problems, or in some cases, there are indeed no corresponding values. If these empty key-value pairs are not processed, when performing the aggregation operation of user information, it may affect the accuracy of the aggregation results and reduce the aggregation efficiency. Before starting to aggregate the user information generated by the business events, the above embodiment first searches and deletes the empty key-value pairs in the user information, so that the aggregated data has higher accuracy and improves the aggregation efficiency.

[0110] In some embodiments, before obtaining the priority of each of the key-value pairs, the method also includes: determining whether the second key-value pair is a single-value key-value pair; if the second key-value pair is not a single-value key-value pair, outputting a prompt message, wherein the prompt message is used to prompt data abnormality.

[0111] That is, it is determined whether the key-value pair with the highest priority in the user information is a single-value key-value pair. If the key-value pair with the highest priority in the user information is a multi-value key-value pair, prompt information for prompting data abnormality is output.

[0112] A single-value key-value pair is a key-value pair consisting of a key and a unique value corresponding to it. Single-value key-value pairs and multi-value key-value pairs are relative concepts. Multi-value key-value pairs are key-value pairs in which one key corresponds to multiple values. When the key-value pair with the highest priority in user information is a multi-value key-value pair, outputting a prompt message for indicating data anomalies can prevent user information from being unable to be aggregated.

[0113] Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application also provides a user information aggregation device, which corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the user information aggregation device in this embodiment can correspond to all the contents of the above method embodiment.

[0114] The present application embodiment provides a user information aggregation device, Figure 2 is a schematic diagram of the structure of the user information aggregation device, such as Figure 2 As shown, the user information aggregation device 200 includes:

[0115] An information acquisition unit 21 is used to acquire user information generated by a business event, wherein the user information includes at least one key-value pair;

[0116] A priority obtaining unit 22, used to obtain the priority of each of the key-value pairs;

[0117] A retrieval unit 23, configured to search in the information set family in descending order of priority of the key-value pairs, and retrieve the information set containing the key-value pair with the highest priority in the user information to obtain a first information set, wherein the information set family includes each information set obtained by aggregating the historical user information;

[0118] The processing unit 24 is used to determine whether the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair; the first key-value pair is the key-value pair with the highest priority in the first information set, and the second key-value pair is the key-value pair with the highest priority in the user information;

[0119] Aggregation unit 25 is used to merge the key-value pairs in the user information into the first information set when the priority of the first key-value pair is higher than or equal to the priority of the second key-value pair; and to combine the key-value pairs in the user information to generate a second information set and add the second information set to the information set family when the priority of the first key-value pair is lower than the priority of the second key-value pair.

[0120] As an optional implementation of the embodiment of the present application, the key-value pair includes: a field and a field value; the priority activation area unit 22 is specifically used to obtain the priority of each field of the key-value pair; and the priority of each field of the key-value pair is determined as the priority of each key-value pair.

[0121] As an optional implementation of the embodiment of the present application, the retrieval unit 23 is specifically used to determine whether there is an information set containing the second key-value pair in the information set family; and when there is an information set containing the second key-value pair in the information set family, determine the information set containing the second key-value pair in the information set family as the first information set.

[0122] As an optional implementation of the embodiment of the present application, the retrieval unit 23 is also used to, when there is no information set containing the second key-value pair in the information set family, use the key-value pair of the next priority as the current key-value pair, and determine whether there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair, until it is determined that there is an information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair; and determine the information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key that is the same as a key-value pair with a higher priority than the current key-value pair as the first information set.

[0123] As an optional implementation of the embodiment of the present application, the retrieval unit 23 is further used to determine whether there is an information set containing the second key-value pair in the information set family after adding the second information set to the information set family;

[0124] The aggregation unit 25 is further configured to merge the second information set with the third information set when the third information set in the information set family includes the second key-value pair.

[0125] As an optional implementation of the embodiment of the present application, the aggregation unit 25 is specifically used to determine duplicate key-value pairs, which are key-value pairs contained in both the user information and the first information set; delete the duplicate key-value pairs in the user information; and add the remaining key-value pairs of the user information after deleting the duplicate key-value pairs to the first information set.

[0126] As an optional implementation of the embodiment of the present application, the priority acquisition unit 22 is also used to perform a null value check on each key-value pair in the user information before obtaining the priority of each key-value pair, and delete the key-value pairs with empty values ​​in the user information.

[0127] As an optional implementation of the embodiment of the present application, the retrieval unit 23 is also used to determine whether the second key-value pair is a single-value key-value pair before acquiring the first information set, and to output prompt information when the second key-value pair is not a single-value key-value pair, wherein the prompt information is used to indicate data abnormality.

[0128] The user information aggregation device provided in the embodiment of the present application can execute the user information aggregation method provided in any of the above embodiments, and its implementation principle and technical effect are similar, which will not be repeated here.

[0129] Based on the same inventive concept, an embodiment of the present application also provides a user information aggregation device. Figure 3 A schematic diagram of the structure of a user information aggregation device provided in an embodiment of the present application, such as Figure 3 As shown, the user information aggregation device provided in this embodiment includes: a memory 301 and a processor 302, wherein the memory 301 is used to store a computer program, and the processor 302 is used to execute any user information aggregation method provided in the above embodiments when executing the computer program.

[0130] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements any user information aggregation method provided in the above embodiments.

[0131] Based on the same inventive concept, an embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computing device implements any user information aggregation method provided in the above embodiments.

[0132] 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 combining 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 that include computer-usable program code.

[0133] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0134] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0135] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic 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 media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A user information aggregation method, characterized in that: include: Obtain user information generated by a business event, wherein the user information includes at least one key-value pair; Obtaining the priority of each of the key-value pairs; Searching in the information set family in descending order of priority of the key-value pairs, searching for an information set containing the key-value pair with the highest priority in the user information, to obtain a first information set, wherein the information set family includes each information set obtained by aggregating the historical user information; Determine whether the priority of a first key-value pair is higher than or equal to the priority of a second key-value pair; the first key-value pair is the key-value pair with the highest priority in the first information set, and the second key-value pair is the key-value pair with the highest priority in the user information; If yes, merging each key-value pair in the user information into the first information set; If not, then combine the key-value pairs in the user information to generate a second information set, and add the second information set to the information set family.

2. The method according to claim 1, characterized in that The key-value pair includes: a field and a field value; and obtaining the priority of each key-value pair includes: Obtaining the priority of each field of the key-value pair; The priority of the field of each of the key-value pairs is determined as the priority of each of the key-value pairs.

3. The method according to claim 1, characterized in that The searching in the information set family in descending order of priority of the key-value pairs, searching the information set containing the key-value pair with the highest priority in the user information, to obtain the first information set, includes: Determining whether there is an information set containing the second key-value pair in the information set family; If an information set including the second key-value pair exists in the information set family, the information set including the second key-value pair in the information set family is determined as the first information set.

4. The method according to claim 3, characterized in that The method further comprises: If the information set family does not contain the second key-value pair, then use the key-value pair of the next priority as the current key-value pair, and determine whether the information set family contains the current key-value pair and does not contain a key-value pair with a higher priority than the current key-value pair, until it is determined that the information set family contains the current key-value pair and does not contain a key-value pair with a higher priority than the current key-value pair. The information set in the information set family that contains the current key-value pair and does not contain a key-value pair with a key having a higher priority than the current key-value pair is determined as the first information set.

5. The method according to claim 1, characterized in that After adding the second information set to the information set family, the method further includes: Determining whether there is an information set containing the second key-value pair in the information set family; If the third information set in the information set family includes the second key-value pair, the second information set and the third information set are merged.

6. The method according to claim 1, characterized in that Before obtaining the priority of each of the key-value pairs, the method further includes: Perform a null value check on each key-value pair in the user information, and delete the key-value pairs with null values ​​in the user information.

7. The method according to claim 1, characterized in that Before acquiring the first information set, the method further includes: Determine whether the second key-value pair is a single-value key-value pair; If the second key-value pair is not a single-value key-value pair, a prompt message is output, where the prompt message is used to indicate data abnormality.

8. A user information aggregation device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program and the processor is used to enable the user information aggregation device to implement the user information aggregation method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the user information aggregation method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product runs on a computer, the computer implements the user information aggregation method according to any one of claims 1 to 7.