CN108536834A - Update the method, apparatus and terminal of list - Google Patents

Update the method, apparatus and terminal of list Download PDF

Info

Publication number
CN108536834A
CN108536834A CN201810326103.5A CN201810326103A CN108536834A CN 108536834 A CN108536834 A CN 108536834A CN 201810326103 A CN201810326103 A CN 201810326103A CN 108536834 A CN108536834 A CN 108536834A
Authority
CN
China
Prior art keywords
model
model set
data
list
data model
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
CN201810326103.5A
Other languages
Chinese (zh)
Other versions
CN108536834B (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 CN201810326103.5A priority Critical patent/CN108536834B/en
Publication of CN108536834A publication Critical patent/CN108536834A/en
Application granted granted Critical
Publication of CN108536834B publication Critical patent/CN108536834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method, apparatus and terminal of update list.Wherein, this method includes:Obtain the first model set and the corresponding display list of the second model set, wherein the first model set is model set to be shown, and the second model set is the model set for showing list and showing;It is modified operation according to first the second model set of model set pair, obtains modification result, wherein modification operation including at least:Increase operation, update operation, delete operation;Display list is updated according to modification result.Less efficient technical problem is refreshed at the interface that the present invention solves caused by the larger data of batch refresh data volume.

Description

Update the method, apparatus and terminal of list
Technical field
The present invention relates to data processing fields, in particular to a kind of method, apparatus and terminal of update list.
Background technology
List is widely used as a kind of data display form in various application programs and webpage. Wherein, IM (Instant Messaging, instant messaging, the abbreviation of real-time communication) tool has widely applied the data exhibition of list Show form, for example, buddy list, group-list, group member list, messaging list etc..The establishment and refreshing (or update) of list are logical It is often two different processes, wherein the list element usually according to data creation equivalent is created, and it includes to increase to refresh The process for adding, deleting and changing is created as the special case refreshed, create list and be equivalent to batch increase data.
In the prior art, list establishment and refreshing be two independent processes, with the group in immediate communication tool at It is illustrated for member's list.When showing group members, need the key data for obtaining group members first (for example, group members Title, head portrait storing path, grade, presence etc.), all data in current group-list are then disposed, are created successively Each group members are simultaneously associated with corresponding data model.And when refreshing the related data of group members, it needs to change bottom data model, Then it sorts to new data model, and whether is changed according to the position of data model, carrying out additions and deletions to the list of displaying changes operation. However when the comparison that certain item data in list changes is frequent, for example, the presence of group members, at this point, the group in list Membership location generally can also change, and changed group members may be multiple.When the quantity of group members constantly increases Greatly, when reaching 1000 or more rank, the refreshing efficiency of list will substantially reduce, and refresh scheme will also become increasingly complex.And The variation of list will be so that the refreshing burden of UI (User Interface, user interface) greatly increases.
Refresh less efficient problem for the interface caused by the larger data of above-mentioned batch refresh data volume, at present still Effective solution scheme is not proposed.
Invention content
An embodiment of the present invention provides a kind of method, apparatus and terminal of update list, at least to solve batch refresh number Refresh less efficient technical problem according to the interface measured caused by larger data.
One side according to the ... of the embodiment of the present invention provides a kind of method of update list, including:Obtain the first model Set and the corresponding display list of the second model set, wherein the first model set is model set to be shown, the second mould Type collection is combined into the model set that display list is being shown;It is modified behaviour according to first the second model set of model set pair Make, obtain modification result, wherein modification operation includes at least:Increase operation, update operation, delete operation;According to modification result Display list is updated.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of device of update list, including:Acquisition module, For obtaining the first model set and the corresponding display list of the second model set, wherein the first model set is to be shown Model set, the second model set is to show the model set that is showing of list;Modified module, for according to the first model Set modifies operation to the second model set, obtains modification result, wherein modification is operated and being included at least:Increase and operates, more New operation, delete operation;Update module, for being updated to display list according to modification result.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of terminal of update list, including:Display;Place Device is managed, processor runs program, wherein following processing step is executed for the data exported from display when program is run:It obtains Take the first model set and the corresponding display list of the second model set, wherein the first model set is model to be shown Set, the second model set are the model set for showing list and showing;According to first the second model set of model set pair It modifies operation, obtains modification result, wherein modification operation including at least:Increase operation, update operation, delete operation;Root Display list is updated according to modification result.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of storage medium, which includes storage Program, wherein the method that program executes update list.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processor, which is used to run program, In, the method for updating list is executed when program is run.
In embodiments of the present invention, using to the establishment of list and update using by the way of Unified Algorithm, by obtaining the One model set and the corresponding display list of the second model set, then, according to first the second model set of model set pair Modify operation, changed as a result, and display list is updated according to modification result, wherein the first model set For model set to be shown, the second model set is the model set for showing list and showing, modification operation includes at least: Operation, update operation, delete operation are created, has reached simplified establishment and refreshing shows the mode of list, reduced change display row The purpose of the time of table to realize the technique effect for the refreshing efficiency for improving interface, and then solves batch refresh data It measures the interface caused by larger data and refreshes less efficient technical problem.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram of update list according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of optional flow chart for updating the data model according to the ... of the embodiment of the present invention;
Fig. 3 is the flow chart that a kind of optional update according to the ... of the embodiment of the present invention shows list;And
Fig. 4 is a kind of apparatus structure schematic diagram of update list according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for update list is provided, it should be noted that in attached drawing The step of flow illustrates can execute in the computer system of such as a group of computer-executable instructions, although also, Logical order is shown in flow chart, but in some cases, it can be to execute shown different from sequence herein or retouch The step of stating.
Fig. 1 is the method flow diagram of update list according to the ... of the embodiment of the present invention, as shown in Figure 1, this method includes as follows Step:
Step S102 obtains the first model set and the corresponding display list of the second model set, wherein the first model Collection is combined into model set to be shown, and the second model set is the model set for showing list and showing.
It should be noted that including multiple members in display list, each member corresponds to a data model, multiple members The set that corresponding data model is formed is model set.Wherein, each data model shows the data of corresponding member Information, for example, the title of the member, mark, head portrait path, presence, Permission Levels.In addition, display list in each at The data model of member shows that form is identical, i.e., the typesetting pattern of each corresponding control of member is phase in showing list With, it thereby may be ensured that any one element can directly be updated corresponding by the change of data model in display list Control need not re-create new control, that is, show first member in list data model and second member Data model is interchangeable, and after exchange, the corresponding control A of first member and the corresponding control B of second member can be carried out It is corresponding to change, so that display list shows updated data.
In addition it is also necessary to explanation, the second model set is the model corresponding to the member that display list is being shown Set, the first model set are model set to be shown, wherein client can be by the second mould of data pair in the first model set Data in type set are updated.
Step S104 modifies operation according to first the second model set of model set pair, changed as a result, its In, modification operation includes at least:Create operation, update operation, delete operation.
It should be noted that above-mentioned establishment operation, update operation and delete operation are all made of identical algorithm and realize, i.e., Above three process is unified for a process.Compared to the prior art in create operation with update operate for different operations and Speech, with the increase of number of members in display list, above three process, which is unified for a process, can't increase algorithm Time complexity, and the time complexity of algorithm is made to be maintained at O (n) ranks, to reduce the burden for refreshing interface.
Step S106 is updated display list according to modification result.
It is the number to bottom it should be noted that being modified operation according to first the second model set of model set pair According to the update of model, after the update for the data model for completing bottom, display is being arranged according to updated data model Control in table is updated, and to reduce the refreshing frequency to showing list, is especially needing newer data model It is a fairly large number of in the case of, can effectively improve the efficiency at batch refresh interface.
Based on scheme defined by above-mentioned steps S102 to step S106, it can know, by obtaining the first model set And then the second corresponding display list of model set is modified behaviour according to first the second model set of model set pair Make, changed as a result, and according to modification result to display list be updated, wherein the first model set be it is to be shown Model set, the second model set are the model set for showing list and showing, modification operation includes at least:Establishment operation, Update operation, delete operation.
It is easily noted that, is realized using identical algorithm due to creating operation, update operation and delete operation, with The increase of number of members in display list, the time complexity of algorithm can't increase, and make the time complexity of algorithm O (n) ranks are maintained at, to reduce the burden for refreshing interface, improve the stability of operating system.
As shown in the above, the method for update list provided herein, which can reach to simplify, creates and refreshes display The mode of list reduces the purpose that change shows the time of list, to realize the technology effect for the refreshing efficiency for improving interface Fruit, and then less efficient technical problem is refreshed at the interface solved caused by the larger data of batch refresh data volume.
In a kind of optional embodiment, before obtaining the corresponding display list of the second model set, need to second Data model in model set carries out data conversion, and the specific method is as follows:
Step S1080 obtains the second data model in the second model set in client, wherein the second data mould Type is stored in the first container, and the first container stores data in the form of tables of data;
Second data model is copied in second container and is stored, wherein second container is with y-bend by step S1082 The form of tree stores data.
It should be noted that since (for example, list forms) stores data to the first container in the form of tables of data, from the It is only capable of sequential access data when accessing data in one container, the efficiency for accessing data is relatively low, and is deposited in the form of binary tree Access according to when be not sequential access data, therefore, the second data model is converted into binary tree with the storage form of tables of data Storage form, the access rate of data can be improved, and then improve matching effect of first model set with the second model set Rate.
In addition it is also necessary to explanation, obtains the second data model from the caching of client first, if client Inquiry then inquires the second data model less than the second data model from the data of client in caching.
It should be noted that in a kind of optional embodiment, carried out according to first the second model set of model set pair Modification operation is changed as a result, main includes the operation of the establishment to the second data model, update operation and delete operation.
In a kind of optional embodiment, when being updated operation to the second data model, first, the first Models Sets are compared The second data model in the first data model and the second model set in conjunction, obtains comparing result, then in comparing result In the case of indicating that the first data model and the second data model have differences, the second data mould is updated according to the first data model Type.For example, the presence of member is online, and the second data model corresponding with the first data model in the first data model The presence of middle member is offline, then can determine that the first data model has differences with the second data model, at this point, to second The presence of member is updated in data model, is updated to online.
In a kind of optional embodiment, when carrying out delete operation to the second data model, first, the first Models Sets are compared The second data model in the first data model and the second model set in conjunction, obtains comparing result, then in comparing result In the case of indicating that the first model set does not include the second data model, the second data model in the second model set is deleted. For example, including the data model of member Zhang San in the second model set, and the number of member Zhang San is not included in the first model set According to model, then the data model for including member Zhang San in the second model set will be deleted.
In a kind of optional embodiment, when carrying out creating operation to the second data model, first, the first Models Sets are compared The second data model in the first data model and the second model set in conjunction, obtains comparing result, then in comparing result In the case of indicating that the second model set does not include the first data model, increase by the first data model in the second model set. For example, include the data model of member Li Si in the first data acquisition system, and in the second data set and not comprising member Li Si Data model then creates data model in the second data set for member Li Si.
It should be noted that after completing the operation of the modification to the second model set, need to be deposited second container The updated model set of storage carries out data conversion, so that updated data can be shown in showing list.Specifically such as Under:
Step S1040, according to the second model set in modification result update second container;
Step S1042, according to the second model set in the second model set update the first container in second container;
Step S1044 is ranked up the data model of updated second model set according to preset rules, is arranged Sequence result, wherein preset rules are to show the ordering rule of the data model in list.
Specifically, after the second data model in obtaining updated second model set, by updated second Data model is updated in second container, while deleting the second data model before the update stored in the first container, and is made The second data model in the first container is updated with the second data model in second container, while to the data in the first container Model is ranked up.It is wherein, identical as the ordering rule in display list to the ordering rule of the data model in the first container, For example, the ordering rule in display list is to be arranged according to the initial of member Name, then the data mould in the first container Type is also arranged according to the initial of member Name.
Show that the process of list is in different threads it should be noted that updating the data the process of model and updating, Therefore, the memory time that update shows the thread of list will not be occupied by updating the data model, so as to effectively avoid display from arranging Caton phenomenon when table refreshes.In addition, the sequence for creating operation, update operation and delete operation can be according to actual use situation Sets itself does not limit herein.
In a kind of optional embodiment, Fig. 2 shows a kind of optional flow charts for updating the data model.Specifically, First, client is from the second data model for obtaining the second model set in caching or in database, and by the second data mould Type is converted to the storage form of binary tree.Then, to being traversed in the first model set, is obtained from the first model set One data model, and be compared with the second data model in second container, if the two differs, it is determined that the second data Model needs to update, and is updated at this time according to first the second data model of data model pair;If the two is identical, it is determined that the Two data models need not update, and then determine the need for deleting the second data model again, wherein can be by determining the first mould There is no the second data models in type set to delete the second data model.If it is determined that the second data model need not also be deleted It removes, then further determines whether to need to create new data model in the second model set, wherein can be by judging the second mould Determine whether to create the first data model with the presence or absence of the first data model in type set.Then it is completed by changing iterator Current iteration, until all data models in the first model set of traversal.At this point, before deleting the update that the first container stores The second model set, and the second model set stored in second container is updated into the first container, and in the first container Data model is ranked up.So far, the update to data model is just completed.
It, can be according to modification result to aobvious after completing to the update of data model in a kind of optional embodiment Show that list is updated, is as follows:
Step S1060 is updated the display control in display list according to modification result;
Step S1062 updates according to updated display control and shows list.
It should be noted that including to showing that the update of list operates:It creates control, update control and deletes control three A operation.
In a kind of optional embodiment, when carrying out creating operation to display control, first, obtain each in display list Second index position of data model in the first index position and the first container of data model, if being not present in display list With the second index position, then display control corresponding with the second index position is created.For example, the of the data model of the first container Two index positions are 100, and show that there is no the display controls that index position is 100 in list, then create in showing list The display control that index position is 100.
In a kind of optional embodiment, when being updated operation to display control, first, obtains and show in list each Second index position of data model in the first index position and the first container of data model.If show list in exist with The corresponding data model of second index position, and the corresponding data model of the first index position is corresponding with the second index position Data model is different, then updates the corresponding display control of the first index position according to the corresponding data model of the second index position Show content.For example, the grade for the data model that index position is 100 in the first container is B grades, and show index bit in list The grade for being set to 100 data model is C grades, then will show that the grade in list shown by control of the index position for 100 is repaiied It is changed to C grades.
In a kind of optional embodiment, when carrying out delete operation to display control, first, obtains and show data in list Second quantity of data model in the first quantity and the first container of model;If the first quantity is more than the second quantity, obtain The difference of first quantity and the second quantity, and the display control shown in list is deleted according to difference.For example, in display list Number of members is 100, and the number of members in the first container is 70, then 30 are deleted since the end of display list shows Show control, and display list is updated.
It should be noted that can be according to reality to the sequence of the establishment operation of display control, update operation and delete operation Border service condition sets itself, does not limit herein.
In a kind of optional embodiment, Fig. 3 shows that a kind of optional update shows the flow chart of list.Specifically, The second model set is obtained, and the second model set is traversed, the second data model is obtained from the second model set.So Judge at same index location afterwards, show with the presence or absence of display control in list, control is shown if it does not exist, then creating, it is no Then further whether the corresponding data model of display control at comparison same index location and the second data model are identical.If The two differs, then updates the display content of display control;If the two is identical, this is completed by change iterator and is changed Generation, until all data models in the second model set of traversal.At this point, if showing that the quantity of control is more than in display list The quantity of data model in second model set then deletes extra display control since the end of display list.So far, just Complete the update to showing list.
In addition it is also necessary to explanation, when creating model data for the first time, client, which does not refresh actively, shows list not Visible area.And when showing that the display control of list is refreshed, client can update the mark of display control, and refreshing can It is region.When user shows list by mouse rollovers, refresh list visible area again.
Embodiment 2
According to embodiments of the present invention, a kind of device embodiment of update list is additionally provided, wherein Fig. 4 is according to this hair The apparatus structure schematic diagram of the update list of bright embodiment, as shown in figure 4, the device includes:Acquisition module 401, modified module 403 and update module 405.
Wherein, acquisition module 401, for obtaining the first model set and the corresponding display list of the second model set, Wherein, the first model set is model set to be shown, and the second model set is the model set for showing list and showing; Modified module 403 obtains modification result for modifying operation according to first the second model set of model set pair, wherein Modification operation includes at least:Increase operation, update operation, delete operation;Update module 405 is used for according to modification result to aobvious Show that list is updated.
It should be noted that above-mentioned acquisition module 401, modified module 403 and update module 405 correspond to embodiment 1 In step S102 to step S106, the example and application scenarios that three modules and corresponding step are realized be identical but unlimited In 1 disclosure of that of above-described embodiment.
In a kind of optional embodiment, the device for updating list further includes:First acquisition module and memory module.Its In, the first acquisition module, for obtaining the second data model in the second model set in client, wherein the second data Model is stored in the first container, and the first container stores data in the form of tables of data;Memory module is used for the second data mould Type is copied in second container and is stored, wherein second container stores data in the form of binary tree.
It should be noted that above-mentioned first acquisition module and memory module correspond to the step S1080 in embodiment 1 extremely Step S1082, two modules are identical as example and application scenarios that corresponding step is realized, but are not limited to the above embodiments 1 Disclosure of that.
In a kind of optional embodiment, modified module includes:First comparison module and the first update module.Wherein, First comparison module, for comparing the second data mould in the first data model and the second model set in the first model set Type obtains comparing result;First update module, for indicating that the first data model and the second data model exist in comparing result In the case of difference, the second data model is updated according to the first data model.
In a kind of optional embodiment, modified module includes:Second comparison module and the second update module.Wherein, Second comparison module, for comparing the second data mould in the first data model and the second model set in the first model set Type obtains comparing result;Second update module, for indicating that the first model set does not include the second data model in comparing result In the case of, delete the second data model in the second model set.
In a kind of optional embodiment, modified module includes:Third comparison module and third update module.Wherein, Third comparison module, for comparing the second data mould in the first data model and the second model set in the first model set Type obtains comparing result;Third update module, for indicating that the second model set does not include the first data model in comparing result In the case of, increase by the first data model in the second model set.
In a kind of optional embodiment, the device for updating list further includes:4th update module, the 5th update module with And sorting module.Wherein, the 4th update module, for according to the second model set in modification result update second container;The Five update modules, for according to the second model set in the second model set update the first container in second container;Sequence Module is ranked up according to preset rules for the data model to updated second model set, obtains ranking results, In, preset rules are to show the ordering rule of the data model in list.
It should be noted that above-mentioned 4th update module, the 5th update module and sorting module correspond in embodiment 1 Step S1040 to step S1044, the example and application scenarios that three modules and corresponding step are realized be identical but unlimited In 1 disclosure of that of above-described embodiment.
In a kind of optional embodiment, update module includes:6th update module and the 7th update module.Wherein, 6th update module, for being updated to the display control in display list according to modification result;7th update module, is used for It is updated according to updated display control and shows list.
It should be noted that above-mentioned 6th update module and the 7th update module correspond to the step in embodiment 1 S1060 to step S1062, two modules are identical as example and application scenarios that corresponding step is realized, but are not limited to above-mentioned 1 disclosure of that of embodiment.
In a kind of optional embodiment, the 6th update module includes:Second acquisition module and creation module.Wherein, Second acquisition module is used to obtain in display list data mould in each the first index position of data model and the first container Second index position of type;Creation module, if being not present in list and the second index position, establishment and the second rope for showing Draw the corresponding display control in position.
In a kind of optional embodiment, the 6th update module includes:Third acquisition module and the 8th update module.Its In, third acquisition module is counted for obtaining in display list in the first index position of each data model and the first container According to the second index position of model;8th update module, if there is number corresponding with the second index position in list for showing According to model, and the corresponding data model of the first index position data model corresponding from the second index position is different, then basis The corresponding data model of second index position updates the display content of the corresponding display control of the first index position.
In a kind of optional embodiment, the 6th update module includes:4th acquisition module and processing module.Wherein, 4th acquisition module is used to obtain in display list second of data model in the first quantity and the first container of data model Quantity;Processing module obtains the difference of the first quantity and the second quantity, and root if being more than the second quantity for the first quantity The display control shown in list is deleted according to difference.
Embodiment 3
According to embodiments of the present invention, a kind of terminal embodiment of update list is additionally provided, wherein the terminal includes:It is aobvious Show device and processor.
In a kind of optional embodiment, processor runs program, wherein for being exported from display when program is run Data execute following processing step:Obtain the first model set and the corresponding display list of the second model set, wherein first Model set is model set to be shown, and the second model set is the model set for showing list and showing;According to first The second model set of model set pair is modified operation, and modification result is obtained, wherein modification operation including at least:Increase behaviour Make, update operates, delete operation;Display list is updated according to modification result.
In a kind of optional embodiment, processor be additionally operable to obtain the corresponding display list of the second model set it Before, the second data model in the second model set in client is obtained, and the second data model is copied into second container In stored, wherein the second data model is stored in the first container, and the first container stores data in the form of tables of data, Second container stores data in the form of binary tree.
In a kind of optional embodiment, processor is additionally operable to the first data model and the in the first model set of comparison The second data model in two model sets, obtains comparing result, wherein indicates the first data model and second in comparing result In the case that data model has differences, the second data model is updated according to the first data model.
In a kind of optional embodiment, processor is additionally operable to the first data model and the in the first model set of comparison The second data model in two model sets, obtains comparing result, wherein indicates that the first model set does not include in comparing result In the case of second data model, the second data model in the second model set is deleted.
In a kind of optional embodiment, processor is additionally operable to the first data model and the in the first model set of comparison The second data model in two model sets, obtains comparing result, wherein indicates that the second model set does not include in comparing result In the case of first data model, increase by the first data model in the second model set.
In a kind of optional embodiment, processor is additionally operable to carry out according to first the second model set of model set pair Modification operation, after obtaining modification result, according to the second model set in modification result update second container, and according to second The second model set in the second model set update the first container in container, then to updated second model set Data model is ranked up according to preset rules, obtains ranking results, wherein preset rules are the data model shown in list Ordering rule.
In a kind of optional embodiment, processor be additionally operable to according to modification result to display list in display control into Row update, and updated according to updated display control and show list.
In a kind of optional embodiment, processor is additionally operable to obtain the first index for showing each data model in list Second index position of data model in position and the first container, wherein if being not present and the second index bit in display list It sets, then creates display control corresponding with the second index position.
In a kind of optional embodiment, processor is additionally operable to obtain the first index for showing each data model in list Second index position of data model in position and the first container, wherein if existing and the second index position in display list Corresponding data model, and the corresponding data model of the first index position data model corresponding with the second index position is not Together, then the display content of the corresponding display control of the first index position is updated according to the corresponding data model of the second index position.
In a kind of optional embodiment, processor be additionally operable to obtain show list in data model the first quantity and Second quantity of data model in the first container, wherein if the first quantity is more than the second quantity, obtain the first quantity and second The difference of quantity, and the display control shown in list is deleted according to difference.
Embodiment 4
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of storage medium, which includes storage Program, wherein the method that program executes the update list in embodiment 1.
Embodiment 5
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processor, which is used to run program, In, the method for updating list in embodiment 1 is executed when program is run.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (14)

1. a kind of method of update list, which is characterized in that including:
Obtain the first model set and the corresponding display list of the second model set, wherein first model set is to wait for The model set of display, second model set are the model set that the display list is being shown;
It is modified operation to second model set according to first model set, obtains modification result, wherein described Modification operation includes at least:Create operation, update operation, delete operation;
The display list is updated according to the modification result.
2. according to the method described in claim 1, it is characterized in that, obtain the corresponding display list of the second model set it Before, the method further includes:
Obtain the second data model in second model set in client, wherein the second data model storage In the first container, the first container stores data in the form of tables of data;
Second data model is copied in second container and is stored, wherein the second container is with the shape of binary tree Formula stores data.
3. according to the method described in claim 2, it is characterized in that, according to first model set to second Models Sets Conjunction is modified operation, is changed as a result, including:
The first data model in first model set and the second data model in second model set are compared, is obtained To comparing result;
In the case where the comparing result indicates that first data model has differences with second data model, according to First data model updates second data model.
4. according to the method described in claim 2, it is characterized in that, according to first model set to second Models Sets Conjunction is modified operation, is changed as a result, including:
The first data model in first model set and the second data model in second model set are compared, is obtained To comparing result;
In the case where the comparing result indicates that first model set does not include second data model, described in deletion The second data model in second model set.
5. according to the method described in claim 2, it is characterized in that, according to first model set to second Models Sets Conjunction is modified operation, is changed as a result, including:
The first data model in first model set and the second data model in second model set are compared, is obtained To comparing result;
In the case where the comparing result indicates that second model set does not include first data model, described the Increase by first data model in two model sets.
6. the method according to any one of claim 3 to 5, which is characterized in that according to first model set It modifies operation to second model set, after obtaining modification result, the method further includes:
The second model set in the second container is updated according to the modification result;
The second model set in the first container is updated according to the second model set in the second container;
The data model of updated second model set is ranked up according to preset rules, obtains ranking results, wherein institute State the ordering rule that preset rules are the data model in the display list.
7. according to the method described in claim 6, it is characterized in that, being carried out more to the display list according to the modification result Newly, including:
The display control in the display list is updated according to the modification result;
The display list is updated according to updated display control.
8. the method according to the description of claim 7 is characterized in that according to the modification result to aobvious in the display list Show that control is updated, including:
Obtain data model in the first index position of each data model in the display list and the first container Second index position;
If in the display list there is no with second index position, create it is corresponding with second index position shows Show control.
9. the method according to the description of claim 7 is characterized in that according to the modification result to aobvious in the display list Show that control is updated, including:
Obtain data model in the first index position of each data model in the display list and the first container Second index position;
If there is data model corresponding with second index position in the display list, and first index position Corresponding data model data model corresponding from second index position is different, then is corresponded to according to second index position Data model update first index position it is corresponding display control display content.
10. according to the method described in claim 9, it is characterized in that, according to the modification result in the display list Display control is updated, including:
Obtain the second quantity of data model in the first quantity and the first container of data model in the display list;
If first quantity is more than second quantity, the difference of first quantity and second quantity is obtained, and The display control in the display list is deleted according to the difference.
11. a kind of device of update list, which is characterized in that including:
Acquisition module, for obtaining the first model set and the corresponding display list of the second model set, wherein described first Model set is model set to be shown, and second model set is the model set that the display list is being shown;
Modified module is changed for being modified operation to second model set according to first model set As a result, wherein the modification operation includes at least:Increase operation, update operation, delete operation;
Update module, for being updated to the display list according to the modification result.
12. a kind of terminal of update list, which is characterized in that including:
Display;
Processor, the processor run program, wherein described program holds the data exported from the display when running The following processing step of row:
Obtain the first model set and the corresponding display list of the second model set, wherein first model set is to wait for The model set of display, second model set are the model set that the display list is being shown;
It is modified operation to second model set according to first model set, obtains modification result, wherein described Modification operation includes at least:Increase operation, update operation, delete operation;
The display list is updated according to the modification result.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution The method that profit requires the update list described in any one of 1 to 10.
14. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run The method that profit requires the update list described in any one of 1 to 10.
CN201810326103.5A 2018-04-12 2018-04-12 Method, device and terminal for updating list Active CN108536834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810326103.5A CN108536834B (en) 2018-04-12 2018-04-12 Method, device and terminal for updating list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810326103.5A CN108536834B (en) 2018-04-12 2018-04-12 Method, device and terminal for updating list

Publications (2)

Publication Number Publication Date
CN108536834A true CN108536834A (en) 2018-09-14
CN108536834B CN108536834B (en) 2021-04-27

Family

ID=63481007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810326103.5A Active CN108536834B (en) 2018-04-12 2018-04-12 Method, device and terminal for updating list

Country Status (1)

Country Link
CN (1) CN108536834B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109499066A (en) * 2018-09-21 2019-03-22 苏州蜗牛数字科技股份有限公司 A kind of method of the variable field scape conservation of matter
CN109558408A (en) * 2018-11-27 2019-04-02 北京微播视界科技有限公司 Update method, apparatus, electronic equipment and the readable storage medium storing program for executing of list
CN109669944A (en) * 2018-11-30 2019-04-23 东软集团股份有限公司 List amending method, device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5837986A (en) * 1990-01-05 1998-11-17 Symbol Technologies, Inc. Modification of software files in a microprocessor-controlled device via two-dimensional bar code symbols
CN101399785A (en) * 2008-10-16 2009-04-01 腾讯科技(深圳)有限公司 Buddy list exhibition system and method for IM platform
CN102236547A (en) * 2010-05-06 2011-11-09 蒋斌 Control method and device for automatically classifying chatting friends in chatting tool
CN102624650A (en) * 2012-04-16 2012-08-01 腾讯科技(深圳)有限公司 Discussion group creating method, and communication method, server and system based on discussion group
CN103513977A (en) * 2012-06-29 2014-01-15 腾讯科技(深圳)有限公司 Display method and device for group member list
CN104156245A (en) * 2014-08-06 2014-11-19 小米科技有限责任公司 List updating method and device
CN104462209A (en) * 2014-11-03 2015-03-25 北京微车一族信息技术发展有限公司 Method for displaying friend information on mobile terminal
CN104904163A (en) * 2012-10-05 2015-09-09 甲骨文国际公司 Method and system for communicating within a messaging architecture using a structured data object
CN105302809A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Group user level association method and system
CN106161203A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Group message processing method and processing device
CN106294523A (en) * 2015-06-24 2017-01-04 华平智慧信息技术(深圳)有限公司 A kind of list control and method showing big data item based on finite list item

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5837986A (en) * 1990-01-05 1998-11-17 Symbol Technologies, Inc. Modification of software files in a microprocessor-controlled device via two-dimensional bar code symbols
CN101399785A (en) * 2008-10-16 2009-04-01 腾讯科技(深圳)有限公司 Buddy list exhibition system and method for IM platform
CN102236547A (en) * 2010-05-06 2011-11-09 蒋斌 Control method and device for automatically classifying chatting friends in chatting tool
CN102624650A (en) * 2012-04-16 2012-08-01 腾讯科技(深圳)有限公司 Discussion group creating method, and communication method, server and system based on discussion group
CN103513977A (en) * 2012-06-29 2014-01-15 腾讯科技(深圳)有限公司 Display method and device for group member list
CN104904163A (en) * 2012-10-05 2015-09-09 甲骨文国际公司 Method and system for communicating within a messaging architecture using a structured data object
CN105302809A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Group user level association method and system
CN104156245A (en) * 2014-08-06 2014-11-19 小米科技有限责任公司 List updating method and device
CN104462209A (en) * 2014-11-03 2015-03-25 北京微车一族信息技术发展有限公司 Method for displaying friend information on mobile terminal
CN106161203A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Group message processing method and processing device
CN106294523A (en) * 2015-06-24 2017-01-04 华平智慧信息技术(深圳)有限公司 A kind of list control and method showing big data item based on finite list item

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109499066A (en) * 2018-09-21 2019-03-22 苏州蜗牛数字科技股份有限公司 A kind of method of the variable field scape conservation of matter
CN109558408A (en) * 2018-11-27 2019-04-02 北京微播视界科技有限公司 Update method, apparatus, electronic equipment and the readable storage medium storing program for executing of list
CN109669944A (en) * 2018-11-30 2019-04-23 东软集团股份有限公司 List amending method, device, storage medium and electronic equipment
CN109669944B (en) * 2018-11-30 2021-02-05 东软集团股份有限公司 Form modification method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108536834B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
US11429264B1 (en) Systems and methods for visually building an object model of database tables
US20100235771A1 (en) System And Method For Drag-And-Drop Graph Building With Live Feedback
CN103761276B (en) Methods of exhibiting and device that a kind of tree structure data compares
EP1094422A2 (en) Systems and methods for ordering categorical attributes to better visualize multidimensional data
US9953069B2 (en) Business intelligence document
US6957206B2 (en) Computer system and method with adaptive N-level structures for automated generation of program solutions based on rules input by subject matter experts
CN108536834A (en) Update the method, apparatus and terminal of list
CN113366431B (en) Change set conflict variant base
US8707200B2 (en) Object browser with proximity sorting
Van Ham et al. Interactive visualization of state transition systems
US6697087B1 (en) Updating diagrams of dynamic representational Models of dynamic systems
CN112130851B (en) Modeling method for artificial intelligence, electronic equipment and storage medium
CN108140049A (en) The parallel batch processing of data structure based on tree
CN116401407A (en) Node attribute configuration method, device, equipment and storage medium of mind map
Lipp et al. Local editing of procedural models
US5720023A (en) Appartus and method for storing diagram data
Forman et al. Projections of the Aldous chain on binary trees: Intertwining and consistency
CN111475511A (en) Data storage method, data access method, data storage device, data access device and data access equipment based on tree structure
CN111652463A (en) APS (active pixel System) recursive system, method and equipment based on fractal self-similarity principle
CN101216845A (en) Database automatic classification method
US7917535B1 (en) Task membership and task masks
CN108228896A (en) A kind of missing data complementing method and device based on density
CN107766519A (en) A kind of method of visual configuration data structure
WO2023246165A1 (en) Data asset display method and apparatus, and device and storage medium
CN108959584A (en) A kind of method and device of the processing diagram data based on community structure

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