CN109766497A - Ranking list generation method and device, storage medium, electronic equipment - Google Patents

Ranking list generation method and device, storage medium, electronic equipment Download PDF

Info

Publication number
CN109766497A
CN109766497A CN201910058655.7A CN201910058655A CN109766497A CN 109766497 A CN109766497 A CN 109766497A CN 201910058655 A CN201910058655 A CN 201910058655A CN 109766497 A CN109766497 A CN 109766497A
Authority
CN
China
Prior art keywords
ranking list
property parameters
target
target record
object elements
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910058655.7A
Other languages
Chinese (zh)
Other versions
CN109766497B (en
Inventor
高金菊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910058655.7A priority Critical patent/CN109766497B/en
Publication of CN109766497A publication Critical patent/CN109766497A/en
Application granted granted Critical
Publication of CN109766497B publication Critical patent/CN109766497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure is directed to a kind of ranking list generation method, device, storage medium and electronic equipments, belong to field of computer technology, this method comprises: determining an ordered set in the buffer, and obtain multiple property parameters to the corresponding target record of ranked object;The multiple property parameters of the target record are handled, determining includes at least one property parameters and each property parameters are the object elements of default position;The weighted value of the object elements and the target record is stored into the ordered set, the corresponding ranking list of the target record is obtained.This method can be avoided limitation of the weighted value digit to ranking list, can be extended to multidimensional ranking list, improve the accuracy of ranking list.

Description

Ranking list generation method and device, storage medium, electronic equipment
Technical field
This disclosure relates to which field of computer technology, generates dress in particular to a kind of ranking list generation method, ranking list It sets, computer readable storage medium and electronic equipment.
Background technique
During live streaming, need to construct all kinds of real time leaderboards to hot spot data, to promote user experience.It is usually used Caching of the redis as hot spot data, while using this data structure of sorted set ordered set inside redis come real The quicksort of existing ranking list.
In the related technology, database can be used when taking out data set from database by database sort Sort order, is ranked up multidimensional data.Then the ordered data that will be obtained from database, is put into caching.Either it is Realizing can be required with the real time leaderboard of quicksort, usually by the sorted set ordered set of redis come the row of realization Row list.In sorted set ordered set, each element has a weight, it is only necessary to by element and the corresponding power of element It resets in this structure of ordered set, so that it may be taken out using the quick positive sequence of corresponding order or inverted order some or all of Data, to reach sequence effect.
But in the above method, when using sort order, the high hot spot data of the real-time big for data volume it is a large amount of Sorting operation will affect the performance of database therefore real-time be poor and operating efficiency is lower.For sorted set ordered set It for the real time leaderboard of multidimensional in conjunction, needs to combine a variety of numerical value by certain rule, to construct weight, arrange Sequence dimension number and sequence dimension numerical value value range be all limited to weight score precision limitation, cause be more than power The problem of limiting, can not being ranked up again.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of ranking list generation method, ranking list generating means, computer-readable storage Medium and electronic equipment, and then ranked caused by overcoming the limitation and defect due to the relevant technologies at least to a certain extent The problem of list is limited by weight digit.
According to one aspect of the disclosure, a kind of ranking list generation method is provided, comprising: in the buffer determine one orderly Set, and obtain multiple property parameters to the corresponding target record of ranked object;To the multiple category of the target record Property parameter handled, determine to include object elements that at least one property parameters and each property parameters are default position;It will The weighted value of the object elements and the target record is stored into the ordered set, and it is corresponding to obtain the target record Ranking list.
In a kind of exemplary embodiment of the disclosure, the multiple property parameters include user identifier, user integral, gift Object quantity and guard grade, and the user integral, the present quantity and it is described guard grade preset according to first it is suitable Sequence arrangement.
In a kind of exemplary embodiment of the disclosure, at the multiple property parameters of the target record Reason determines include at least one property parameters and each property parameters be the object elements of default position to include: to according to first Remaining property parameters and user identifier in addition to the property parameters of preset order arrangement to sort except first are combined, with structure At the object elements.
In a kind of exemplary embodiment of the disclosure, to the attribute to sort except first arranged according to the first preset order Remaining property parameters and user identifier except parameter are combined, if including: the object to constitute the object elements The actual number of bits of property parameters in element be less than the default position, then by way of being aligned cover to the property parameters into Row pretreatment;By the pretreated remaining property parameters and the user identifier, group is carried out according to the second preset order It closes, to constitute the object elements.
In a kind of exemplary embodiment of the disclosure, the weighted value of the object elements and the target record is deposited Into the ordered set, obtaining the corresponding ranking list of the target record includes: by the first sequence in the target record for storage Property parameters be determined as the weighted value of the target record;By pre-set commands by the object elements and the weighted value The numerical value that the target record is constructed to the ordered set in ranking list is stored, it is corresponding to obtain the target record The ranking list.
In a kind of exemplary embodiment of the disclosure, the method also includes: according to element rule to the object meta Element is parsed, and the value of each property parameters is obtained from the object elements.
In a kind of exemplary embodiment of the disclosure, the method also includes: list inquiry request is received, and judges institute It states in caching with the presence or absence of the variable of the target ranking list in the list inquiry request;The variable if it exists, then directly from The target ranking list is read in the caching;The variable if it does not exist then obtains the list inquiry from database and asks The target record of corresponding target data set is sought, and reads the target row from the ranking list constructed according to the target record Row list.
According to one aspect of the disclosure, a kind of ranking list generating means are provided, comprising: parameter acquisition module is used for An ordered set is determined in caching, and obtains multiple property parameters to the corresponding target record of ranked object;Object elements Determining module is handled for the multiple property parameters to the target record, determines to include that at least one attribute is joined Several and each property parameters are the object elements of default position;Ranking list constructs module, is used for the object elements and institute The weighted value for stating target record is stored into the ordered set, obtains the corresponding ranking list of the target record.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes ranking list generation method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor;And memory, for storing The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to execute via the executable instruction is executed Ranking list generation method described in any one.
A kind of ranking list generation method and device that the disclosure provides, on the one hand, pass through the property parameters to target record It is handled, generating includes at least one property parameters and each property parameters are the object elements of default position, due to object The occupy-place of each property parameters is default position in element, avoids the limitation of weight digit in the related technology, can be any The sequence dimension of multidimensional ranking list and the value range of every kind of dimension numerical value are extended, scalability and application range are increased, So that the ranking list generated is more acurrate.On the other hand, object elements and weighted value are stored and generate ranking list into ordered set, The ranking results that ranking list can be obtained in real time improve real-time and are ranked up independent of database, improve efficiency.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of flow chart of ranking list generation method in the present exemplary embodiment.
Fig. 2 schematically shows the flow chart that list is inquired in the present exemplary embodiment.
Fig. 3 schematically shows a kind of block diagram of ranking list generating means in the present exemplary embodiment.
Fig. 4 schematically shows a kind of electronic equipment for realizing above-mentioned ranking list generation method.
Fig. 5 schematically shows a kind of computer readable storage medium for realizing above-mentioned ranking list generation method.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In actual service application scene, there are many ranking lists of multiplicity, such as user integral ranking list.From ranking list Timeliness be broadly divided into real-time list and history list to divide.It is divided from the displaying dimension of ranking list, one-dimensional seniority among brothers and sisters can be divided into List and multidimensional ranking list.Single dimension ranking list, such as user integral ranking list, is just only shown and is pressed based on the seniority among brothers and sisters under a dimension The seniority among brothers and sisters carried out according to user integral height.And various dimensions ranking list refers to and integrates and ranked there are many dimension, for example uses List is contributed at family, in addition to user integral, it is also necessary to which, in conjunction with the number of giving gifts of user, user's guards three kinds of dimensions such as grade, in product Split-phase will give gifts in the same number of situation, arrange according to grade is guarded according to the number sequence of giving gifts of user in the case where Sequence.
Sort order when by database sort, from database when taking-up data set using database, it is easy to Multidimensional data is ranked up.Then the ordered data that will be obtained from database, is put into caching.The real-time of this method is very Difference, high real-time mean that cache-time wants shorter, continually sort from database that a large amount of sorting operation can reduce data The performance in library.
It can be with the real time leaderboard requirement of quicksort, usually by the sorted set ordered set of redis in order to realize It closes to realize ranking list.It is all very fast, time complexity that (addition or deletion) member is updated in sorted set It is the logarithm of set member's quantity.In sorted set ordered set, each element has a score and (referred to as weighs Weight or association scoring), it is only necessary to element and the corresponding weight of element are put into this structure of ordered set, so that it may utilize It is corresponding that quick positive sequence or inverted order is ordered to take out partly or completely data, to reach sequence effect.Such as it defines The ordered set key:user_score_zset of one user integral ranking list is inserted into a data toward ordered set the inside, inserts The integral of access customer 20031245 is 20.Specific example order is as follows: ZADD user_score_zset 20 20031245.
Weight score is double type in redis, in double64,1 bit sign position, and 11 exponent bits, 52 Position mantissa bit, so the significance bit that double64 is expressed as integer is 15 (decimal digits).For the real time leaderboard of multidimensional, Need to combine a variety of numerical value by certain rule, to construct weight score, the dimension that sorts number and sequence dimension The numerical value value range of degree is all limited to the precision limitation of weight score.Such as user contributes list, the first of sequence Sequence is user integral, and the second sequence is that user gives gifts number, and third sequence is to guard grade.So from high to low, score 1-5 storage integrated values, 6-10 store number of giving gifts, and grade is guarded in 11-15 storages.In actual use, if some The value of the dimension of sequence is excessive, then 15 significance bits of score be it is not enough, occupy-place occurs more than 15 and is not available this Kind method carries out multidimensional ordering.
To solve the above-mentioned problems, a kind of ranking list generation method, Ke Yiying are provided firstly in this example embodiment For handling the ranking list in game live streaming either other types live scene.Next, in conjunction with Fig. 1 to this example Ranking list generation method in property embodiment is described in detail.
In step s 110, an ordered set is determined in the buffer, and is obtained to the corresponding target record of ranked object Multiple property parameters.
In the present exemplary embodiment, caching can for example cache for redis, or the caching of other structures.Originally show In example property embodiment, the main process for generating ranking list includes: ordered set name, determines to ranked object and determine object meta Plain member and calculating weighted value.Determine that an ordered set refers to that ordered set key is named, ordered set has referred to The data structure of ordered sets type, specifically can the particular content according to business and the Naming conventions according to ordered set order Name.Such as ordered set can be named as user_contri_board.It should be noted that defined herein only one The variable key of ordered set sorted set structure wherein can not include data, and be calculated after data subsequent by data It stores into the variable.
In general, referring to the object for needing to sort to ranked object, such as contributed in list in user, needs to sort Object is exactly user, then the corresponding member of ranking list can be indicated by user identifier uid.Target record refers to counting According to the data in library, database for example can be mongo database either other kinds of database, target record and can use The specific value in list is contributed in user in describing each user.It may include multiple property parameters in target record, wherein more A property parameters can include but is not limited to: user identifier and user integral, guard grade at present quantity, certainly can be with Including other parameters, it is not particularly limited herein.User identifier is used for the object for uniquely indicating to be ranked up in ranking list, note It is uid.User integral user_score, present quantity gift_num and guard grade level can be according to the first preset order It is arranged.First preset order for example can be with are as follows: user integral is arranged in first, present quantity is arranged in second And rank arrangement will be guarded in third position etc., naturally it is also possible in other orders by user integral user_score, present It quantity gift_num and guards grade level and is ranked up, be not particularly limited herein.For example, target record can be with It is expressed as following form: " uid ": 20071234, " user_score ": 100, " gift_num ": 10000, " level ": 20.
Each user can correspond to a target record, for the same ranking list, the corresponding target of all users The type of the property parameters of record is identical, but corresponding numerical value can be different.
In the step s 120, the multiple property parameters of the target record are handled, generating includes at least one A property parameters and each property parameters are the object elements of default position.
In the present exemplary embodiment, in order to avoid that can only handle in the related technology weight, and due to weight digit The problem of limitation, the problem of causing ranking list that cannot extend.In the present exemplary embodiment, the corresponding object of ranked object can be treated Element is handled.Specifically, to the remaining category in addition to the property parameters of the first sequence arranged according to the first preset order Property parameter and user identifier are combined, to constitute the object elements.For above-mentioned target record, first row is removed Remaining property parameters except the property parameters of sequence include the second sequence property parameters and third sequence property parameters, because This is combined the property parameters of the second sequence in target record, the property parameters of third sequence and user identifier, with Constitute the object elements.That is, in other elements in the property element of target record in addition to user identifier, it will It is arranged in deputy property element, the property element that is arranged in third position extracts, default according to second with user identifier Sequence is combined.The second preset order herein can be understood as the first preset order to moving to left one, i.e., by second row User identifier is arranged in last position to moving to left one by the property element of property element and the third sequence of sequence.It certainly can also To be arranged in other sequences, it is not particularly limited herein.For example, in target record, other than user identifier uid, The property parameters of first sequence are user_score, and the property parameters of the second sequence are gift_num, the attribute ginseng of third sequence Number is level.Then according to the method in step S120, the object that the property parameters in target record can be combined Element is mem:gift_num:level:uid, and wherein mem is a mark character without Special Significance, remaining gift_num, Level, uid are specific numerical value.
It should be noted that in order to avoid the limitation of weight digit, in the present exemplary embodiment, each category in object elements Property parameter can be the numerical value of default position, default position is for indicating digit shared by each property parameters, it can also be used to which description is every The length of a property parameters.For example, presetting position for example can be 10, or 15 or other numerical value, this It is illustrated so that default position is 10 as an example in exemplary embodiment.
When reality is combined multiple property parameters in target record, each property parameters can be carried out first pre- Processing, pretreatment herein refer to that the digit by each property parameters is converted into default position.Specifically, if object elements In the actual number of bits of property parameters be less than default position, then property parameters are pre-processed by way of being aligned cover.It is right Neat cover refers to being the presetting digit capacity set by the digit polishing of numerical value, and concrete mode can be for example the side of high-order benefit 0 Formula.That is, if the actual number of bits of property parameters less than 10, can be in such a way that a high position mends 0 by property parameters Digit polishing 10.For example, the actual numerical value of gift_num is 100, then it is corresponding when constructing member object elements, Use the numerical value of the gift_num of the high-order method construct for mending 0 for 0000000100.On this basis, it is assumed that target record are as follows:
" uid ": 20071234, " user_score ": 100, " gift_num ": 10000, " level ": 20,
After each property parameters are then processed into 10 in such a way that a high position mends 0, the object elements of generation can be indicated For mem:0000010000:0000000020:0020071234.
Since member element key is a character string type in caching redis, maximum is limited to 512M, to member This mode that object elements are extended and construct will not be subject to the how many limitation of sequence dimension, can be to any more Dimension is extended sequence, has evaded the limitation of weight.
After generating object elements, an element rule can also be specified, by element rule to the object meta of building Element is parsed, and can accurately parse the occurrence of member object elements, so that rank results have not only been obtained, but also The value that property parameters can quickly be navigated to, as principal value of integral, present quantity value, guard the value of grade.
In step s 130, the weighted value of the object elements and the target record is stored to the ordered set In, obtain the corresponding ranking list of the target record.
In the present exemplary embodiment, after obtaining object elements, the weighted value of target record can be determined.The relevant technologies In, in multidimensional seniority among brothers and sisters, weighted value is obtained by multiple property parameters linear combinations.In this example, by target record The property parameters of one sequence are set as weighted value.For example, target record " uid ": 20071234, " user_score ": 100, " Gift_num ": 10000, " level ": 20 } in, the property parameters of the first sequence are user_score, then can be by user_score Numerical value as weighted value.If the property parameters of the first sequence change, weighted value can also accordingly change.It needs Illustrate, weighted value herein can not need to be handled in the way of being aligned cover.
After obtaining object elements and weighted value, the two can be stored into ordered set defined in step S110. Specifically, it can be stored according to pre-set commands, pre-set commands can be ZADD order.ZADD order addition it is all it is specified at The specified score of member is stored in the ordered set of key.It can specify multiple points/member couple.If specified member has had A member in ordered sets, score are updated, and are inserted into element in place, to ensure correct sequence.If key is not deposited The mandatory member of a new ordered set creates as unique member, just as ordered set is empty.If the key is deposited , but do not hold ordered set, then return to a mistake.
For example, the member of the target record constructed in step S120 is indicated are as follows:
Mem:0000010000:0000000020:0020071234, score value are 100, use following ZADD order structure This target record is made in the numerical value of ranking list, concrete mode can be such as:
ZADD user_contri_board 100mem:0000010000:0000000020:0020071234
The weighted value of the corresponding object properties of target record and target record is stored to caching by ZADD order Defined in ordered set variable, that is, produce the corresponding ranking list of target record.Due to including multiple categories in target record Property parameter, include multidimensional property parameter in object elements, thus generate be target record multidimensional ranking list.Due to object It may include the property parameters of multiple dimensions, and the digit of each property parameters is 10, therefore avoids correlation in element In technology, multidimensional ranking list is limited by 15 digits of weighted value score, is led to that dimension cannot be extended, can not be extended The problem of numerical values recited of each dimension.The dimension of ranking list can carry out arbitrary extension, and the numerical value value of each dimension can be with Arbitrary extension, therefore there is preferable scalability.It in addition to this, for any target record, that is, include any property parameters Target record for, the method that provides in the present exemplary embodiment can be used to generate the multidimensional ranking list of target record, Therefore it can simplify the step of generating multidimensional ranking list, provide convenience for developer, and then improve operating efficiency.
Ordered set using the multidimensional ranking list of the method construct in the present exemplary embodiment, independent of redis Other memories or data base method sequence other than sorted set, avoid the influence to database performance, increase height Effect property.Due to being ranked up using the ordered set in caching, the ranking results of list can be obtained in real time, increased in real time Property.In addition to this, the ranking list generation method in the present exemplary embodiment is a kind of universal method, can be applied to each scene In, therefore the general method can be used to obtain all behaviour of multidimensional real time leaderboard in the development process of different business Make, reduces development cost and improve development efficiency.
After generating multidimensional ranking list, ranking list can be inquired.Specific method includes: to receive list inquiry to ask It asks, and judges in the caching with the presence or absence of the variable of the target ranking list in the list inquiry request;The change if it exists Amount, then directly read the target ranking list from the caching;The variable if it does not exist, then from database described in acquisition The corresponding target data set of list inquiry request, and the target is read from the ranking list constructed according to the target data set Ranking list.Refering to what is shown in Fig. 2, being illustrated to specific steps.
In step S210, if receiving the list inquiry request including target ranking list, read from redis caching first It takes.Target ranking list may include one either multiple, such as 10 list contents before ranking.
In step S220, judge in the ordered set key in caching with the presence or absence of the mesh for including in list inquiry request Mark ranking list.If it exists, S230 is thened follow the steps;If it does not exist, S240 is thened follow the steps.Specifically, it can determine whether in caching It whether there is the variate-value of target ranking list in ordered set key.
In step S230, directly ranked from the multidimensional ranking list in caching according to target according to zrevrange order The variate-value of list obtains target ranking list.
In step S240, the number of targets needed is determined from database according to the target ranking list in list inquiry request According to collection, the target record of target data set is then configured to corresponding redis ranking list.The ranking list of construction is stored in again In redis caching, that is, the data structure key of ordered set sorted set type is generated, user_contri_ is named as board.Next, from using zrevrange order to read target from the redis ranking list sorted set just loaded Ranking list.
For example, it is loaded, is needed there is no when the target ranking list in list inquiry request in redis Target data set in database to be loaded is as follows:
{“uid”:20071234,“user_score”:100,”gift_num”:10000,”level”:20}
{“uid”:20071235,“user_score”:100,”gift_num”:20000,”level”:23}
{“uid”:20071236,“user_score”:100,”gift_num”:30000,”level”:25}
{“uid”:20071237,“user_score”:2000,”gift_num”:40000,”level”:30}
To each record that target data is concentrated, stored in the buffer by the method for step S110 to step S130 Ranking list can be such as:
It should be noted that can be ranked up first according to numerical value of the sequence of weighted value from big to small to ranking list, It when weighted value is identical, can be arranged according to the sequence of object elements value from big to small, to obtain meeting list inquiry request Target ranking list.By the step in Fig. 2, the target seniority among brothers and sisters for meeting list inquiry request is read and inquired first from caching List can be improved search efficiency, and improve convenience, while reduce resource consumption.
The disclosure additionally provides a kind of ranking list generating means.Refering to what is shown in Fig. 3, the ranking list generating means 300 can be with Include:
Parameter acquisition module 301 can be used for determining an ordered set in the buffer, and obtain corresponding to ranked object Target record multiple property parameters;
Object elements determining module 302 can be used for handling the multiple property parameters of the target record, Determining includes at least one property parameters and each property parameters are the object elements of default position;
Ranking list constructs module 303, can be used for storing the weighted value of the object elements and the target record To in the ordered set, the corresponding ranking list of the target record is obtained.
The detail of each module carries out in corresponding ranking list generation method in above-mentioned ranking list generating means Detailed description, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 400 of this embodiment according to the present invention is described referring to Fig. 4.The electronics that Fig. 4 is shown Equipment 400 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap It includes but is not limited to: at least one above-mentioned processing unit 410, at least one above-mentioned storage unit 420, the different system components of connection The bus 430 of (including storage unit 420 and processing unit 410).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410 Row, so that various according to the present invention described in the execution of the processing unit 410 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 410 can execute step as shown in fig. 1.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205 4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Display unit 440 can be display having a display function, to pass through the display exhibits by processing unit 410 Execute processing result obtained from the method in the present exemplary embodiment.Display include but is not limited to liquid crystal display either Other displays.
Electronic equipment 400 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 450.Also, electronic equipment 400 can be with By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 460 is communicated by bus 430 with other modules of electronic equipment 400. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 400, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 5, describing the program product for realizing the above method of embodiment according to the present invention 500, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of ranking list generation method characterized by comprising
An ordered set is determined in the buffer, and obtains multiple property parameters to the corresponding target record of ranked object;
The multiple property parameters of the target record are handled, determine to include at least one property parameters and each category Property parameter is the object elements of default position;
The weighted value of the object elements and the target record is stored into the ordered set, the target note is obtained Record corresponding ranking list.
2. ranking list generation method according to claim 1, which is characterized in that the multiple property parameters include user's mark Knowledge, user integral, present quantity and grade is guarded, and the user integral, the present quantity and described guards grade It is arranged according to the first preset order.
3. ranking list generation method according to claim 1, which is characterized in that the multiple category of the target record Property parameter handled, determine to include object elements packet that at least one property parameters and each property parameters are default position It includes:
To the remaining property parameters and user's mark in addition to the property parameters of the first sequence arranged according to the first preset order Knowledge is combined, to constitute the object elements.
4. ranking list generation method according to claim 3, which is characterized in that removed to according to the first preset order arrangement Remaining property parameters and user identifier except the property parameters of first sequence are combined, to constitute the object elements packet It includes:
If the actual number of bits of the property parameters in the object elements is less than the default position, by way of being aligned cover pair The property parameters are pre-processed;
By the pretreated remaining property parameters and the user identifier, it is combined according to the second preset order, with Constitute the object elements.
5. ranking list generation method according to claim 2, which is characterized in that by the object elements and the target The weighted value of record is stored into the ordered set, is obtained the corresponding ranking list of the target record and is included:
The property parameters of first sequence in the target record are determined as to the weighted value of the target record;
The object elements and the weighted value are stored to the ordered set by pre-set commands, construct the target note The numerical value in ranking list is recorded, to obtain the corresponding ranking list of the target record.
6. ranking list generation method according to claim 1, which is characterized in that the method also includes:
The object elements are parsed according to element rule, the value of each property parameters is obtained from the object elements.
7. ranking list generation method according to claim 1, which is characterized in that the method also includes:
List inquiry request is received, and is judged in the caching with the presence or absence of the target ranking list in the list inquiry request Variable;
The variable if it exists then directly reads the target ranking list from the caching;
The variable if it does not exist then obtains the target note of the corresponding target data set of the list inquiry request from database Record, and the target ranking list is read from the ranking list constructed according to the target record.
8. a kind of ranking list generating means characterized by comprising
Parameter acquisition module for determining an ordered set in the buffer, and is obtained to the corresponding target record of ranked object Multiple property parameters;
Object elements determining module is handled for the multiple property parameters to the target record, determines to include extremely Few property parameters and each property parameters are the object elements of default position;
Ranking list constructs module, for storing the weighted value of the object elements and the target record to ordered set In, obtain the corresponding multidimensional ranking list of the target record.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Claim 1-7 described in any item ranking list generation methods are realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-7 described in any item via executing the executable instruction and carry out perform claim Ranking list generation method.
CN201910058655.7A 2019-01-22 2019-01-22 Ranking list generation method and device, storage medium and electronic equipment Active CN109766497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910058655.7A CN109766497B (en) 2019-01-22 2019-01-22 Ranking list generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910058655.7A CN109766497B (en) 2019-01-22 2019-01-22 Ranking list generation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109766497A true CN109766497A (en) 2019-05-17
CN109766497B CN109766497B (en) 2022-03-22

Family

ID=66455001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910058655.7A Active CN109766497B (en) 2019-01-22 2019-01-22 Ranking list generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109766497B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278283A (en) * 2019-07-10 2019-09-24 广州虎牙科技有限公司 Ranking list processing method, device, computer readable storage medium and electronic equipment
CN110334104A (en) * 2019-06-28 2019-10-15 香港乐蜜有限公司 A kind of list update method, device, electronic equipment and storage medium
CN110833696A (en) * 2019-11-06 2020-02-25 网易(杭州)网络有限公司 Player ranking method and device, storage medium and electronic equipment
CN110975296A (en) * 2019-11-25 2020-04-10 网易(杭州)网络有限公司 Method, device, equipment and storage medium for maintaining ranking list in game
CN111372089A (en) * 2020-02-14 2020-07-03 广州华多网络科技有限公司 Method, device and storage medium for updating activity list
CN111475224A (en) * 2020-03-31 2020-07-31 百度在线网络技术(北京)有限公司 Object ranking method, device and equipment and computer storage medium
CN111651693A (en) * 2020-06-29 2020-09-11 腾讯科技(深圳)有限公司 Data display method, data sorting method, device, equipment and medium
CN111708954A (en) * 2020-05-22 2020-09-25 微梦创科网络科技(中国)有限公司 Ranking method and system of ranking list
CN112015732A (en) * 2020-07-31 2020-12-01 北京奇艺世纪科技有限公司 Sorting method, sorting device, electronic equipment and storage medium
CN112434182A (en) * 2020-10-29 2021-03-02 北京奇艺世纪科技有限公司 Data storage and acquisition method, device, server and storage medium
CN112486983A (en) * 2020-11-23 2021-03-12 广州经传多赢投资咨询有限公司 Ranking list generation method, system, device and storage medium
CN112732722A (en) * 2021-01-19 2021-04-30 深圳市欢太科技有限公司 Data processing method, data processing apparatus, storage medium, and electronic device
CN113158096A (en) * 2021-05-14 2021-07-23 网易(杭州)网络有限公司 Data processing method, device, medium and electronic equipment
CN113239084A (en) * 2021-05-17 2021-08-10 广州市百果园信息技术有限公司 Ranking list generation method and device, server and storage medium
CN113332732A (en) * 2021-05-31 2021-09-03 多益网络有限公司 Multi-field Redis ranking list generation method, device, equipment and storage medium
CN113656385A (en) * 2020-05-12 2021-11-16 北京沃东天骏信息技术有限公司 Data cleaning method, data cleaning device, storage medium and electronic equipment
CN114548060A (en) * 2022-02-28 2022-05-27 恒为科技(上海)股份有限公司 Optimized form generation method and device, storage medium and electronic equipment
WO2022223024A1 (en) * 2021-04-22 2022-10-27 北京沃东天骏信息技术有限公司 Data processing method and apparatus, device, and storage medium
CN114548060B (en) * 2022-02-28 2024-06-07 上海恒为智能科技有限公司 Optimization form generation method and device, storage medium and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136035A (en) * 2007-10-15 2008-03-05 金蝶软件(中国)有限公司 Ordering method and system for different attribute haracter
US20090282069A1 (en) * 2004-11-24 2009-11-12 Oracle International Corporation Encoding data to be sorted
GB201110194D0 (en) * 2011-06-16 2011-08-03 Sony Comp Entertainment Europe Leaderboard system and method
CN102880676A (en) * 2012-09-10 2013-01-16 新浪网技术(中国)有限公司 Statistical method for user behavior data and user behavior data statistical system
CN102902775A (en) * 2012-09-27 2013-01-30 新浪网技术(中国)有限公司 Internet real-time computing method and internet real-time computing system
CN102982112A (en) * 2012-11-08 2013-03-20 北京小米科技有限责任公司 Ranking list generation method and journal generation method and server
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
CN105426433A (en) * 2015-11-02 2016-03-23 广州华多网络科技有限公司 Ranking list data response method and request method as well as ranking list data display system
CN105760504A (en) * 2016-02-23 2016-07-13 中国银联股份有限公司 Resource retrieval method based on browser
CN105808736A (en) * 2016-03-10 2016-07-27 微梦创科网络科技(中国)有限公司 List data updating method, apparatus and system
CN106095923A (en) * 2016-06-12 2016-11-09 微梦创科网络科技(中国)有限公司 A kind of method and system adding data of being on the list in orderly list
CN106339493A (en) * 2016-08-31 2017-01-18 腾讯科技(深圳)有限公司 Data processing method and related device
CN108200070A (en) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method and device for generating list
CN108495195A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 A kind of network direct broadcasting ranking list generation method, device, equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090282069A1 (en) * 2004-11-24 2009-11-12 Oracle International Corporation Encoding data to be sorted
CN101136035A (en) * 2007-10-15 2008-03-05 金蝶软件(中国)有限公司 Ordering method and system for different attribute haracter
GB201110194D0 (en) * 2011-06-16 2011-08-03 Sony Comp Entertainment Europe Leaderboard system and method
CN102880676A (en) * 2012-09-10 2013-01-16 新浪网技术(中国)有限公司 Statistical method for user behavior data and user behavior data statistical system
CN102902775A (en) * 2012-09-27 2013-01-30 新浪网技术(中国)有限公司 Internet real-time computing method and internet real-time computing system
CN102982112A (en) * 2012-11-08 2013-03-20 北京小米科技有限责任公司 Ranking list generation method and journal generation method and server
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
CN105426433A (en) * 2015-11-02 2016-03-23 广州华多网络科技有限公司 Ranking list data response method and request method as well as ranking list data display system
CN105760504A (en) * 2016-02-23 2016-07-13 中国银联股份有限公司 Resource retrieval method based on browser
CN105808736A (en) * 2016-03-10 2016-07-27 微梦创科网络科技(中国)有限公司 List data updating method, apparatus and system
CN106095923A (en) * 2016-06-12 2016-11-09 微梦创科网络科技(中国)有限公司 A kind of method and system adding data of being on the list in orderly list
CN106339493A (en) * 2016-08-31 2017-01-18 腾讯科技(深圳)有限公司 Data processing method and related device
CN108200070A (en) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method and device for generating list
CN108495195A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 A kind of network direct broadcasting ranking list generation method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任延飞: "可扩展高校排名管理系统设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334104A (en) * 2019-06-28 2019-10-15 香港乐蜜有限公司 A kind of list update method, device, electronic equipment and storage medium
CN110278283A (en) * 2019-07-10 2019-09-24 广州虎牙科技有限公司 Ranking list processing method, device, computer readable storage medium and electronic equipment
CN110833696A (en) * 2019-11-06 2020-02-25 网易(杭州)网络有限公司 Player ranking method and device, storage medium and electronic equipment
CN110975296A (en) * 2019-11-25 2020-04-10 网易(杭州)网络有限公司 Method, device, equipment and storage medium for maintaining ranking list in game
CN110975296B (en) * 2019-11-25 2023-04-07 网易(杭州)网络有限公司 Method, device, equipment and storage medium for maintaining ranking list in game
CN111372089A (en) * 2020-02-14 2020-07-03 广州华多网络科技有限公司 Method, device and storage medium for updating activity list
CN111372089B (en) * 2020-02-14 2021-08-24 广州方硅信息技术有限公司 Method, device and storage medium for updating activity list
CN111475224B (en) * 2020-03-31 2023-06-09 百度在线网络技术(北京)有限公司 Object ranking method, device, equipment and computer storage medium
CN111475224A (en) * 2020-03-31 2020-07-31 百度在线网络技术(北京)有限公司 Object ranking method, device and equipment and computer storage medium
CN113656385A (en) * 2020-05-12 2021-11-16 北京沃东天骏信息技术有限公司 Data cleaning method, data cleaning device, storage medium and electronic equipment
CN111708954B (en) * 2020-05-22 2023-10-27 微梦创科网络科技(中国)有限公司 Ranking method and system of ranking list
CN111708954A (en) * 2020-05-22 2020-09-25 微梦创科网络科技(中国)有限公司 Ranking method and system of ranking list
CN111651693A (en) * 2020-06-29 2020-09-11 腾讯科技(深圳)有限公司 Data display method, data sorting method, device, equipment and medium
CN111651693B (en) * 2020-06-29 2023-03-28 腾讯科技(深圳)有限公司 Data display method, data sorting method, device, equipment and medium
CN112015732A (en) * 2020-07-31 2020-12-01 北京奇艺世纪科技有限公司 Sorting method, sorting device, electronic equipment and storage medium
CN112434182A (en) * 2020-10-29 2021-03-02 北京奇艺世纪科技有限公司 Data storage and acquisition method, device, server and storage medium
CN112486983A (en) * 2020-11-23 2021-03-12 广州经传多赢投资咨询有限公司 Ranking list generation method, system, device and storage medium
CN112732722A (en) * 2021-01-19 2021-04-30 深圳市欢太科技有限公司 Data processing method, data processing apparatus, storage medium, and electronic device
WO2022223024A1 (en) * 2021-04-22 2022-10-27 北京沃东天骏信息技术有限公司 Data processing method and apparatus, device, and storage medium
CN113158096A (en) * 2021-05-14 2021-07-23 网易(杭州)网络有限公司 Data processing method, device, medium and electronic equipment
CN113158096B (en) * 2021-05-14 2022-05-31 网易(杭州)网络有限公司 Data processing method, device, medium and electronic equipment
CN113239084A (en) * 2021-05-17 2021-08-10 广州市百果园信息技术有限公司 Ranking list generation method and device, server and storage medium
CN113332732A (en) * 2021-05-31 2021-09-03 多益网络有限公司 Multi-field Redis ranking list generation method, device, equipment and storage medium
CN114548060A (en) * 2022-02-28 2022-05-27 恒为科技(上海)股份有限公司 Optimized form generation method and device, storage medium and electronic equipment
CN114548060B (en) * 2022-02-28 2024-06-07 上海恒为智能科技有限公司 Optimization form generation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109766497B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109766497A (en) Ranking list generation method and device, storage medium, electronic equipment
US9589050B2 (en) Semantic context based keyword search techniques
CN109614402B (en) Multidimensional data query method and device
CN112269789B (en) Method and device for storing data, and method and device for reading data
US10007682B2 (en) Dynamically maintaining data structures driven by heterogeneous clients in a distributed data collection system
CN110362663B (en) Adaptive multi-perceptual similarity detection and analysis
US10956470B2 (en) Facet-based query refinement based on multiple query interpretations
US20200233872A1 (en) System and method for discovering synergistic companies
CN110162537A (en) Data query method and device, storage medium and electronic equipment
KR20220143765A (en) Dynamic creation of facets using graph segmentation
CN114817651B (en) Data storage method, data query method, device and equipment
CN107291835B (en) Search term recommendation method and device
US10776408B2 (en) Natural language search using facets
US20190057338A1 (en) Recommending team composition using analytics
US20200278988A1 (en) Merging search indexes of a search service
CN114491220A (en) Object processing method, device, equipment and medium
CN107463677A (en) Graph making method, system, medium and computing device
CN102915312B (en) Information issuing method in website and system
CN113722600A (en) Data query method, device, equipment and product applied to big data
CN109375910A (en) Class file generation method, device, electronic equipment and storage medium
CN110390011A (en) The method and apparatus of data classification
US20200012630A1 (en) Smaller Proximate Search Index
US20220300821A1 (en) Hybrid model and architecture search for automated machine learning systems
CN109086426A (en) Data query method, apparatus, computer equipment and readable storage medium storing program for executing
US11720554B2 (en) Iterative query expansion for document discovery

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant