WO2022160702A1 - 榜单生成方法及装置 - Google Patents

榜单生成方法及装置 Download PDF

Info

Publication number
WO2022160702A1
WO2022160702A1 PCT/CN2021/115461 CN2021115461W WO2022160702A1 WO 2022160702 A1 WO2022160702 A1 WO 2022160702A1 CN 2021115461 W CN2021115461 W CN 2021115461W WO 2022160702 A1 WO2022160702 A1 WO 2022160702A1
Authority
WO
WIPO (PCT)
Prior art keywords
list
target
data source
list element
elements
Prior art date
Application number
PCT/CN2021/115461
Other languages
English (en)
French (fr)
Inventor
张济
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022160702A1 publication Critical patent/WO2022160702A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/798Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for assessing skills or for ranking players, e.g. for generating a hall of fame
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a method and device for generating a list.
  • the list is widely used in a large number of application scenarios, such as game rating lists, news hotspot lists, etc.
  • the sorting and display rules of the list will change with the change of business scenarios, and the list elements in the list come from a variety of different data sources.
  • a method for generating a list including:
  • the target terminal In response to the display request of the target list sent by the target terminal, determine the list configuration information of the target list, where the list configuration information represents the display control of the list elements corresponding to the multiple data sources of the target list information;
  • the target list elements are sorted based on the target sorting parameter to generate the target list.
  • an apparatus for generating a list including:
  • a list configuration information determining module is configured to execute a display request for a target list sent by a target terminal, and determine list configuration information of the target list, where the list configuration information represents the majority of the target list. Display control information of list elements corresponding to each data source;
  • a target list element obtaining module configured to obtain the target list element corresponding to the target terminal based on the list configuration information
  • a target sorting parameter acquisition module configured to execute and acquire target sorting parameters corresponding to the target list elements
  • the target list generation module is configured to perform sorting on the target list elements based on the target ranking parameter to generate the target list.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to achieve The method of any one of the first aspects above.
  • a computer-readable storage medium when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the first embodiment of the present disclosure.
  • a computer program product comprising instructions which, when run on a computer, cause the computer to perform any one of the methods described in the first aspect of the embodiments of the present disclosure.
  • combining the list configuration information of the display control information of the list elements corresponding to the multiple data sources that can represent the target list can greatly improve the configurability and reusability of the list; and Based on the list configuration information, the list information corresponding to multiple data sources is obtained at one time, which greatly improves the efficiency of obtaining list information.
  • the sorting parameter request is redundant, which saves the waste of service resources; and after obtaining the target sorting parameters, uniform sorting of the list elements of various data sources can greatly reduce the complexity of sorting.
  • FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a method for generating a list according to an exemplary embodiment
  • FIG. 3 is a schematic flowchart of obtaining target list elements corresponding to target terminals based on list configuration information according to an exemplary embodiment
  • FIG. 4 is a schematic flowchart of determining a target list element based on an acquired list element according to an exemplary embodiment
  • FIG. 5 is a flow chart of obtaining target ranking parameters corresponding to target list elements according to an exemplary embodiment
  • Fig. 6 is a kind of flow chart of sorting target list elements based on target sorting parameters, and generating a target list according to an exemplary embodiment
  • FIG. 7 is a schematic diagram of a target list according to an exemplary embodiment
  • FIG. 8 is a block diagram of an apparatus for generating a list according to an exemplary embodiment
  • Fig. 9 is a block diagram of an electronic device for generating a list according to an exemplary embodiment.
  • FIG. 1 is a schematic diagram of an application environment according to an exemplary embodiment.
  • the application environment may include a target terminal 01 and a server 02 .
  • the target terminal 01 can be used to provide a list display service for any user.
  • the target terminal 01 may include, but is not limited to, a smartphone, a desktop computer, a tablet computer, a laptop computer, a smart speaker, a digital assistant, an augmented reality (AR)/virtual reality (VR) device, a smart Electronic devices such as wearable devices.
  • the operating system running on the electronic device may include, but is not limited to, an Android system, an IOS system, linux, windows, and the like.
  • the server 02 may provide a background service for the target terminal 01 to generate a target list requested by the target terminal.
  • the server 02 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, Cloud servers for basic cloud computing services such as cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
  • cloud services cloud databases, cloud computing, cloud functions, cloud storage, network services, Cloud servers for basic cloud computing services such as cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
  • CDN Content Delivery Network
  • FIG. 1 is only an application environment provided by the present disclosure, and in practical applications, other application environments may also be included, for example, more target terminals may be included.
  • the above-mentioned target terminal 01 and the server 02 may be directly or indirectly connected through wired or wireless communication, which is not limited in this disclosure.
  • FIG. 2 is a flowchart of a method for generating a list according to an exemplary embodiment. As shown in FIG. 2 , the method for generating a list is used in electronic devices such as a server, a processor, and an edge computing node, and includes the following steps.
  • step S201 in response to the display request of the target list sent by the target terminal, the list configuration information of the target list is determined.
  • the corresponding list configuration information may be pre-configured for different types of lists in combination with actual application requirements.
  • the display request initiated by the target terminal may include a list identifier corresponding to the business scenario in which the target terminal initiates the request (the list identifier may be used to distinguish different types of list).
  • the type of the list requested by the target terminal (the type of the list corresponding to the target list) can be determined in combination with the list identifier, and the list configuration information of the target list can be determined.
  • the list configuration information may represent display control information of list elements corresponding to multiple data sources of the target list.
  • the list is information after sorting multiple similar data.
  • Each item of data in the list can be used as a list element, and the list elements can be combined with the corresponding data to be sorted in business requirements.
  • the objects are different.
  • the list element may be the basic information of the object corresponding to the data that needs to be sorted in the actual business.
  • the multiple data sources of the target list may include sources of objects corresponding to each list element in the target list.
  • the above-mentioned basic information of the corresponding object may include identification information of the object.
  • the above-mentioned corresponding object may be a user, and accordingly, the identification information of the object may include but not limited to user identification information such as user nicknames .
  • list elements may be enriched in combination with practical applications, and accordingly, the basic information of the corresponding object may further include information associated with the target list in the attribute information of the object.
  • the information associated with the target list in the attribute information of the object may include, but is not limited to, the user's game level and the like.
  • each list element in the user mutual aid list may be basic information corresponding to a user, and the corresponding , the corresponding object of the above list element may be the user, and the multiple data sources of the target list may be the source of the user.
  • the source of the user may include, but is not limited to, users who participate in the game and belong to mutual attention, users who participate in the game and belong to fans, and users who participate in the game and belong to recommended users (which can be determined in conjunction with the degree of association between users) Wait.
  • each list element in the information recommendation list may be the basic information of the target recommendation information (information that needs to be recommended), and accordingly,
  • the corresponding object of the above-mentioned list element may be the target recommendation information
  • multiple data sources of the target list may be the source of the target recommendation information.
  • the source of the target recommendation information may include but not limited to user browsing information records. , user favorite information list, etc.
  • the above-mentioned multiple data sources may include target data sources and non-target data sources.
  • the target data sources may be data sources corresponding to the list elements displayed in the target list by default; non-target data sources
  • the source may be a data source corresponding to a list element that will be displayed in the target list only under preset display conditions.
  • target data sources and non-target data sources can be divided according to actual application requirements.
  • the corresponding multiple data sources include: users who participate in the game and are following each other, users who do not participate in the game and are following each other, Users who participate in the game and belong to fans, and users who participate in the game and belong to recommended users.
  • users who participate in the game and belong to each other's attention users who do not participate in the game and belong to each other's attention can be target data sources, and users who participate in the game and belong to fans, and users who participate in the game and belong to recommended users can be non-target data sources.
  • step S203 the target list element corresponding to the target terminal is acquired based on the list configuration information.
  • the list configuration information may include the display priorities of the above-mentioned multiple data sources and the preset display conditions of the above-mentioned non-target data sources; wherein, the display priorities of the target data sources among the multiple data sources are in the multiple data sources.
  • the first preset number of display priorities of each data source (the preset number is consistent with the number of target data sources) bits.
  • the display priorities of multiple data sources may be set in combination with the importance of list elements corresponding to different data sources in practical applications.
  • the importance of the list elements can be set according to the actual application requirements.
  • the importance of the list elements is proportional to the display priority of the data source.
  • the above-mentioned acquisition of the target list element corresponding to the target terminal based on the list configuration information may include the following steps:
  • step S2031 obtain the list element corresponding to the target terminal in the target data source
  • step S2033 in the case that the acquired list elements do not meet the preset display conditions of the next data source, acquire the list elements corresponding to the target terminal in the next data source, and the above-mentioned next data source may be display priority
  • the non-target data source whose level is one level after the current data source the current data source can display the data source with the lowest priority among the data sources corresponding to the acquired list elements.
  • step S2035 in the case that the acquired list elements satisfy the preset display conditions of the next data source, the target list elements are determined based on the acquired list elements.
  • the list elements corresponding to the target data source are displayed in the target list by default, the list elements corresponding to the target terminal in the target data source can be directly obtained.
  • the corresponding list elements may be obtained sequentially from high to low according to the display priorities of the multiple target data sources.
  • the corresponding list element may be obtained in combination with the preset display conditions and display priority of the non-target data source. Specifically, in the case that the obtained list elements do not meet the preset display conditions of the next data source, the list elements corresponding to the target terminal in the next data source can be continuously obtained; until the obtained list elements satisfy Preset presentation conditions for the next data source.
  • the preset display condition of a certain non-target data source may be that the total number of list elements corresponding to a data source with a display priority higher than that of the non-target data source is less than or equal to a first preset threshold.
  • the preset display condition of a certain non-target data source may be that the number of list elements corresponding to a certain target data source is less than or equal to a second preset threshold.
  • the list elements corresponding to an object can be counted once, and the first preset threshold and the second preset threshold can be set according to actual application requirements, and the preset display
  • the conditions can be set in combination with actual application requirements, and are not limited to the above.
  • list elements are sequentially acquired in combination with the display priorities of multiple data sources and the preset display conditions of non-target data sources, which can effectively ensure that the list elements obtained are obtained. At the same time, the effectiveness of single elements is improved, and the acquisition speed of list elements is improved.
  • obtaining the list elements corresponding to the target terminal in any data source may include requesting the target service corresponding to the data source for the target terminal in the The corresponding list element in the data source.
  • the list elements under the service corresponding to different terminals are often different.
  • the corresponding target list in the process of requesting the target service corresponding to the data source for the list element corresponding to the target terminal in the data source, the corresponding target list can be obtained from the corresponding service in combination with the identification information corresponding to the target terminal. element.
  • the service corresponding to the data source may be a functional module in the server, and the service corresponding to a certain data source may be a functional module for processing the business corresponding to the data source.
  • the service corresponding to the data source may include the service of the list itself and services other than the service of the list itself.
  • the target service corresponding to a certain data source may be a functional module for processing services other than the ranking list service in the services corresponding to the data source.
  • a certain data source includes users who participate in the game and belong to the users who follow each other, correspondingly, the participating games correspond to the game business, and the mutual following corresponds to follow service, since the game business belongs to the business of the target list itself, correspondingly, the target service corresponding to the target data source may include the follow service.
  • the follow service may be used for processing the function module of the follow business among users.
  • the target services corresponding to the two target data sources when the target services corresponding to the two target data sources are the same, in the process of obtaining the list elements corresponding to the target terminal in the target data sources, the target services corresponding to the two target data sources may be The obtained list element corresponding to the target terminal is used as the list element corresponding to the target terminal in the two target data sources.
  • the target data source corresponding to the target list includes users who participate in the game and belong to each other, and users who do not participate in the game and belong to each other, wherein, the users who participate in the game and belong to the mutual attention and those who do not participate in the game
  • the target services corresponding to users who participate in the game and belong to each other are the following services.
  • the list elements corresponding to the target terminals obtained from the following services can be used as the corresponding lists of the target terminals in the two target data sources. element.
  • the above process of obtaining the list elements corresponding to the target terminal in any data source may be combined with the above.
  • the services corresponding to multiple services obtain the list elements respectively, and take the intersection of the obtained list elements as the list elements corresponding to the target terminal in the data source.
  • determining the target list element based on the acquired list elements may include: acquiring target behavior information of the object corresponding to the acquired list element; screening the acquired list elements based on the target behavior information , get the target list element.
  • the target behavior information may be behavior information of whether the corresponding object participates in the activity corresponding to the target list.
  • the target behavior information may include participating activities and non-participating activities.
  • screening the acquired list elements based on the target behavior information, and obtaining the target list elements may include filtering out the target behavior information as list elements participating in the activity, as the target list elements.
  • the list information corresponding to the multiple data sources is screened as a whole in combination with the target behavior information, which can greatly improve the efficiency of obtaining the target list information.
  • the above-mentioned target data source may include a first target data source and a second target data source.
  • determining the target list elements may include the following steps :
  • step S401 obtain the target behavior information of the object corresponding to the obtained list element
  • step S403 the list elements corresponding to the target data source are divided based on the target behavior information to obtain a first list element corresponding to the first target data source and a second list element corresponding to the second target data source ;
  • step S405 the list elements corresponding to the non-target data sources are screened based on the target behavior information to obtain the filtered list elements corresponding to the non-target data sources;
  • step S407 the first list element, the second list element and the filtered list element are used as the target list element;
  • the first target data source and the second target data source may sequentially be two data sources in the target data source corresponding to the same target service where the target behavior information is participating activities and the target behavior information is non-participating activities.
  • the presentation priority of the first target data source is higher than the presentation priority of the second target data source.
  • the list information corresponding to the multiple data sources is filtered and divided as a whole in combination with the target behavior information, which can greatly improve the efficiency of obtaining the target list information.
  • the same list elements may exist in different data sources.
  • the above Methods also include:
  • obtaining the target behavior information of the object corresponding to the obtained list element may include:
  • step S205 target ranking parameters corresponding to the target list elements are obtained.
  • the above-mentioned target list elements may include multiple list elements.
  • the above-mentioned acquisition of the target ranking parameters corresponding to the target list elements includes:
  • step S2051 determine the sorting parameter type of the data source corresponding to each list element
  • step S2053 deduplication processing is performed on the sorting parameter types corresponding to the multiple list elements to obtain the target sorting parameter types corresponding to the multiple list elements;
  • step S2055 the target sorting parameters are obtained based on the target sorting parameter type.
  • the sorting parameter type of the data source may be the type of at least one sorting parameter corresponding to the data source.
  • different data sources may correspond to different types of sorting parameters, or may correspond to the same type of sorting parameters.
  • the sorting parameter corresponding to any data source can be used to sort the list elements corresponding to the data source.
  • the at least two sorting parameters may correspond to different sorting priorities.
  • the sorting priority of the sorting parameter can be set according to actual application requirements.
  • obtaining the target ranking parameter may include requesting the corresponding target ranking parameter from a service corresponding to the target ranking parameter type.
  • the service corresponding to the target sorting parameter type may be a function module in the server, and the service corresponding to a certain sorting parameter type may be a function module for obtaining a request for sorting parameters corresponding to the sorting parameter type.
  • the corresponding data sources include in order: users who participate in the game and belong to the users who follow each other, users who do not participate in the game, Games and belong to users who follow each other, users who participate in games and belong to fans, users who participate in games and belong to recommended users.
  • users who participate in the game and belong to each other and users who do not participate in the game and belong to each other are the target data sources; users who participate in the game and are fans, and users who participate in the game and are recommended users are non-target data sources.
  • the sorting parameter types may include: intimacy, current level, and time to become friends.
  • the sorting parameter types may include: intimacy and time to become friends.
  • the sorting parameter types may include: intimacy, current level.
  • the sorting parameter type is one: relevance.
  • the above-mentioned intimacy may be the intimacy between the user corresponding to the list element and the user corresponding to the target terminal. Specifically, it may be determined in combination with the interaction information between the user corresponding to the list element and the user corresponding to the target terminal.
  • the current level may be the game level of the user corresponding to the list element.
  • the time to become a friend may be the time when the user corresponding to the target list element and the user corresponding to the target terminal become friends (time when they pay attention to each other).
  • the degree of association may represent the degree of association between users, and specifically, the degree of association is determined in combination with user information such as the user's game behavior information, the user's personal information, and the like. Specifically, a user whose correlation degree with the user corresponding to the target terminal is greater than a preset correlation degree threshold may be regarded as a recommended user.
  • LinkedHashSet a collection container that can maintain the original information order and can also deduplicate
  • frequently updated sorting parameters such as intimacy are often stored in the cache
  • the sorting parameters corresponding to the data source include frequently updated sorting parameters such as intimacy
  • when obtaining such frequently updated sorting parameters it can be obtained from the cache first, and if it is not obtained in the cache, it can be obtained from the corresponding service, which can improve the speed of obtaining the sorting parameters.
  • the corresponding target sorting parameters are obtained, which can effectively prevent the sorting parameter types of different data sources from being the same, resulting in sorting parameter requests. Redundancy, resulting in a waste of service resources.
  • step S207 the target list elements are sorted based on the target sorting parameters to generate the target list.
  • the above-mentioned target list elements may include multiple list elements.
  • the above-mentioned sorting of the target list elements based on the target sorting parameters, and generating the target list may include the following steps:
  • step S2071 the multiple list elements are grouped according to the data sources corresponding to the multiple list elements to obtain multiple list element groups.
  • the list elements corresponding to the same data source may be divided into one list element group.
  • step S2073 the sub-sorting parameters corresponding to each list element group are determined from the target sorting parameters.
  • the sub-sorting parameter corresponding to each list element group may be the sorting parameter of the data source corresponding to the list element group.
  • step S2075 the list elements in each list element group are sorted according to the sub-sorting parameters corresponding to each list element group, and a list element sequence corresponding to each list element group is obtained.
  • the list elements in the list element group may be sorted in combination with the numerical value of the sorting parameter, to obtain the The list element sequence corresponding to the list element group.
  • the sorting parameter type is one: relevance.
  • the list elements corresponding to "users who participate in the game and belong to the recommended user" can be sorted according to the degree of relevancy from high to low.
  • the sorting priority corresponding to the multiple sorting parameters may be sorted from high to low, and the sorting with the highest sorting priority may be selected.
  • the parameter sorts the list elements in the list element group. If the sorting parameters are the same, select the sorting parameter with the second highest sorting priority to sort the list elements in the list element group, and so on. Obtain the list element sequence corresponding to the list element group.
  • step S2077 a target list is generated based on the list element sequence.
  • the list elements of various data sources are uniformly sorted, which can greatly reduce the complexity of sorting, thereby improving the speed of generating the list.
  • generating the target list based on the list element sequence may include: obtaining display priorities of data sources corresponding to multiple list element groups from list configuration information; The display priority of the data source, sort the list element sequences corresponding to the multiple list element groups in descending order to obtain the target list.
  • the list element sequences corresponding to the multiple list element groups are sorted in descending order, which can ensure that the list with higher display priority is displayed first. element.
  • the list configuration information may further include upper limit thresholds of elements corresponding to at least two data sources; correspondingly, based on the display priorities of the data sources corresponding to the multiple list element groups, the multiple list elements
  • the list element sequence corresponding to the group is sorted in descending order, and before the target list is obtained, the above method further includes:
  • the last-level data source is the data source corresponding to the multiple list element groups.
  • the display priority is the lowest data source;
  • the list element sequences corresponding to the multiple list element groups are sorted in descending order, and the obtained target list includes:
  • the list element group is the list element group among the multiple list element groups except the list element group corresponding to the last-level data source.
  • the list element sequences corresponding to multiple list element groups are sorted in descending order.
  • the list corresponding to the last-level data source can be improved.
  • the upper threshold of the number of single elements filters the list elements, which can avoid too many elements in the list, resulting in redundant information and inconvenient access.
  • the target list may be sent to the target terminal, so that the target terminal can display the target list.
  • the target list may be displayed on a corresponding page in the form of a pop-up window.
  • FIG. 7 is a schematic diagram of a target list according to an exemplary embodiment.
  • preset bottom information may be fed back to the target terminal.
  • the preset bottom information is used to prompt the target terminal to correspond Users of , the target list cannot be generated; for example, the target list cannot be generated because the user has no friends.
  • the list configuration information of the display control information of the list elements corresponding to the multiple data sources that can represent the target list is combined. , which can greatly improve the configurability and reusability of the list; and based on the list configuration information, the list information corresponding to multiple data sources can be obtained at one time, which greatly improves the efficiency of list information acquisition; After obtaining the list information, the corresponding target sorting parameters can be obtained at one time, which can avoid redundant sorting parameter requests and save service resource waste; Greatly reduces the complexity of sorting.
  • Fig. 8 is a block diagram of an apparatus for generating a list according to an exemplary embodiment.
  • the device includes:
  • the list configuration information determination module 810 is configured to execute the display request of the target list in response to the target list sent by the target terminal, and determine the list configuration information of the target list, where the list configuration information represents the corresponding data sources of the multiple data sources of the target list. Display control information of list elements;
  • the target list element obtaining module 820 is configured to obtain the target list element corresponding to the target terminal based on the list configuration information
  • the target sorting parameter acquisition module 830 is configured to execute and acquire target sorting parameters corresponding to the target list elements
  • the target list generating module 840 is configured to perform sorting on the elements of the target list based on the target sorting parameters to generate the target list.
  • the multiple data sources include target data sources and non-target data sources
  • the list configuration information includes display priorities of the multiple data sources and preset display conditions of the non-target data sources
  • the target list element acquisition module 820 includes:
  • the first list element obtaining unit is configured to execute and obtain the list elements corresponding to the target terminal in the target data source;
  • the second list element obtaining unit is configured to execute, when the obtained list element does not meet the preset display conditions of the next data source, obtain the list element corresponding to the target terminal in the next data source, and the next
  • the data source is a non-target data source whose display priority is one level after the current data source, and the current data source is the data source with the lowest display priority among the data sources corresponding to the acquired list elements;
  • the target list element determination unit is configured to determine the target list element based on the acquired list element when the acquired list element satisfies the preset display condition of the next data source.
  • the target list element determination unit includes:
  • the first target behavior information acquisition unit is configured to execute the acquisition of the target behavior information of the object corresponding to the acquired list element
  • the first list element screening unit is configured to perform screening of the acquired list elements based on the target behavior information to obtain the target list elements.
  • the target data source includes a first target data source and a second target data source
  • the target list element determining unit includes:
  • the second target behavior information acquisition unit is configured to execute the acquisition of the target behavior information of the object corresponding to the acquired list element
  • the list element division unit is configured to perform the division of the list elements corresponding to the target data source based on the target behavior information, and obtain the first list element corresponding to the first target data source, and the second target data source.
  • the second list element is configured to perform the division of the list elements corresponding to the target data source based on the target behavior information, and obtain the first list element corresponding to the first target data source, and the second target data source.
  • the second list element screening unit is configured to perform screening of the list elements corresponding to the non-target data sources based on the target behavior information, and obtain the filtered list elements corresponding to the non-target data sources;
  • the target list element determination subunit is configured to execute the first list element, the second list element, and the filtered list element as the target list element.
  • the target list element determination unit further includes:
  • the first deduplication processing unit is configured to perform deduplication processing on the acquired list elements before acquiring the target behavior information of the objects corresponding to the acquired list elements, so as to obtain the deduplicated list elements;
  • Obtaining the target behavior information of the object corresponding to the acquired list element includes:
  • the target list element includes multiple list elements
  • the target ranking parameter acquisition module 830 includes:
  • a sorting parameter type determination unit configured to determine the sorting parameter type of the data source corresponding to each list element
  • the second deduplication processing unit is configured to perform deduplication processing on the sorting parameter types corresponding to the multiple list elements, and obtain the target sorting parameter types corresponding to the multiple list elements;
  • the target sorting parameter obtaining unit is configured to obtain the target sorting parameter based on the target sorting parameter type.
  • the target list element includes multiple list elements
  • the target list generation module 840 includes:
  • the list element grouping unit is configured to perform grouping of multiple list elements according to the data sources corresponding to the multiple list elements to obtain multiple list element groups;
  • a sub-sorting parameter determining unit configured to determine the sub-sorting parameters corresponding to each list element group from the target sorting parameters
  • the list element sorting unit is configured to sort the list elements in each list element group according to the sub-sort parameters corresponding to each list element group, and obtain the list element sequence corresponding to each list element group ;
  • the target list generating unit is configured to generate the target list based on the sequence of list elements.
  • the target list generating unit includes:
  • the display priority obtaining unit is configured to obtain the display priority of the data sources corresponding to the multiple list element groups from the list configuration information;
  • the descending sorting unit is configured to perform display priority based on the data sources corresponding to the multiple list element groups, and to perform descending sorting on the list element sequences corresponding to the multiple list element groups to obtain the target list.
  • the target list generating unit further includes:
  • the upper limit threshold obtaining unit is configured to perform a descending sorting of the list element sequences corresponding to the multiple list element groups based on the display priority of the data sources corresponding to the multiple list element groups, and before obtaining the target list, from In the list configuration information, the upper limit threshold of the element corresponding to the last-level data source in the data sources corresponding to the multiple list element groups is obtained.
  • the last-level data source is the data source corresponding to the multiple list element groups with the lowest display priority. data source;
  • the list element filtering unit is configured to filter the list element group corresponding to the last-level data source when the number of list elements in the list element group corresponding to the last-level data source is greater than the element online threshold, and obtain Filtered list element group;
  • the descending sorting unit is further configured to perform display priority based on the data sources corresponding to the multiple list element groups, and perform descending sorting on the list element sequences corresponding to the filtered list element groups and the non-last list element groups, The target list is obtained, and the non-last list element group is the list element group other than the list element group corresponding to the last-level data source among the multiple list element groups.
  • FIG. 9 is a block diagram of an electronic device for generating a list according to an exemplary embodiment.
  • the electronic device may be a server, and its internal structure diagram may be as shown in FIG. 9 .
  • the electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities.
  • the memory of the electronic device includes a non-volatile storage medium and an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the electronic device is used to communicate with an external terminal through a network connection.
  • the computer program when executed by the processor, implements a method for generating a list.
  • FIG. 9 is only a block diagram of a partial structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied.
  • the specific electronic device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • the list generation method in the example comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present disclosure
  • a computer-readable storage medium is also provided, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the method for generating a list in the embodiments of the present disclosure.
  • a computer program product comprising instructions which, when executed on a computer, cause the computer to execute the method for generating a list in an embodiment of the present disclosure.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种榜单生成方法、装置、电子设备及存储介质,该方法包括响应于目标终端发送的目标榜单的展示请求,确定目标榜单的榜单配置信息,榜单配置信息表征目标榜单的多个数据源对应的榜单元素的展现控制信息;基于榜单配置信息,获取目标终端对应的目标榜单元素;获取与目标榜单元素对应的目标排序参数;基于目标排序参数对目标榜单元素进行排序,生成目标榜单。

Description

榜单生成方法及装置
相关申请的交叉引用
本申请基于申请日为2021年1月28日、申请号为202110120113.5号的中国专利申请,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入作为参考。
技术领域
本公开涉及计算机技术领域,尤其涉及一种榜单生成方法及装置。
背景技术
榜单作为互联网平台一个重要信息来源,在大量应用场景中得到广泛应用,如游戏等级榜单,新闻热点榜单等。榜单的排序和展示规则会随着业务场景的变化而变化,且榜单中的榜单元素来自多种不同的数据源。
发明内容
根据本公开实施例的第一方面,提供一种榜单生成方法,包括:
响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
获取与所述目标榜单元素对应的目标排序参数;
基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
根据本公开实施例的第二方面,提供一种榜单生成装置,包括:
榜单配置信息确定模块,被配置为执行响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
目标榜单元素获取模块,被配置为执行基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
目标排序参数获取模块,被配置为执行获取与所述目标榜单元素对应的目标排序参数;
目标榜单生成模块,被配置为执行基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如上述第一方面中任一项所述的方法。
根据本公开实施例的第四方面,提供一种计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行本公开实施例的第一方面中任一所述方法。
根据本公开实施例的第五方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本公开实施例的第一方面中任一所述方法。
在生成榜单的过程中,结合可以表征目标榜单的多个数据源对应的榜单元素的展现控制信息的榜单配置信息,可以大大提升榜单的可配置性和可复用性;且基于榜单配置信息一次性获取多个数据源对应的榜单信息,大大提升榜单信息获取效率;在获取多个数据源对应的榜单信息后,一次性获取对应的目标排序参数,可以避免排序参数请求冗余,节约服务资源浪费;且在得到目标排序参数后,对多种数据源的榜单元素进行统一排序,可以大大降低排序的复杂度。
附图说明
图1是根据示例性实施例示出的一种应用环境的示意图。
图2是根据示例性实施例示出的一种榜单生成方法的流程图;
图3是根据示例性实施例示出的一种基于榜单配置信息,获取目标终端对应的目标榜单元素的流程示意图;
图4是根据示例性实施例示出的一种基于已获取的榜单元素,确定目标榜单元素的流程示意图;
图5是根据示例性实施例示出的一种获取与目标榜单元素对应的目标排序参数的流程图;
图6是根据示例性实施例示出的一种基于目标排序参数对目标榜单元素进行排序,生成目标榜单的流程图;
图7是根据示例性实施例示出的一种目标榜单的示意图;
图8是根据示例性实施例示出的一种榜单生成装置框图;
图9是根据示例性实施例示出的一种用于榜单生成的电子设备的框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
请参阅图1,图1是根据示例性实施例示出的一种应用环境的示意图,如图1所示,该应用环境可以包括目标终端01和服务器02。
在一些实施例中,目标终端01可以用于面向任一用户提供榜单展示服务。具体的,目标终端01可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能可穿戴设备等类型的电子设备。在一些实施例中,电子设备上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows等。
在一些实施例中,服务器02可以为目标终端01提供后台服务,生成目标终端请求的目标榜单。具体的,服务器02可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。
此外,需要说明的是,图1所示的仅仅是本公开提供的一种应用环境,在实际应用中,还可以包括其他应用环境,例如可以包括更多的目标终端。
本说明书实施例中,上述目标终端01以及服务器02可以通过有线或无线通信方式进行直接或间接地连接,本公开在此不做限制。
图2是根据示例性实施例示出的一种榜单生成方法的流程图,如图2所示,该榜单生成方法用于服务器、处理器、边缘计算节点等电子设备中,包括以下步骤。
在步骤S201中,响应于目标终端发送的目标榜单的展示请求,确定目标榜单的榜单配置信息。
在实际应用中,同一应用的不同业务场景下,往往也会对应着不同类型的榜单;本说明书实施例中,可以结合实际应用需求预先为不同类型的榜单配置对应的榜单配置信息。在一些实施例中,目标终端发起的展示请求可以包括目标终端发起请求的情况下,所在业务场景对应的榜单标识(榜单标识可以用于区分不同类型的榜单)。相应的,可以结合榜单标识确定目标终端所请求的榜单类型(目标榜单对应的榜单类型),并确定目标榜单的榜单配置信息。
本说明书实施例中,榜单配置信息可以表征目标榜单的多个数据源对应的榜单元素的展现控制信息。在实际应用中,榜单是对多个同类数据进行排序后的信息,可以将榜单中每一项数据作为一项榜单元素,榜单元素可以结合业务需求中需要排序的数据所对应的对象的不同而不同,具体的,榜单元素可以为实际业务中需要排序的数据所对应对象的基础信息。目标榜单的多个数据源可以包括目标榜单中每一项榜单元素对应对象的来源。
在一些实施例中,上述对应对象的基础信息可以包括该对象的标识信息。在一些实施例中,在目标榜单为某一游戏对应的用户互助榜单的情况下,上述对应对象可以为用户,相应的,对象的标识信息可以包括但不限于用户昵称等用户的标识信息。
在一些实施例中,可以结合实际应用丰富榜单元素,相应的,上述对应对象的基础信息还可以包括该对象的属性信息中与目标榜单关联的信息。具体的实施例中,对象的属性信息中与目标榜单关联的信息可以包括但不限于用户的游戏等级等。
在一些实施例中,在目标榜单为某一游戏对应的用户互助榜单的情况下,相应的,该用户互助榜单中每一项榜单元素可以为某一用户对应基础信息,相应的,上述榜单元素对应对象可以为该用户,目标榜单的多个数据源可以为该用户的来源。在一些实施例中,该用户的来源可以包括但不限于参与游戏且属于互相关注的用户、参与游戏且属于粉丝的用户、参与游戏且属于推荐用户(可以结合用户间的关联度确定)的用户等。
在一些实施例中,在目标榜单为信息推荐榜单的情况下,该信息推荐榜单中的每一项榜单元素可以为目标推荐信息(需要推荐的信息)的基础信息,相应地,上述榜单元素对应对象可以为该目标推 荐信息,目标榜单的多个数据源可以为该目标推荐信息的来源,在一些实施例中,目标推荐信息的来源可以包括但不限于用户浏览信息记录,用户收藏信息列表等。
在一些实施例中,上述多个数据源可以包括目标数据源和非目标数据源,具体的,目标数据源可以为默认展现在目标榜单中的榜单元素所对应的数据源;非目标数据源可以为在预设展现条件下才会展现在目标榜单中的榜单元素所对应的数据源。具体的,可以结合实际应用需求来划分目标数据源和非目标数据源。
在一些实施例中,以目标榜单为某一游戏对应的用户互助榜单为例,对应的多个数据源包括:参与游戏且属于互相关注的用户、未参与游戏且属于互相关注的用户、参与游戏且属于粉丝的用户、参与游戏且属于推荐用户的用户。其中,参与游戏且属于互相关注的用户、未参与游戏且属于互相关注的用户可以为目标数据源,参与游戏且属于粉丝的用户、参与游戏且属于推荐用户的用户可以为非目标数据源。
上述实施例中,在榜单生成过程中,结合可以表征目标榜单的多个数据源对应的榜单元素的展现控制信息的榜单配置信息,可以大大提升榜单的可配置性和可复用性。
在步骤S203中,基于榜单配置信息,获取目标终端对应的目标榜单元素。
在一些实施例中,榜单配置信息可以包括上述多个数据源的展示优先级和上述非目标数据源的预设展示条件;其中,多个数据源中目标数据源的展示优先级在该多个数据源的展示优先级的前预设数量(预设数量与目标数据源的个数一致)位。具体的,多个数据源的展示优先级可以结合实际应用中不同数据源对应的榜单元素的重要程度进行设置。具体的,榜单元素的重要程度可以结合实际应用中需求进行设置。具体的,榜单元素的重要程度与数据源的展示优先级高低成正比。
在一些实施例中,如图3所示,上述基于榜单配置信息,获取目标终端对应的目标榜单元素可以包括以下步骤:
在步骤S2031中,获取目标终端在目标数据源中对应的榜单元素;
在步骤S2033中,在已获取的榜单元素未满足下一数据源的预设展示条件的情况下,获取目标终端在下一数据源中对应的榜单元素,上述下一数据源可以为展示优先级在当前数据源之后一级的非目标数据源,当前数据源可以为已获取的榜单元素对应的数据源中展示优先级最低的数据源。
在步骤S2035中,在已获取的榜单元素满足下一数据源的预设展示条件的情况下,基于已获取的榜单元素,确定目标榜单元素。
在一些实施例中,由于目标数据源对应的榜单元素为默认展示在目标榜单中的,可以直接获取目标终端在目标数据源中对应的榜单元素。在一些实施例中,在有多个目标数据源的情况下,可以按照多个目标数据源的展示优先级,由高到低依次获取对应的榜单元素。
在一些实施例中,在获取目标终端在目标数据源中对应的榜单元素之后,可以结合非目标数据源的预设展示条件和展示优先级获取对应的榜单元素。具体的,在已获取的榜单元素未满足下一数据源的预设展现条件的情况下,可以不断的获取目标终端在下一数据源中对应的榜单元素;直至已获取的榜单元素满足下一数据源的预设展现条件。
在一些实施例中,某一非目标数据源的预设展示条件可以为展示优先级高于该非目标数据源的数 据源所对应的榜单元素的总数小于等于第一预设阈值。
在一些实施例中,某一非目标数据源的预设展示条件可以为某一目标数据源对应的榜单元素数小于等于第二预设阈值。
此外,需要说明的是,在确定榜单元素数过程中,一个对象对应的榜单元素可以计一次数,第一预设阈值和第二预设阈值可以结合实际应用需求进行设置,预设展示条件可以结合实际应用需求进行设置,并不以上述为限。
上述实施例中,在获取多个数据源对应的榜单信息过程中,结合多个数据源的展示优先级和非目标数据源的预设展现条件依次获取榜单元素,可以有效保证获取的榜单元素的有效性同时,提升榜单元素获取速度。
在实际应用中,不同数据源往往对应着不同的服务;本说明书实施例中,获取目标终端在任一数据源中对应的榜单元素可以包括可以向该数据源对应的目标服务请求目标终端在该数据源中对应的榜单元素。在实际应用中,同一业务下,不同的终端对应的该业务下的榜单元素往往不同。本说实施例中,在向该数据源对应的目标服务请求目标终端在该数据源中对应的榜单元素过程中,可以结合目标终端对应的标识信息从对应的服务中获取对应的目标榜单元素。
具体的,数据源对应的服务可以为服务器中的一个功能模块,某一数据源对应的服务可以为用于处理该数据源对应业务的功能模块。在一些实施例中,数据源对应业务可以包括榜单本身业务和除榜单本身业务以外的业务。相应的,某一数据源对应的目标服务可以为用于处理该数据源对应业务中除榜单本身业务以外业务的功能模块。
在一些实施例中,以上述某一游戏对应的用户互助榜单为目标榜单为例,某一数据源包括参与游戏且属于互相关注的用户,相应的,参与游戏对应游戏业务,互相关注对应关注业务,由于游戏业务属于目标榜单本身的业务,相应地,该目标数据源对应目标服务可以包括关注服务,具体的,关注服务可以用于处理用户间关注业务的功能模块。
在一些实施例中,在两个目标数据源对应的目标服务相同的情况下,获取目标终端在目标数据源中对应的榜单元素过程中,可以将从两个目标数据源对应的目标服务中获取的目标终端对应的榜单元素作为目标终端在这两个目标数据源中对应的榜单元素。
在一些实施例中,在目标榜单对应的目标数据源包括参与游戏且属于互相关注的用户、未参与游戏且属于互相关注的用户的情况下,其中,参与游戏且属于互相关注的用户和未参与游戏且属于互相关注的用户对应的目标服务均为关注服务,相应的,可以将从关注服务中获取的目标终端对应的榜单元素作为目标终端在这两个目标数据源中对应的榜单元素。
在一些实施例中,在一个数据源对应业务中除榜单本身业务以外的业务为多个业务的情况下,上述获取目标终端在任一数据源中对应的榜单元素过程中,可以结合上述这多个业务对应的服务分别获取榜单元素,并取获取的榜单元素的交集,作为目标终端在数据源中对应的榜单元素。
在一些实施例中,上述基于已获取的榜单元素,确定目标榜单元素可以包括:获取已获取的榜单元素对应对象的目标行为信息;基于目标行为信息对已获取的榜单元素进行筛选,得到目标榜单元素。
具体的,目标行为信息可以为对应的对象是否参与目标榜单对应的活动的行为信息。具体的,目 标行为信息可以包括参与活动和未参与活动。具体的,基于目标行为信息对已获取的榜单元素进行筛选,得到目标榜单元素可以包括筛选出目标行为信息为参与活动的榜单元素,作为目标榜单元素。
上述实施例中,在从多个数据源获取对应的榜单信息后,结合目标行为信息对多个数据源对应的榜单信息进行整体筛选,可以大大提升目标榜单信息获取的效率。
在一些实施例中,如图4所示,上述目标数据源可以包括第一目标数据源和第二目标数据源,相应的,基于已获取的榜单元素,确定目标榜单元素可以包括以下步骤:
在步骤S401中,获取已获取的榜单元素对应对象的目标行为信息;
在步骤S403中,基于目标行为信息对目标数据源对应的榜单元素进行划分,得到与第一目标数据源对应的第一榜单元素,以及与第二目标数据源对应的第二榜单元素;
在步骤S405中,基于目标行为信息对非目标数据源对应的榜单元素进行筛选,得到非目标数据源对应的筛选后榜单元素;
在步骤S407中,将第一榜单元素,第二榜单元素和筛选后榜单元素,作为目标榜单元素;
在一些实施例中,第一目标数据源和第二目标数据源可以依次为对应同一目标服务的目标数据源中目标行为信息为参与活动和目标行为信息为未参与活动的两个数据源。
在一些实施例中,第一目标数据源的展示优先级高于第二目标数据源的展示优先级。
上述实施例中,在从多个数据源获取对应的榜单信息后,结合目标行为信息对多个数据源对应的榜单信息进行整体过滤和划分,可以大大提升目标榜单信息获取的效率。
在一些实施例中,由于榜单元素来源于不同的数据源,不同的数据源中可能存在相同的榜单元素,相应的,在获取已获取的榜单元素对应对象的目标行为信息之前,上述方法还包括:
对已获取的榜单元素进行去重处理,得到去重后的榜单元素;
相应的,获取已获取的榜单元素对应对象的目标行为信息可以包括:
获取去重后的榜单元素对应的榜单对象的目标行为信息。
上述实施例中,通过对获取的榜单元素进行去重处理,可以过滤掉无效榜单元素,同时也可以大大降低后续数据处理效率,进而提升榜单生成效率。
在步骤S205中,获取与目标榜单元素对应的目标排序参数。
在一些实施例中,上述目标榜单元素可以包括多个榜单元素,相应的,如图5所示,上述获取与目标榜单元素对应的目标排序参数包括:
在步骤S2051中,确定每个榜单元素对应的数据源的排序参数类型;
在步骤S2053中,对多个榜单元素对应的排序参数类型进行去重处理,得到多个榜单元素对应的目标排序参数类型;
在步骤S2055中,基于目标排序参数类型,获取目标排序参数。
在一些实施例中,数据源的排序参数类型可以为数据源对应的至少一种排序参数的类型。在一些实施例中,不同数据源可以对应不同类型的排序参数,也可以对应相同类型的排序参数。具体的,任一数据源对应的排序参数可以用于对该数据源对应的榜单元素进行排序。在一些实施例中,在一个数据源对应至少两种排序参数的情况下,这至少两种排序参数可以对应不同的排序优先级。具体的,排 序参数的排序优先级可以结合实际应用需求进行设置。
在一些实施例中,基于目标排序参数类型,获取目标排序参数可以包括从目标排序参数类型对应的服务中请求相应的目标排序参数。在一些实施例中,目标排序参数类型对应的服务可以为服务器中的一个功能模块,某一排序参数类型对应的服务可以为用于该排序参数类型对应排序参数获取请求的功能模块。
在一些实施例中,以目标榜单为某一游戏对应的用户互助榜单为例,按照展示优先级由高到低,对应的数据源依次包括:参与游戏且属于互相关注的用户、未参与游戏且属于互相关注的用户、参与游戏且属于粉丝的用户、参与游戏且属于推荐用户的用户。其中,参与游戏且属于互相关注的用户和未参与游戏且属于互相关注的用户为目标数据源;参与游戏且属于粉丝的用户、参与游戏且属于推荐用户的用户为非目标数据源。
具体的实施例中,以目标数据源“参与游戏且属于互相关注的用户”为例,按照排序优先级由高到低,排序参数类型可以包括:亲密度、当前等级、成为好友时间。
具体的实施例中,以目标数据源“未参与游戏且属于互相关注的用户”为例,按照排序优先级由高到低,排序参数类型可以包括:亲密度、成为好友时间。
具体的实施例中,以非目标数据源“参与游戏且属于粉丝的用户”为例,按照排序优先级由高到低,排序参数类型可以包括:亲密度、当前等级。
具体的实施例中,以非目标数据源“参与游戏且属于推荐用户的用户”为例,排序参数类型为一个:关联度。
在一些实施例中,上述亲密度可以为榜单元素对应用户与目标终端对应用户间的亲密度,具体的,可以结合榜单元素对应用户与目标终端对应用户间的交互信息确定。具体的,当前等级可以为榜单元素对应用户的游戏等级。成为好友时间可以为目标榜单元素对应用户与目标终端对应用户成为好友的时间(互相关注的时间)。具体的,关联度可以表征用户间关联程度,具体的,关联度为结合用户的游戏行为信息、用户个人信息等用户信息确定。具体的,可以将与目标终端对应用户的关联度大于预设的关联度阈值的用户作为推荐用户。
在一些实施例中,在数据源对应的排序参数包括成为好友时间的情况下,由于数据源对应排序服务中往往是按照成为好友时间(关注时间发生时间)先后对榜单元素进行排序的,相应的,在获取榜单元素的过程中,可以结合LinkedHashSet(一种可以保持原有信息顺序,也能够去重的集合容器)来维护获取的榜单元素。
在一些实施例中,由于亲密度等更新频繁的排序参数往往会存储到缓存中,在数据源对应的排序参数包括亲密度等更新频繁的排序参数的情况下,在获取这类更新频繁的排序参数的情况下,可以先从缓存中获取,在缓存中未获取到的情况下,再从相应的服务中获取,进而可以提升排序参数获取速度。
上述实施例中,对目标榜单元素对应的多个数据源的排序参数类型进行去重之后,在获取相应的目标排序参数,可以有效避免不同数据源的排序参数类型相同,带来排序参数请求冗余,造成服务资源浪费。
在步骤S207中,基于目标排序参数对目标榜单元素进行排序,生成目标榜单。
在一些实施例中,上述目标榜单元素可以包括多个榜单元素,相应的,如图6所示,上述基于目标排序参数对目标榜单元素进行排序,生成目标榜单可以包括以下步骤:
在步骤S2071中,将多个榜单元素,按照多个榜单元素对应的数据源进行分组,得到多个榜单元素组。
在一些实施例中,可以将同一数据源对应的榜单元素划分到一个榜单元素组中。
在步骤S2073中,从目标排序参数中确定每个榜单元素组对应的子排序参数。
在一些实施例中,每个榜单元素组对应的子排序参数可以为该榜单元素组对应数据源的排序参数。
在步骤S2075中,根据每个榜单元素组对应的子排序参数对每个榜单元素组中的榜单元素进行排序,得到每个榜单元素组对应的榜单元素序列。
在一些实施例中,在某一榜单元素组对应的子排序参数为一个排序参数的情况下,可以结合该排序参数的数值大小对该榜单元素组中的榜单元素进行排序,得到该榜单元素组对应的榜单元素序列。具体的实施例中,以非目标数据源“参与游戏且属于推荐用户的用户”为例,其排序参数类型为一个:关联度。可以结合关联度的高低由高到低对“参与游戏且属于推荐用户的用户”对应的榜单元素进行排序。
在一些实施例中,当某一榜单元素组对应的子排序参数为多个排序参数的情况下,可以按照多个排序参数对应的排序优先级由高到低,选取排序优先级最高的排序参数对榜单元素组中的榜单元素进行排序,在排序参数相同的情况下,再选排序优先级次高的排序参数对榜单元素组中的榜单元素进行排序,并以此类推,得到该榜单元素组对应的榜单元素序列。
在步骤S2077中,基于榜单元素序列,生成目标榜单。
上述实施例中,在得到目标排序参数后,对多种数据源的榜单元素进行统一排序,可以大大降低排序的复杂度,进而提升榜单生成速度。
在一些实施例中,上述基于榜单元素序列,生成目标榜单可以包括:从榜单配置信息中获取多个榜单元素组对应的数据源的展示优先级;基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单。
上述实施例中,基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,可以保证优先展示展示优先级较高的榜单元素。
在一些实施例中,榜单配置信息还可以包括至少两个数据源对应的元素上限阈值;相应的,在基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单之前,上述方法还包括:
从榜单配置信息中,获取多个榜单元素组对应的数据源中末级数据源所对应的元素上限阈值,末级数据源为多个榜单元素组对应的数据源中展示优先级最低的数据源;
在末级数据源对应的榜单元素组中的榜单元素数大于元素上线阈值的情况下,对末级数据源对应的榜单元素组进行过滤,得到过滤后的榜单元素组。
相应的,上述基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单包括:
基于多个榜单元素组对应的数据源的展示优先级,对过滤后的榜单元素组和非末级榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单,非末级榜单元素组为多个榜单元素组中除末级数据源对应的榜单元素组以外的榜单元素组。
在一些实施例中,在末级数据源对应的榜单元素组中的榜单元素数小于等于元素上线阈值的情况下,可以基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序。
上述实施例中,在结合多个榜单元素组对应的数据源的展示优先级对应多个榜单元素组对应的榜单元素序列进行排序过程中,将可以提升结合末级数据源对应的榜单元素数的上限阈值对榜单元素进行过滤,可以避免榜单中元素过多,带来的信息冗余,查阅不便。
在一些实施例中,可以在生成目标榜单之后,向目标终端发送该目标榜单,以便目标终端展示目标榜单。在一些实施例中,目标榜单可以弹窗的形式展示在相应的页面中。在一些实施例中,如图7所示,以目标榜单为某一游戏对应的用户互助榜单为例,图7是根据示例性实施例示出的一种目标榜单的示意图。
在一些实施例中,在基于榜单配置信息未获取到目标终端对应的目标榜单元素的情况下,可以向目标终端反馈预设兜底信息,具体的,预设兜底信息用于提示目标终端对应的用户,无法生成目标榜单;例如因用户没有好友而无法生成目标榜单。
此外,需要说明的是,本说明书实施例中多个或多种可以为至少两个或至少两种。
由以上本说明书实施例通过的技术方案可见,本说明书实施例中在生成榜单的过程中,结合可以表征目标榜单的多个数据源对应的榜单元素的展现控制信息的榜单配置信息,可以大大提升榜单的可配置性和可复用性;且基于榜单配置信息一次性获取多个数据源对应的榜单信息,大大提升榜单信息获取效率;在获取多个数据源对应的榜单信息后,一次性获取对应的目标排序参数,可以避免排序参数请求冗余,节约服务资源浪费;且在得到目标排序参数后,对多种数据源的榜单元素进行统一排序,可以大大降低排序的复杂度。
图8是根据示例性实施例示出的一种榜单生成装置框图。参照图8,该装置包括:
榜单配置信息确定模块810,被配置为执行响应于目标终端发送的目标榜单的展示请求,确定目标榜单的榜单配置信息,榜单配置信息表征目标榜单的多个数据源对应的榜单元素的展现控制信息;
目标榜单元素获取模块820,被配置为执行基于榜单配置信息,获取目标终端对应的目标榜单元素;
目标排序参数获取模块830,被配置为执行获取与目标榜单元素对应的目标排序参数;
目标榜单生成模块840,被配置为执行基于目标排序参数对目标榜单元素进行排序,生成目标榜单。
在一些实施例中,多个数据源包括目标数据源和非目标数据源,榜单配置信息包括多个数据源的展示优先级和非目标数据源的预设展示条件;目标榜单元素获取模块820包括:
第一榜单元素获取单元,被配置为执行获取目标终端在目标数据源中对应的榜单元素;
第二榜单元素获取单元,被配置为执行在已获取的榜单元素未满足下一数据源的预设展示条件的情况下,获取目标终端在下一数据源中对应的榜单元素,下一数据源为展示优先级在当前数据源之后一级的非目标数据源,当前数据源为已获取的榜单元素对应的数据源中展示优先级最低的数据源;
目标榜单元素确定单元,被配置为执行已获取的榜单元素满足下一数据源的预设展示条件的情况下,基于已获取的榜单元素,确定目标榜单元素。
在一些实施例中,目标榜单元素确定单元包括:
第一目标行为信息获取单元,被配置为执行获取已获取的榜单元素对应对象的目标行为信息;
第一榜单元素筛选单元,被配置为执行基于目标行为信息对已获取的榜单元素进行筛选,得到目标榜单元素。
在一些实施例中,目标数据源包括第一目标数据源和第二目标数据源,目标榜单元素确定单元包括:
第二目标行为信息获取单元,被配置为执行获取已获取的榜单元素对应对象的目标行为信息;
榜单元素划分单元,被配置为执行基于目标行为信息对目标数据源对应的榜单元素进行划分,得到与第一目标数据源对应的第一榜单元素,以及与第二目标数据源对应的第二榜单元素;
第二榜单元素筛选单元,被配置为执行基于目标行为信息对非目标数据源对应的榜单元素进行筛选,得到非目标数据源对应的筛选后榜单元素;
目标榜单元素确定子单元,被配置为执行将第一榜单元素,第二榜单元素和筛选后榜单元素,作为目标榜单元素。
在一些实施例中,目标榜单元素确定单元还包括:
第一去重处理单元,被配置为执行在获取已获取的榜单元素对应对象的目标行为信息之前,对已获取的榜单元素进行去重处理,得到去重后的榜单元素;
获取已获取的榜单元素对应对象的目标行为信息包括:
获取去重后的榜单元素对应的榜单对象的目标行为信息。
在一些实施例中,目标榜单元素包括多个榜单元素,目标排序参数获取模块830包括:
排序参数类型确定单元,被配置为执行确定每个榜单元素对应的数据源的排序参数类型;
第二去重处理单元,被配置为执行对多个榜单元素对应的排序参数类型进行去重处理,得到多个榜单元素对应的目标排序参数类型;
目标排序参数获取单元,被配置为执行基于目标排序参数类型,获取目标排序参数。
在一些实施例中,目标榜单元素包括多个榜单元素,目标榜单生成模块840包括:
榜单元素分组单元,被配置为执行将多个榜单元素,按照多个榜单元素对应的数据源进行分组,得到多个榜单元素组;
子排序参数确定单元,被配置为执行从目标排序参数中确定每个榜单元素组对应的子排序参数;
榜单元素排序单元,被配置为执行根据每个榜单元素组对应的子排序参数对每个榜单元素组中的榜单元素进行排序,得到每个榜单元素组对应的榜单元素序列;
目标榜单生成单元,被配置为执行基于榜单元素序列,生成目标榜单。
在一些实施例中,目标榜单生成单元包括:
展示优先级获取单元,被配置为执行从榜单配置信息中获取多个榜单元素组对应的数据源的展示优先级;
降序排序单元,被配置为执行基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单。
在一些实施例中,目标榜单生成单元还包括:
上限阈值获取单元,被配置为执行在基于多个榜单元素组对应的数据源的展示优先级,对多个榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单之前,从榜单配置信息中,获取多个榜单元素组对应的数据源中末级数据源所对应的元素上限阈值,末级数据源为多个榜单元素组对应的数据源中展示优先级最低的数据源;
榜单元素过滤单元,被配置为执行在末级数据源对应的榜单元素组中的榜单元素数大于元素上线阈值的情况下,对末级数据源对应的榜单元素组进行过滤,得到过滤后的榜单元素组;
降序排序单元还被配置为执行基于多个榜单元素组对应的数据源的展示优先级,对过滤后的榜单元素组和非末级榜单元素组对应的榜单元素序列进行降序排序,得到目标榜单,非末级榜单元素组为多个榜单元素组中除末级数据源对应的榜单元素组以外的榜单元素组。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图9是根据示例性实施例示出的一种用于榜单生成的电子设备的框图,该电子设备可以是服务器,其内部结构图可以如图9所示。该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种榜单生成的方法。
本领域技术人员可以理解,图9中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在示例性实施例中,还提供了一种电子设备,包括:处理器;用于存储该处理器可执行指令的存储器;其中,该处理器被配置为执行该指令,以实现如本公开实施例中的榜单生成方法。
在示例性实施例中,还提供了一种计算机可读存储介质,当该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开实施例中的榜单生成方法。
在示例性实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本公开实施例中的榜单生成方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程 序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
本公开的所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (29)

  1. 一种榜单生成方法,包括:
    响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
    基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
    获取与所述目标榜单元素对应的目标排序参数;
    基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
  2. 根据权利要求1所述的榜单生成方法,其中,所述多个数据源包括目标数据源和非目标数据源,所述榜单配置信息包括所述多个数据源的展示优先级和所述非目标数据源的预设展示条件;所述基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素包括:
    获取所述目标终端在所述目标数据源中对应的榜单元素;
    在已获取的榜单元素未满足下一数据源的预设展示条件的情况下,获取所述目标终端在下一数据源中对应的榜单元素,所述下一数据源为展示优先级在当前数据源之后一级的非目标数据源,所述当前数据源为已获取的榜单元素对应的数据源中展示优先级最低的数据源;
    已获取的榜单元素满足所述下一数据源的预设展示条件的情况下,基于已获取的榜单元素,确定所述目标榜单元素。
  3. 根据权利要求2所述的榜单生成方法,其中,所述基于已获取的榜单元素,确定所述目标榜单元素包括:
    获取所述已获取的榜单元素对应对象的目标行为信息;
    基于所述目标行为信息对所述已获取的榜单元素进行筛选,得到所述目标榜单元素。
  4. 根据权利要求2所述的榜单生成方法,其中,所述目标数据源包括第一目标数据源和第二目标数据源,所述基于已获取的榜单元素,确定所述目标榜单元素包括:
    获取所述已获取的榜单元素对应对象的目标行为信息;
    基于所述目标行为信息对所述目标数据源对应的榜单元素进行划分,得到与所述第一目标数据源对应的第一榜单元素,以及与所述第二目标数据源对应的第二榜单元素;
    基于所述目标行为信息对所述非目标数据源对应的榜单元素进行筛选,得到所述非目标数据源对应的筛选后榜单元素;
    将所述第一榜单元素,所述第二榜单元素和所述筛选后榜单元素,作为所述目标榜单元素。
  5. 根据权利要求3或4所述的榜单生成方法,其中,所述方法还包括:
    对所述已获取的榜单元素进行去重处理,得到去重后的榜单元素;
    所述获取所述已获取的榜单元素对应对象的目标行为信息包括:
    获取所述去重后的榜单元素对应的榜单对象的目标行为信息。
  6. 根据权利要求1所述的榜单生成方法,其中,所述目标榜单元素包括多个榜单元素,所述获取与所述目标榜单元素对应的目标排序参数包括:
    确定每个榜单元素对应的数据源的排序参数类型;
    对所述多个榜单元素对应的排序参数类型进行去重处理,得到所述多个榜单元素对应的目标排序参数类型;
    基于所述目标排序参数类型,获取所述目标排序参数。
  7. 根据权利要求1所述的榜单生成方法,其中,所述目标榜单元素包括多个榜单元素,所述基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单包括:
    将所述多个榜单元素,按照所述多个榜单元素对应的数据源进行分组,得到多个榜单元素组;
    从所述目标排序参数中确定每个榜单元素组对应的子排序参数;
    根据所述每个榜单元素组对应的子排序参数对所述每个榜单元素组中的榜单元素进行排序,得到每个榜单元素组对应的榜单元素序列;
    基于所述榜单元素序列,生成所述目标榜单。
  8. 根据权利要求7所述的榜单生成方法,其中,所述基于所述榜单元素序列,生成所述目标榜单包括:
    从所述榜单配置信息中获取所述多个榜单元素组对应的数据源的展示优先级;
    基于所述多个榜单元素组对应的数据源的展示优先级,对所述多个榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单。
  9. 根据权利要求8所述的榜单生成方法,其中,所述方法还包括:
    从所述榜单配置信息中,获取所述多个榜单元素组对应的数据源中末级数据源所对应的元素上限阈值,所述末级数据源为所述多个榜单元素组对应的数据源中展示优先级最低的数据源;
    在所述末级数据源对应的榜单元素组中的榜单元素数大于所述元素上线阈值的情况下,对所述末级数据源对应的榜单元素组进行过滤,得到过滤后的榜单元素组;
    所述基于所述多个榜单元素组对应的数据源的展示优先级,对所述多个榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单包括:
    基于所述多个榜单元素组对应的数据源的展示优先级,对所述过滤后的榜单元素组和非末级榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单,所述非末级榜单元素组为所述多个榜单元素组中除所述末级数据源对应的榜单元素组以外的榜单元素组。
  10. 一种榜单生成装置,包括:
    榜单配置信息确定模块,被配置为响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
    目标榜单元素获取模块,被配置为基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
    目标排序参数获取模块,被配置为获取与所述目标榜单元素对应的目标排序参数;
    目标榜单生成模块,被配置为基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
  11. 根据权利要求10所述的榜单生成装置,其中,所述多个数据源包括目标数据源和非目标数 据源,所述榜单配置信息包括所述多个数据源的展示优先级和所述非目标数据源的预设展示条件;所述目标榜单元素获取模块包括:
    第一榜单元素获取单元,被配置为获取所述目标终端在所述目标数据源中对应的榜单元素;
    第二榜单元素获取单元,被配置为在已获取的榜单元素未满足下一数据源的预设展示条件的情况下,获取所述目标终端在下一数据源中对应的榜单元素,所述下一数据源为展示优先级在当前数据源之后一级的非目标数据源,所述当前数据源为已获取的榜单元素对应的数据源中展示优先级最低的数据源;
    目标榜单元素确定单元,被配置为已获取的榜单元素满足所述下一数据源的预设展示条件的情况下,基于已获取的榜单元素,确定所述目标榜单元素。
  12. 根据权利要求11所述的榜单生成装置,其中,所述目标榜单元素确定单元包括:
    第一目标行为信息获取单元,被配置为获取所述已获取的榜单元素对应对象的目标行为信息;
    第一榜单元素筛选单元,被配置为基于所述目标行为信息对所述已获取的榜单元素进行筛选,得到所述目标榜单元素。
  13. 根据权利要求11所述的榜单生成装置,其中,所述目标数据源包括第一目标数据源和第二目标数据源,所述目标榜单元素确定单元包括:
    第二目标行为信息获取单元,被配置为获取所述已获取的榜单元素对应对象的目标行为信息;
    榜单元素划分单元,被配置为基于所述目标行为信息对所述目标数据源对应的榜单元素进行划分,得到与所述第一目标数据源对应的第一榜单元素,以及与所述第二目标数据源对应的第二榜单元素;
    第二榜单元素筛选单元,被配置为基于所述目标行为信息对所述非目标数据源对应的榜单元素进行筛选,得到所述非目标数据源对应的筛选后榜单元素;
    目标榜单元素确定子单元,被配置为将所述第一榜单元素,所述第二榜单元素和所述筛选后榜单元素,作为所述目标榜单元素。
  14. 根据权利要求12或13所述的榜单生成装置,其中,所述目标榜单元素确定单元还包括:
    第一去重处理单元,被配置为对所述已获取的榜单元素进行去重处理,得到去重后的榜单元素;
    所述获取所述已获取的榜单元素对应对象的目标行为信息包括:
    获取所述去重后的榜单元素对应的榜单对象的目标行为信息。
  15. 根据权利要求10所述的榜单生成装置,其中,所述目标榜单元素包括多个榜单元素,所述目标排序参数获取模块包括:
    排序参数类型确定单元,被配置为确定每个榜单元素对应的数据源的排序参数类型;
    第二去重处理单元,被配置为对所述多个榜单元素对应的排序参数类型进行去重处理,得到所述多个榜单元素对应的目标排序参数类型;
    目标排序参数获取单元,被配置为基于所述目标排序参数类型,获取所述目标排序参数。
  16. 根据权利要求10所述的榜单生成装置,其中,所述目标榜单元素包括多个榜单元素,所述目标榜单生成模块包括:
    榜单元素分组单元,被配置为将所述多个榜单元素,按照所述多个榜单元素对应的数据源进行分组,得到多个榜单元素组;
    子排序参数确定单元,被配置为从所述目标排序参数中确定每个榜单元素组对应的子排序参数;
    榜单元素排序单元,被配置为根据所述每个榜单元素组对应的子排序参数对所述每个榜单元素组中的榜单元素进行排序,得到每个榜单元素组对应的榜单元素序列;
    目标榜单生成单元,被配置为基于所述榜单元素序列,生成所述目标榜单。
  17. 根据权利要求16所述的榜单生成装置,其中,所述目标榜单生成单元包括:
    展示优先级获取单元,被配置为从所述榜单配置信息中获取所述多个榜单元素组对应的数据源的展示优先级;
    降序排序单元,被配置为基于所述多个榜单元素组对应的数据源的展示优先级,对所述多个榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单。
  18. 根据权利要求17所述的榜单生成装置,其中,所述目标榜单生成单元还包括:
    上限阈值获取单元,被配置为从所述榜单配置信息中,获取所述多个榜单元素组对应的数据源中末级数据源所对应的元素上限阈值,所述末级数据源为所述多个榜单元素组对应的数据源中展示优先级最低的数据源;
    榜单元素过滤单元,被配置为在所述末级数据源对应的榜单元素组中的榜单元素数大于所述元素上线阈值的情况下,对所述末级数据源对应的榜单元素组进行过滤,得到过滤后的榜单元素组;
    所述降序排序单元还被配置为基于所述多个榜单元素组对应的数据源的展示优先级,对所述过滤后的榜单元素组和非末级榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单,所述非末级榜单元素组为所述多个榜单元素组中除所述末级数据源对应的榜单元素组以外的榜单元素组。
  19. 一种电子设备,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现榜单生成方法,所述方法包括:
    响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
    基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
    获取与所述目标榜单元素对应的目标排序参数;
    基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
  20. 根据权利要求19所述的电子设备,其中,所述多个数据源包括目标数据源和非目标数据源,所述榜单配置信息包括所述多个数据源的展示优先级和所述非目标数据源的预设展示条件;所述处理器被配置为执行所述指令,以实现以下步骤:
    获取所述目标终端在所述目标数据源中对应的榜单元素;
    在已获取的榜单元素未满足下一数据源的预设展示条件的情况下,获取所述目标终端在下一数据源中对应的榜单元素,所述下一数据源为展示优先级在当前数据源之后一级的非目标数据源,所述 当前数据源为已获取的榜单元素对应的数据源中展示优先级最低的数据源;
    已获取的榜单元素满足所述下一数据源的预设展示条件的情况下,基于已获取的榜单元素,确定所述目标榜单元素。
  21. 根据权利要求20所述的电子设备,其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取所述已获取的榜单元素对应对象的目标行为信息;
    基于所述目标行为信息对所述已获取的榜单元素进行筛选,得到所述目标榜单元素。
  22. 根据权利要求20所述的电子设备,其中,所述目标数据源包括第一目标数据源和第二目标数据源,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取所述已获取的榜单元素对应对象的目标行为信息;
    基于所述目标行为信息对所述目标数据源对应的榜单元素进行划分,得到与所述第一目标数据源对应的第一榜单元素,以及与所述第二目标数据源对应的第二榜单元素;
    基于所述目标行为信息对所述非目标数据源对应的榜单元素进行筛选,得到所述非目标数据源对应的筛选后榜单元素;
    将所述第一榜单元素,所述第二榜单元素和所述筛选后榜单元素,作为所述目标榜单元素。
  23. 根据权利要求21或22所述的电子设备,其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    对所述已获取的榜单元素进行去重处理,得到去重后的榜单元素;
    所述获取所述已获取的榜单元素对应对象的目标行为信息包括:
    获取所述去重后的榜单元素对应的榜单对象的目标行为信息。
  24. 根据权利要求19所述的电子设备,其中,所述目标榜单元素包括多个榜单元素,所述处理器被配置为执行所述指令,以实现以下步骤:
    确定每个榜单元素对应的数据源的排序参数类型;
    对所述多个榜单元素对应的排序参数类型进行去重处理,得到所述多个榜单元素对应的目标排序参数类型;
    基于所述目标排序参数类型,获取所述目标排序参数。
  25. 根据权利要求19所述的电子设备,其中,所述目标榜单元素包括多个榜单元素,所述处理器被配置为执行所述指令,以实现以下步骤:
    将所述多个榜单元素,按照所述多个榜单元素对应的数据源进行分组,得到多个榜单元素组;
    从所述目标排序参数中确定每个榜单元素组对应的子排序参数;
    根据所述每个榜单元素组对应的子排序参数对所述每个榜单元素组中的榜单元素进行排序,得到每个榜单元素组对应的榜单元素序列;
    基于所述榜单元素序列,生成所述目标榜单。
  26. 根据权利要求25所述的电子设备,其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    从所述榜单配置信息中获取所述多个榜单元素组对应的数据源的展示优先级;
    基于所述多个榜单元素组对应的数据源的展示优先级,对所述多个榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单。
  27. 根据权利要求26所述的电子设备,其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    从所述榜单配置信息中,获取所述多个榜单元素组对应的数据源中末级数据源所对应的元素上限阈值,所述末级数据源为所述多个榜单元素组对应的数据源中展示优先级最低的数据源;
    在所述末级数据源对应的榜单元素组中的榜单元素数大于所述元素上线阈值的情况下,对所述末级数据源对应的榜单元素组进行过滤,得到过滤后的榜单元素组;
    所述处理器还被配置为执行所述指令,以实现以下步骤:
    基于所述多个榜单元素组对应的数据源的展示优先级,对所述过滤后的榜单元素组和非末级榜单元素组对应的榜单元素序列进行降序排序,得到所述目标榜单,所述非末级榜单元素组为所述多个榜单元素组中除所述末级数据源对应的榜单元素组以外的榜单元素组。
  28. 一种计算机可读存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行榜单生成方法,所述榜单生成方法包括:
    响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
    基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
    获取与所述目标榜单元素对应的目标排序参数;
    基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
  29. 一种计算机程序产品,包括计算机指令,其中,所述计算机指令被处理器执行时实现榜单生成方法,所述榜单生成方法包括:
    响应于目标终端发送的目标榜单的展示请求,确定所述目标榜单的榜单配置信息,所述榜单配置信息表征所述目标榜单的多个数据源对应的榜单元素的展现控制信息;
    基于所述榜单配置信息,获取所述目标终端对应的目标榜单元素;
    获取与所述目标榜单元素对应的目标排序参数;
    基于所述目标排序参数对所述目标榜单元素进行排序,生成所述目标榜单。
PCT/CN2021/115461 2021-01-28 2021-08-30 榜单生成方法及装置 WO2022160702A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110120113.5A CN112807697A (zh) 2021-01-28 2021-01-28 榜单生成方法、装置、电子设备及存储介质
CN202110120113.5 2021-01-28

Publications (1)

Publication Number Publication Date
WO2022160702A1 true WO2022160702A1 (zh) 2022-08-04

Family

ID=75860226

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115461 WO2022160702A1 (zh) 2021-01-28 2021-08-30 榜单生成方法及装置

Country Status (2)

Country Link
CN (1) CN112807697A (zh)
WO (1) WO2022160702A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455631A (zh) * 2023-12-20 2024-01-26 浙江口碑网络技术有限公司 信息展示方法及系统

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112807697A (zh) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 榜单生成方法、装置、电子设备及存储介质
CN113420236B (zh) * 2021-05-24 2024-05-17 北京达佳互联信息技术有限公司 榜单数据展示方法、装置、电子设备及存储介质
CN113742581B (zh) * 2021-08-23 2023-09-12 北京百度网讯科技有限公司 榜单的生成方法、装置、电子设备及可读存储介质
CN114584829B (zh) * 2022-02-08 2024-08-13 百果园技术(新加坡)有限公司 一种榜单活动页面管理方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246726A (zh) * 2013-05-09 2013-08-14 北京奇虎科技有限公司 一种网络信息的搜索方法、装置和系统
CN107376356A (zh) * 2017-07-07 2017-11-24 腾讯科技(深圳)有限公司 为在线应用实现榜单服务、在线应用榜单实现方法和装置
CN109543086A (zh) * 2018-11-23 2019-03-29 北京信息科技大学 一种面向多数据源的网络数据采集与展示方法
CN111589163A (zh) * 2020-05-20 2020-08-28 网易(杭州)网络有限公司 排行榜的处理方法、终端设备、服务器及存储介质
CN111913955A (zh) * 2020-06-22 2020-11-10 中科驭数(北京)科技有限公司 数据的排序处理装置、方法和存储介质
CN112807697A (zh) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 榜单生成方法、装置、电子设备及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9616348B2 (en) * 2009-09-11 2017-04-11 Qualcomm Incorporated System and method of providing leaderboards for mobile gaming in a wireless network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246726A (zh) * 2013-05-09 2013-08-14 北京奇虎科技有限公司 一种网络信息的搜索方法、装置和系统
CN107376356A (zh) * 2017-07-07 2017-11-24 腾讯科技(深圳)有限公司 为在线应用实现榜单服务、在线应用榜单实现方法和装置
CN109543086A (zh) * 2018-11-23 2019-03-29 北京信息科技大学 一种面向多数据源的网络数据采集与展示方法
CN111589163A (zh) * 2020-05-20 2020-08-28 网易(杭州)网络有限公司 排行榜的处理方法、终端设备、服务器及存储介质
CN111913955A (zh) * 2020-06-22 2020-11-10 中科驭数(北京)科技有限公司 数据的排序处理装置、方法和存储介质
CN112807697A (zh) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 榜单生成方法、装置、电子设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455631A (zh) * 2023-12-20 2024-01-26 浙江口碑网络技术有限公司 信息展示方法及系统

Also Published As

Publication number Publication date
CN112807697A (zh) 2021-05-18

Similar Documents

Publication Publication Date Title
WO2022160702A1 (zh) 榜单生成方法及装置
US9984428B2 (en) Systems and methods for structuring data from unstructured electronic data files
JP6483092B2 (ja) 更新レイヤを伴うデータベース・シャーディング
JP5989940B1 (ja) オンライン・ソーシャル・ネットワークにおける検索クエリに対する近似的プライバシ
US8640190B1 (en) Parental control policy generation
US10346629B2 (en) Data loss prevention for an online content management platform
JP2010500649A5 (zh)
DE112012005037T5 (de) Verwalten von redundanten unveränderlichen Dateien unter Verwendung von Deduplizierungen in Speicher-Clouds
US20200117826A1 (en) Data access policy management
WO2013062877A1 (en) Contextual gravitation of datasets and data services
CN112019820B (zh) 界面生成方法和装置
CN107408115B (zh) web站点过滤器、控制对内容的访问的方法和介质
US20130212115A1 (en) Tag inheritance
TW201319982A (zh) 產品資訊的即時去重複方法和裝置
CN109739815A (zh) 文件处理方法、系统、装置、设备及存储介质
JP7374232B2 (ja) コンテキスト付きのコンテンツ・アイテム共有
WO2016074370A1 (zh) 一种KeyValue数据库的数据表的更新方法与表数据更新装置
US20150113007A1 (en) Dynamic query response with metadata
WO2024027328A1 (zh) 基于零信任数据访问控制系统的数据处理方法
US20200045506A1 (en) Methods and systems for evaluating applications in an application distribution platform
CN111464487A (zh) 访问控制方法、装置及系统
WO2023115807A1 (zh) 信息处理方法及装置
CN110866011A (zh) 数据表同步方法、装置、计算机设备和存储介质
CN111324701B (zh) 内容补充方法、装置、计算机设备和存储介质
CN114443727A (zh) 一种人脉数据处理方法、装置、设备及存储介质

Legal Events

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

Ref document number: 21922297

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/11/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21922297

Country of ref document: EP

Kind code of ref document: A1