CN104965737B - The acquisition methods and device updated the data - Google Patents
The acquisition methods and device updated the data Download PDFInfo
- Publication number
- CN104965737B CN104965737B CN201510359544.1A CN201510359544A CN104965737B CN 104965737 B CN104965737 B CN 104965737B CN 201510359544 A CN201510359544 A CN 201510359544A CN 104965737 B CN104965737 B CN 104965737B
- Authority
- CN
- China
- Prior art keywords
- data
- instruction set
- target instruction
- target
- update
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 239000012141 concentrate Substances 0.000 claims abstract description 25
- 230000009471 action Effects 0.000 claims abstract description 18
- 230000004048 modification Effects 0.000 description 13
- 238000012986 modification Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 5
- 239000010931 gold Substances 0.000 description 5
- 229910052737 gold Inorganic materials 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 239000011800 void material Substances 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a kind of acquisition methods and device updated the data, belongs to field of computer technology.Including:When detect the presence of update the data when, call instruction concentrates default data update interface to store corresponding all update the data of instruction set into specified list;When the operation requests of receiving terminal, at least one target instruction set is determined according to the action type carried in operation requests;Obtain that each target instruction set is corresponding to be updated the data from the corresponding specified list of each target instruction set.By concentrating preset data more new interface in all instructions, and after data update, all update the data is stored into specified list by the data update interface in instruction set, so that obtain either objective instruction set it is corresponding it is all update the data when, can directly it be obtained from specified list, each target instruction target word need not be accessed and concentrate all variables for representing to update the data, not only obtain and update the data easy to operate, and the speed for obtaining and updating the data can be improved.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of acquisition methods and device updated the data.
Background technology
With developing rapidly for computer technology, there are more and more application programs, such as game application.It is logical
Often, terminal is during application program is run, can with trigger the server to the corresponding data of each instruction set of application program into
Row processing, so as to fulfill the difference in functionality of application program.Wherein, the corresponding data of each instruction set of server side may be with
Terminal performs a certain operation and updates.For example, when application program is game application, if terminal performs one
Using the operation of gold coin purchase stage property, then managing the corresponding data for representing gold coin quantity of instruction set of gold coin quantity can be reduced,
Managing the corresponding data for representing stage property quantity of instruction set of stage property quantity can increase.That is, each instruction of application program
Collecting corresponding data can in real time increase, be deleted or modified and updated the data.In order in real time by the situation of change of data
Terminal is fed back to, server, which needs first to obtain, to be updated the data.
Include representing the variable updated the data in correlation technique, in each instruction set.When the corresponding number of any instruction set
During according to updating, server will update the data the storage location stored to pointed by the variable for representing to update the data.In this base
On plinth, server obtain update the data when, it is necessary to travel through all variables for representing to update the data in the instruction set, and according to this
Storage location in instruction set pointed by all variables obtains that the instruction set is corresponding to be updated the data.
In the implementation of the present invention, inventor has found that correlation technique has at least the following problems:
It is different due to representing the variable updated the data in each instruction set, and may include in each instruction set multiple
Represent the variable updated the data.At this time, when existing in the corresponding data of multiple instruction collection, when updating the data, server needs to divide
All variables for representing to update the data in each instruction set are not accessed, and further according to the variable institute for each representing to update the data
The storage location of direction is obtained and updated the data, and is not only obtained and is updated the data cumbersome, but also obtains the speed updated the data
It is slow, and then it is inefficient to cause acquisition to update the data.
The content of the invention
In order to solve problem of the prior art, an embodiment of the present invention provides a kind of acquisition methods and dress updated the data
Put.The technical solution is as follows:
First aspect, there is provided a kind of acquisition methods updated the data, the described method includes:
When detecting in the corresponding data of any instruction set in the presence of updating the data, described instruction is called to concentrate default number
According to more new interface, corresponding all update the data of described instruction collection is stored into the corresponding specified list of described instruction collection, its
In, each instruction set is preset with data update interface;
When the operation requests of receiving terminal, at least one mesh is determined according to the action type carried in the operation requests
Mark instruction set;
From the corresponding specified list of each target instruction set, obtain that each target instruction set is corresponding to be updated the data.
With reference to first aspect, it is described from each target instruction set in the first possible implementation of first aspect
In corresponding specified list, obtain that each target instruction set is corresponding to be updated the data, including:
Call each target instruction target word concentration is default to update the data acquisition interface, it is corresponding from each target instruction set
Obtain that each target instruction set is corresponding to be updated the data in specified list, wherein, all instructions collection is preset with to update the data and obtains
Take interface.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect
In, it is described to call each target instruction target word concentration is default to update the data acquisition interface, it is corresponding from each target instruction set
Obtain that each target instruction set is corresponding to be updated the data in specified list, including:
The specifying variable concentrated according to each target instruction target word, determines to whether there is in the corresponding data of either objective instruction set
Update the data, the specifying variable is concentrated whether there is for determine instruction and updated the data;
When in the corresponding data of the target instruction set in the presence of updating the data, the target instruction target word is called to concentrate default
Acquisition interface is updated the data, the corresponding renewal of the target instruction set is obtained from the corresponding specified list of the target instruction set
Data.
With reference to first aspect, it is described from each target instruction set in the third possible implementation of first aspect
In corresponding specified list, after obtaining that each target instruction set is corresponding and updating the data, further include:
Corresponding all update the data of each target instruction set is packaged as a updated data package;
Each corresponding updated data package of target instruction set is sent to the terminal.
Second of possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect
In, it is described to call the target instruction target word concentration is default to update the data acquisition interface, specified from the target instruction set is corresponding
After obtaining that the target instruction set is corresponding in list and updating the data, further include:
Call the target instruction target word to concentrate default data dump interface, remove the corresponding specified row of the target instruction set
Updating the data in table.
Second aspect, there is provided a kind of acquisition device updated the data, described device include:
Memory module, for when detecting in the corresponding data of any instruction set in the presence of updating the data, calling the finger
Default data update interface is concentrated in order, by described instruction collection it is corresponding it is all update the data store it is corresponding to described instruction collection
In specified list, wherein, each instruction set is preset with data update interface;
Determining module, for when the operation requests of receiving terminal, according to the action type carried in the operation requests
Determine at least one target instruction set;
Acquisition module, corresponds to for from the corresponding specified list of each target instruction set, obtaining each target instruction set
Update the data.
With reference to second aspect, in the first possible implementation of second aspect, the acquisition module, for calling
Each target instruction target word concentration is default to update the data acquisition interface, is obtained from the corresponding specified list of each target instruction set
Take each target instruction set is corresponding to update the data, wherein, all instructions collection, which is preset with, updates the data acquisition interface.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect
In, the acquisition module includes:
Determination unit, for the specifying variable concentrated according to each target instruction target word, determines that either objective instruction set is corresponding
With the presence or absence of updating the data in data, the specifying variable is concentrated whether there is for determine instruction and updated the data;
Acquiring unit, for when in the corresponding data of the target instruction set in the presence of updating the data, calling the target
Default in instruction set to update the data acquisition interface, from the corresponding specified list of the target instruction set obtaining the target refers to
Order collection is corresponding to be updated the data.
With reference to second aspect, in the third possible implementation of second aspect, described device further includes:
Packetization module, for corresponding all update the data of each target instruction set to be packaged as a updated data package;
Sending module, for sending each corresponding updated data package of target instruction set to the terminal.
With reference to second of possible implementation of second aspect, in the 4th kind of possible implementation of second aspect
In, the acquisition module further includes:
Clearing cell, for calling the target instruction target word to concentrate default data dump interface, removes the target instruction target word
Collect updating the data in corresponding specified list.
The beneficial effect that technical solution provided in an embodiment of the present invention is brought is:
By concentrating preset data more new interface in all instructions, and updated in the corresponding data of any instruction set
Afterwards, corresponding all update the data of the instruction set is stored to the instruction set pair by the data update interface in the instruction set
In the specified list answered so that, can be directly from target instruction target word when all in obtaining either objective instruction set update the data
Collect and obtained in corresponding specified list, concentrate all variables for representing to update the data without accessing each target instruction target word, not only obtain
Take and update the data easy to operate, and can improve and obtain the speed that updates the data, and then improve the effect for obtaining and updating the data
Rate.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the implementation environment signal involved by a kind of acquisition methods updated the data that one embodiment of the invention provides
Figure;
Fig. 2 is a kind of acquisition methods flow chart updated the data that another embodiment of the present invention provides;
Fig. 3 is a kind of acquisition methods flow chart updated the data that another embodiment of the present invention provides;
Fig. 4 is a kind of process flow figure updated the data that another embodiment of the present invention provides;
Fig. 5 is a kind of structure diagram for acquisition device updated the data that another embodiment of the present invention provides;
Fig. 6 is a kind of structure diagram for server that another embodiment of the present invention provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
As shown in Figure 1, the implementation ring involved by it illustrates the acquisition methods provided in an embodiment of the present invention updated the data
Border schematic diagram.As shown in Figure 1, the implementation environment includes server 101 and terminal 102.Wherein, server 101 and terminal 102 are logical
Network connection is crossed, which can be wireless network, or cable network.
Application program is installed in terminal 102, includes realizing the instruction of each function of the application program on server 101
Collection.Terminal 102 can interact to complete the function that application program is provided with server 101.Specifically, terminal 102 exists
During running application program, meeting trigger the server 101 handles the corresponding data of each instruction set of application program, so that eventually
End can realize the function corresponding to the instruction set.Wherein, the corresponding data of each instruction set may update in real time.
In the embodiment of the present invention, after the corresponding data of each instruction set update, an embodiment of the present invention provides a kind of simple high
The method that the acquisition of effect updates the data.
Wherein, terminal 102 can be desktop computer, smart mobile phone, tablet computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency aspect 3) player, pocket computer on knee and wearable smart machine, such as Intelligent bracelet.
The acquisition methods each embodiment as described below specifically updated the data:
Implementation environment schematic diagram with reference to shown in Fig. 1, Fig. 2 are that the one kind provided according to an exemplary embodiment updates the data
Acquisition methods flow chart.Referring to Fig. 2, method flow provided in an embodiment of the present invention includes:
201st, when detecting in the corresponding data of any instruction set in the presence of updating the data, call instruction concentrates default number
According to more new interface, corresponding all update the data of instruction set is stored into the corresponding specified list of instruction set, wherein, each refer to
Order collection is preset with data update interface.
202nd, when the operation requests of receiving terminal, at least one mesh is determined according to the action type carried in operation requests
Mark instruction set.
203rd, from the corresponding specified list of each target instruction set, the corresponding renewal number of each target instruction set is obtained
According to.
Method provided in an embodiment of the present invention, by concentrating preset data more new interface in all instructions, and in any finger
Order collects after corresponding data update, by the data update interface in the instruction set by the corresponding all renewals of the instruction set
Data are stored into the corresponding specified list of the instruction set so that all in either objective instruction set is obtained update the data
When, it can directly be obtained from the corresponding specified list of target instruction set, expression renewal is concentrated without accessing each target instruction target word
All variables of data, not only obtain and update the data easy to operate, but also can improve and obtain the speed that updates the data, and then
Improve the efficiency for obtaining and updating the data.
In another embodiment, from the corresponding specified list of each target instruction set, each target instruction set is obtained
It is corresponding to update the data, including:
Call each target instruction target word concentration is default to update the data acquisition interface, specified from each target instruction set is corresponding
Obtain that each target instruction set is corresponding to be updated the data in list, wherein, all instructions collection, which is preset with, to be updated the data acquisition and connects
Mouthful.
In another embodiment, call each target instruction target word concentration is default to update the data acquisition interface, from each mesh
Obtain that each target instruction set is corresponding to be updated the data in the corresponding specified list of mark instruction set, including:
The specifying variable concentrated according to each target instruction target word, determines to whether there is in the corresponding data of either objective instruction set
Update the data, specifying variable is concentrated whether there is for determine instruction and updated the data;
It is default in invocation target instruction set to update the data when in the corresponding data of target instruction set in the presence of updating the data
Interface is obtained, obtains that target instruction set is corresponding updates the data from the corresponding specified list of target instruction set.
In another embodiment, from the corresponding specified list of each target instruction set, each target instruction set is obtained
It is corresponding update the data after, further include:
Corresponding all update the data of each target instruction set is packaged as a updated data package;
The corresponding updated data package of each target instruction set is sent to terminal.
In another embodiment, it is default in invocation target instruction set to update the data acquisition interface, from target instruction set
In corresponding specified list obtain target instruction set is corresponding update the data after, further include:
Default data dump interface in invocation target instruction set, is removed in the corresponding specified list of target instruction set more
New data.
The content of embodiment corresponding to implementation environment schematic diagram and Fig. 2 with reference to shown in Fig. 1, Fig. 3 is exemplary according to one
A kind of acquisition methods flow chart updated the data that embodiment provides.Referring to Fig. 3, method flow bag provided in an embodiment of the present invention
Include:
301st, it is pre- in server calls instruction set when detecting in the corresponding data of any instruction set in the presence of updating the data
If data update interface, corresponding all update the data of instruction set is stored into the corresponding specified list of instruction set, wherein,
Each instruction set is preset with data update interface.
In the embodiment of the present invention, each instruction set of application program is preset with data update interface, data update interface
For all storing corresponding all update the data of the instruction set into the corresponding specified list of the instruction set.Wherein, instruction set
Corresponding data refer to that server performs data handled during each instruction in the instruction set.In general, server can be advance
The storage location of the corresponding data of each instruction set is specified, corresponding preassigned this of specified list, that is, server of instruction set refers to
Order collects the storage location of corresponding data.In the embodiment of the present invention, for any instruction set, its corresponding specified list is used to deposit
Store up that the instruction set is corresponding all to be updated the data.That is, each instruction set it is corresponding it is all update the data can store to
In specified list, rather than store to the storage location pointed by each variable.With reference to the above, when any instruction set corresponds to
Data in exist when updating the data, can call it is default in the instruction set update the data interface, all are updated the data
Store into the corresponding specified list of the instruction set.
Wherein, polytype has been updated the data.For example, update the data including newly-increased data, delete data or modification data.
Data that newly-increased data refer to newly increase in the operational process of application program, delete data and refer to quilt in application program operational process
The data of deletion, modification data refer to the data changed in application program operational process.
Updated the data for the ease of differentiation is different types of, default data update interface can also wrap in each instruction set
Include multiple, and each data update interface is matched with each type of update the data.For example, counted when updating the data including newly-increased
According to, delete data or modification data when, three data update interfaces can be set, and respectively newly-increased data-interface, delete data
Interface and modification data-interface.Correspondingly, each instruction set can also correspond to multiple specified list, for example, working as updated data package
When including newly-increased data, deleting data or change data, three specified list can be set, respectively newly-increased data specified list,
Delete data specified list and modification data specified list.Newly-increased data specified list, delete data specified list and modification number
It is respectively used to store newly-increased data, delete data and change data according to specified list.
With reference to the above, for any instruction set, when existing in its corresponding data, when updating the data, server is being adjusted
With the more new interface of the preset data in the instruction set, all in the instruction set are updated the data store it is corresponding to the instruction set
During specified list, default newly-increased data-interface in the instruction set can be called, all newly-increased data are stored to the instruction
Collect corresponding newly-increased data specified list;Default deletion data-interface in the instruction set is called, all deletion data are deposited
Storage deletes data specified list to the instruction set is corresponding;Default modification data update interface in the instruction set is called, by institute
Some modification data store modification data specified list corresponding to the instruction set.
For the ease of being illustrated to default data update interface in any instruction set, an instruction set has been illustrated below
In the code for including preset data more new interface.
“void addUpdateChanged(ItemExt item)const;
void addAddChanged(ItemExt item)const;
void addDeleteChanged(ItemExt item)const;
mutable ItemChanged_changeds;”
Wherein, " addUpdateChanged " represents modification data-interface, and " addAddChanged " represents that newly-increased data connect
Mouthful, " addDeleteChanged " represents to delete data-interface;" ItemChanged_changeds " represents to update the data, including
Newly-increased data, delete data and modification data.The data structure of ItemChanged_changeds is as follows:
Wherein, " adds " represents newly-increased data list;" deletes " represents to delete data list;" updates " represents to repair
Change data list.When calling " addAddChanged ", all newly-increased data in instruction set are stored to " adds ";Work as calling
When " addDeleteChanged ", all deletion data in instruction set are stored to " deletes ";When calling " updates ",
All modifications data in instruction set are stored to " updates ".
, not only can be in order in each instruction set of maintenance and expansion by concentrating preset data more new interface in all instructions
Instruction, and develop instruction set easy to developer, and then coding rate and development efficiency can be improved.Due to each instruction
Concentrate default data update interface that often there is certain data format, therefore, stored more by default data-interface
New data often has unified data format, consequently facilitating server parses data.
302nd, when the operation requests of receiving terminal, server determines at least according to the action type carried in operation requests
One target instruction set.
During application program is run, each operation that terminal performs in the application, usually by service
Device sends operation requests to trigger.In order to make server determine that what operation is terminal will perform, behaviour can be carried in the operation requests
Make type.For example, when terminal performs register, triggering terminal is sent out to server after detecting that user selects to log in option
Operation requests are sent, the instruction for identifying that the operation is register is carried in the operation requests.
Wherein, when terminal performs different operations, meeting trigger the server carries out the data corresponding to different instruction set
Processing.In order to determine that the operation of terminal data corresponding to which instruction set are related, server needs to be determined according to action type
With the relevant at least one instruction set of the action type.The embodiment of the present invention determines the relevant instruction set of the operation carried out with terminal
Justice is target instruction set.
Specifically, server can pre-establish the mapping relations between each action type and corresponding instruction collection.Herein
On the basis of, for server when determining at least one target instruction set according to action type, can first be searched in mapping relations should
Action type, and using the corresponding all instructions collection of the action type as definite at least one target instruction set.
303rd, it is corresponding more to obtain each target instruction set from the corresponding specified list of each target instruction set for server
New data.
Specifically, in step 301, when existing in the corresponding data of any instruction set, when updating the data, server can incite somebody to action
All updating the data is stored into the corresponding specified list of the instruction set, and therefore, server is obtaining each target instruction set
It is corresponding when updating the data, it can obtain each target instruction set from the corresponding specified list of each target instruction set and correspond to
Update the data.
Specifically, server obtains each target instruction target word set pair from the corresponding specified list of each target instruction set
Answer when updating the data, the corresponding specified list of all target instruction sets can be traveled through, and determine either objective instruction set pair
It whether there is in the specified list answered and update the data.When in the corresponding specified list of the target instruction set in the presence of updating the data,
Obtain and update the data from the corresponding specified list of the target instruction set.The inquiry is carried out to all target instruction sets and is obtained
Extract operation, you can obtain that each target instruction set is corresponding to be updated the data.
Alternatively, updated the data for the ease of obtaining, server can default update the data be obtained in each instruction set
Take interface.For any instruction set, by this it is default update the data acquisition interface, can directly position to the instruction set and correspond to
Specified list, updated the data so as to fulfill being obtained from specified list.On this basis, server is from each target instruction target word
Collect in corresponding specified list, when obtaining that each target instruction set is corresponding to be updated the data, each target instruction set can be called
In it is default update the data acquisition interface, each target instruction target word set pair is obtained from the corresponding specified list of each target instruction set
That answers updates the data.
Specifically, an operation of terminal may correspond to multiple target instruction sets, some mesh are concentrated in these target instruction target words
May exist in the corresponding data of mark instruction set and update the data, and may be not present in the corresponding data of some target instruction sets
Update the data.It is directed to there is no the target instruction set updated the data, when acquisition updates the data, the instruction set can be ignored.
, can also be in each instruction concentrated setting in order to quickly determine with the presence or absence of updating the data in the corresponding data of any instruction set
Specifying variable, the specifying variable are concentrated whether there is for determine instruction and updated the data.
On this basis, server call each target instruction target word concentrate it is default update the data acquisition interface, from each
, can be first according to each mesh when obtaining that each target instruction set is corresponding to be updated the data in the corresponding specified list of target instruction set
The specifying variable in instruction set is marked, is determined in the corresponding data of either objective instruction set with the presence or absence of updating the data;When the target
In the presence of when updating the data in the corresponding data of instruction set, acquisition interface is updated the data in invocation target instruction set, is referred to from target
Order, which collects to obtain in corresponding specified list, to be updated the data.
, below will be with for the ease of understanding that above-mentioned each target instruction target word concentrates default update the data to obtain the content of interface
Illustrated exemplified by one section of code.Code is as follows:
Wherein, " LoadUpdatedDate " represents to update the data acquisition interface.Become in addition, m_isChange represents to specify
Amount.Specifically, m_isChange (false) can be represented to be not present in the corresponding data of the target instruction set and updated the data, m_
IsChange (true) can be represented to exist in the corresponding data of the target instruction set and updated the data.
304th, corresponding all update the data of each target instruction set is packaged as a updated data package, by each target
The corresponding updated data package of instruction set is sent to terminal.
Wherein, corresponding update the data of instruction set may be such that the content shown by terminal also updates.Should for example, working as
It is game application with program, terminal performs an operation using gold coin purchase stage property, then the operation can show terminal
The gold coin quantity shown is reduced, and makes the increase of stage property quantity.When the operation makes terminal side data also update, in order to make terminal
Can real-time synchronization this update the data, with real-time update terminal data, server can be corresponding more by each target instruction set
New data is sent to terminal.
Specifically, corresponding all update the data of each target instruction set can be packaged as one and updated the data by server
Bag, the corresponding updated data package of each target instruction set is sent to terminal.By by the corresponding renewal of each target instruction set
Data are packaged as a updated data package, it can be ensured that all update the data disposable transmission by each target instruction set is corresponding
It is not only convenient and efficient to terminal, but also disposably update easy to terminal that the target instruction set is corresponding all to be updated the data.
However, server can also respectively by got from the corresponding specified list of each target instruction set it is each more
New data is respectively sent to terminal.Corresponding update the data of each target instruction set is sent to the side of terminal on server
Formula, the embodiment of the present invention are not especially limited.
305th, default data dump interface is concentrated in each target instruction target word of server calls, removes each target instruction target word set pair
That answers updates the data, wherein, data dump interface is preset with each instruction set, data dump interface is used to remove specified row
Updating the data in table.
Alternatively, in the operational process of application program, data update many times may be carried out in each instruction set, when
Got and updated the data by 301 step 303 of above-mentioned steps, and to after updating the data and handling, for example, will get more
New data is sent to terminal, and server can remove that each target instruction set is corresponding to be updated the data.It is every having obtained every time
A target instruction target word concentrate it is all update the data after, all being updated the data by remove that the target instruction target word concentrates, it is ensured that next time
Updating the data of getting be it is brand-new update the data, and what is got updates the data the process updated the data with last acquisition
It is unrelated.
Specifically, data dump interface can be preset with each instruction set.For any instruction set, the instruction is called
The data dump interface of concentration can remove stored in the corresponding specified list of the instruction set all and update the data.It is basic herein
On, server, can be pre- by calling each target instruction target word to concentrate when removing that each target instruction set is corresponding to be updated the data
If data dump interface realize.
With reference to the code in above-mentioned steps 303, " ClearUpdateDate " represents data dump interface.
With reference to above-mentioned steps 301 to all the elements in step 305, another embodiment of the present invention provides a kind of renewal number
According to processing method.Fig. 4 is a kind of process flow figure updated the data that another embodiment of the present invention provides.Referring to Fig. 4,
The processing method updated the data includes:
401st, terminal to server sends operation requests, which carries action type.
402nd, after server receives the operation requests, at least one target instruction set is determined according to action type.
Step 401 is consistent with the principle of above-mentioned steps 302 with the principle of step 402, for details, reference can be made in above-mentioned steps 302
Content, details are not described herein again.
403rd, server travels through all target instruction sets, determines whether there is renewal in the corresponding data of either objective instruction set
Data;When existing in the corresponding data of the target instruction set, when updating the data, it is corresponding more that server obtains the target instruction set
New data.
The principle of the step is consistent with the principle of above-mentioned steps 303, for details, reference can be made to the content in above-mentioned steps 303, this
Place repeats no more.
404th, after all target instruction sets have been traveled through, server is corresponding more by each target instruction set got
New data is sent to terminal.
The principle of the step is consistent with the principle of above-mentioned steps 304, for details, reference can be made to the content in above-mentioned steps 304, this
Place repeats no more.
405th, each target instruction set of server removing is corresponding updates the data.
The principle of the step is consistent with the principle of above-mentioned steps 305, for details, reference can be made to the content in above-mentioned steps 305, this
Place repeats no more.
Method provided in an embodiment of the present invention, by concentrating preset data more new interface in all instructions, and in any finger
Order collects after corresponding data update, by the data update interface in the instruction set by the corresponding all renewals of the instruction set
Data are stored into the corresponding specified list of the instruction set so that all in either objective instruction set is obtained update the data
When, it can directly be obtained from the corresponding specified list of target instruction set, expression renewal is concentrated without accessing each target instruction target word
All variables of data, not only obtain and update the data easy to operate, but also can improve and obtain the speed that updates the data, and then
Improve the efficiency for obtaining and updating the data.
Fig. 5 is the structure diagram of the acquisition device updated the data provided according to an exemplary embodiment.The renewal
The acquisition device of data can be used for performing that any embodiment in embodiment corresponding to above-mentioned Fig. 2 to Fig. 4 provides updates the data
Acquisition methods.Referring to Fig. 5, which includes:
Memory module 501, for when detect in the corresponding data of any instruction set exist update the data when, call instruction
Default data update interface is concentrated, corresponding all update the data of instruction set is stored into specified list corresponding to instruction set
In, wherein, each instruction set is preset with data update interface;
Determining module 502, it is true according to the action type carried in operation requests for when the operation requests of receiving terminal
Fixed at least one target instruction set;
Acquisition module 503, for from the corresponding specified list of each target instruction set, obtaining each target instruction target word set pair
That answers updates the data.
Device provided in an embodiment of the present invention, by concentrating preset data more new interface in all instructions, and in any finger
Order collects after corresponding data update, by the data update interface in the instruction set by the corresponding all renewals of the instruction set
Data are stored into the corresponding specified list of the instruction set so that all in either objective instruction set is obtained update the data
When, it can directly be obtained from the corresponding specified list of target instruction set, expression renewal is concentrated without accessing each target instruction target word
All variables of data, not only obtain and update the data easy to operate, but also can improve and obtain the speed that updates the data, and then
Improve the efficiency for obtaining and updating the data.
In another embodiment, acquisition module 503, for calling each target instruction target word to concentrate default update the data to obtain
Interface is taken, obtains that each target instruction set is corresponding to be updated the data from the corresponding specified list of each target instruction set, wherein,
All instructions collection, which is preset with, updates the data acquisition interface.
In another embodiment, acquisition module 503 includes:
Determination unit, for the specifying variable concentrated according to each target instruction target word, determines that either objective instruction set is corresponding
With the presence or absence of updating the data in data, specifying variable is concentrated whether there is for determine instruction and updated the data;
Acquiring unit, for when exist in the corresponding data of target instruction set update the data when, in invocation target instruction set
It is default to update the data acquisition interface, the corresponding renewal number of target instruction set is obtained from the corresponding specified list of target instruction set
According to.
In another embodiment, the acquisition device updated the data further includes:
Packetization module, for corresponding all update the data of each target instruction set to be packaged as a updated data package;
Sending module, for sending the corresponding updated data package of each target instruction set to terminal.
In another embodiment, acquisition module 503 further includes:
Clearing cell, for default data dump interface in invocation target instruction set, it is corresponding to remove target instruction set
Updating the data in specified list.
Fig. 6 is a kind of structure diagram of server according to an exemplary embodiment.With reference to Fig. 6, server 600
Including processing component 622, it further comprises one or more processors, and as the memory money representated by memory 632
Source, can be by the instruction of the execution of processing component 622, such as application program for storing.The application program stored in memory 632
Can include it is one or more each correspond to the module of one group of instruction.In addition, processing component 622 is configured as holding
Row instruction, to perform above-mentioned Fig. 2 acquisition methods updated the data that any embodiment provides into embodiment illustrated in fig. 4.
Server 600 can also include a power supply module 626 and be configured as the power management of execute server 600, and one
A wired or wireless network interface 650 is configured as server 600 being connected to network, and input and output (I/O) interface
658.Server 600 can be operated based on the operating system for being stored in memory 632, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Wherein, one either more than one program storage in memory and be configured to by one or more than one
Processor performs, and the one or more programs include the instruction for being used for being operated below:
When detecting in the corresponding data of any instruction set in the presence of updating the data, call instruction concentrates default data more
New interface, corresponding all update the data of instruction set is stored into the corresponding specified list of instruction set, wherein, each instruction set
It is preset with data update interface;
When the operation requests of receiving terminal, determine that at least one target refers to according to the action type carried in operation requests
Order collection;
From the corresponding specified list of each target instruction set, obtain that each target instruction set is corresponding to be updated the data.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, in the memory of server, also comprising instructions for performing the following operations:From each
In the corresponding specified list of target instruction set, obtain that each target instruction set is corresponding to be updated the data, including:
Call each target instruction target word concentration is default to update the data acquisition interface, specified from each target instruction set is corresponding
Obtain that each target instruction set is corresponding to be updated the data in list, wherein, all instructions collection, which is preset with, to be updated the data acquisition and connects
Mouthful.
In the third the possible embodiment provided based on second of possible embodiment, server
In memory, also comprising instructions for performing the following operations:Call each target instruction target word concentration is default to update the data acquisition
Interface, obtains that each target instruction set is corresponding to be updated the data from the corresponding specified list of each target instruction set, including:
The specifying variable concentrated according to each target instruction target word, determines to whether there is in the corresponding data of either objective instruction set
Update the data, specifying variable is concentrated whether there is for determine instruction and updated the data;
It is default in invocation target instruction set to update the data when in the corresponding data of target instruction set in the presence of updating the data
Interface is obtained, obtains that target instruction set is corresponding updates the data from the corresponding specified list of target instruction set.
In the 4th kind of possible embodiment provided based on the first possible embodiment, server
In memory, also comprising instructions for performing the following operations:From the corresponding specified list of each target instruction set, obtain every
A target instruction set is corresponding update the data after, further include:
Corresponding all update the data of each target instruction set is packaged as a updated data package;
The corresponding updated data package of each target instruction set is sent to terminal.
In the 5th kind of possible embodiment provided based on the third possible embodiment, server
In memory, also comprising instructions for performing the following operations:It is default in invocation target instruction set to update the data acquisition interface,
From the corresponding specified list of target instruction set obtain target instruction set is corresponding update the data after, further include:
Default data dump interface in invocation target instruction set, is removed in the corresponding specified list of target instruction set more
New data.
Server provided in an embodiment of the present invention, by concentrating preset data more new interface in all instructions, and any
After the corresponding data of instruction set update, by the data update interface in the instruction set by the instruction set it is corresponding it is all more
New data is stored into the corresponding specified list of the instruction set so that all renewal numbers in either objective instruction set is obtained
According to when, can directly be obtained from the corresponding specified list of target instruction set, concentrate without accessing each target instruction target word and represent more
All variables of new data, not only obtain and update the data easy to operate, but also can improve and obtain the speed that updates the data, into
And improve the efficiency for obtaining and updating the data.
It should be noted that:The acquisition device updated the data and server that above-described embodiment provides are updated the data in acquisition
When, only with the division progress of above-mentioned each function module for example, in practical application, above-mentioned function can be divided as needed
With by different function module completions, i.e., the internal structure of equipment is divided into different function modules, to complete above description
All or part of function.In addition, the acquisition device updated the data and server that above-described embodiment provides are with updating the data
Acquisition methods embodiment belong to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.
Claims (10)
- A kind of 1. acquisition methods updated the data, it is characterised in that the described method includes:When detecting in the corresponding data of any instruction set in the presence of updating the data, described instruction is called to concentrate default data more New interface, corresponding all update the data of described instruction collection is stored into the corresponding specified list of described instruction collection, wherein, often A instruction set is preset with data update interface;When the operation requests of receiving terminal, determine that at least one target refers to according to the action type carried in the operation requests Order collection;From the corresponding specified list of each target instruction set, obtain that each target instruction set is corresponding to be updated the data.
- It is 2. according to the method described in claim 1, it is characterized in that, described from the corresponding specified list of each target instruction set In, obtain that each target instruction set is corresponding to be updated the data, including:Call each target instruction target word concentration is default to update the data acquisition interface, specified from each target instruction set is corresponding Obtain that each target instruction set is corresponding to be updated the data in list, wherein, all instructions collection, which is preset with, to be updated the data acquisition and connects Mouthful.
- 3. according to the method described in claim 2, it is characterized in that, described call each target instruction target word to concentrate default renewal number According to interface is obtained, the corresponding renewal number of each target instruction set is obtained from the corresponding specified list of each target instruction set According to, including:The specifying variable concentrated according to each target instruction target word, determines in the corresponding data of either objective instruction set with the presence or absence of renewal Data, the specifying variable are concentrated whether there is for determine instruction and updated the data;When in the corresponding data of the target instruction set in the presence of updating the data, the target instruction target word is called to concentrate default renewal Data acquisition interface, obtains the corresponding renewal number of the target instruction set from the corresponding specified list of the target instruction set According to.
- It is 4. according to the method described in claim 1, it is characterized in that, described from the corresponding specified list of each target instruction set In, after obtaining that each target instruction set is corresponding and updating the data, further include:Corresponding all update the data of each target instruction set is packaged as a updated data package;Each corresponding updated data package of target instruction set is sent to the terminal.
- 5. according to the method described in claim 3, it is characterized in that, described call the target instruction target word to concentrate default renewal number According to interface is obtained, obtain that the target instruction set is corresponding to update the data it from the corresponding specified list of the target instruction set Afterwards, further include:Call the target instruction target word to concentrate default data dump interface, remove in the corresponding specified list of the target instruction set Update the data.
- 6. a kind of acquisition device updated the data, it is characterised in that described device includes:Memory module, for when detecting in the corresponding data of any instruction set in the presence of updating the data, calling described instruction collection In default data update interface, by described instruction collection it is corresponding it is all update the data store to described instruction collection it is corresponding specify In list, wherein, each instruction set is preset with data update interface;Determining module, for when the operation requests of receiving terminal, being determined according to the action type carried in the operation requests At least one target instruction set;Acquisition module, for from the corresponding specified list of each target instruction set, it is corresponding more to obtain each target instruction set New data.
- 7. device according to claim 6, it is characterised in that the acquisition module, for calling each target instruction set In it is default update the data acquisition interface, obtain each target instruction target word from each corresponding specified list of target instruction set Collect corresponding to update the data, wherein, all instructions collection, which is preset with, updates the data acquisition interface.
- 8. device according to claim 7, it is characterised in that the acquisition module includes:Determination unit, for the specifying variable concentrated according to each target instruction target word, determines the corresponding data of either objective instruction set In with the presence or absence of updating the data, the specifying variable is used for determine instruction and concentrates with the presence or absence of updating the data;Acquiring unit, for when in the corresponding data of the target instruction set in the presence of updating the data, calling the target instruction target word Concentrate it is default update the data acquisition interface, obtain the target instruction set from the corresponding specified list of the target instruction set It is corresponding to update the data.
- 9. device according to claim 6, it is characterised in that described device further includes:Packetization module, for corresponding all update the data of each target instruction set to be packaged as a updated data package;Sending module, for sending each corresponding updated data package of target instruction set to the terminal.
- 10. device according to claim 8, it is characterised in that the acquisition module further includes:Clearing cell, for calling the target instruction target word to concentrate default data dump interface, removes the target instruction target word set pair Updating the data in the specified list answered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510359544.1A CN104965737B (en) | 2015-06-25 | 2015-06-25 | The acquisition methods and device updated the data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510359544.1A CN104965737B (en) | 2015-06-25 | 2015-06-25 | The acquisition methods and device updated the data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104965737A CN104965737A (en) | 2015-10-07 |
CN104965737B true CN104965737B (en) | 2018-04-27 |
Family
ID=54219772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510359544.1A Active CN104965737B (en) | 2015-06-25 | 2015-06-25 | The acquisition methods and device updated the data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965737B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107103004B (en) * | 2016-02-23 | 2020-11-06 | 创新先进技术有限公司 | Method, device and system for processing data in webpage |
CN108062326A (en) * | 2016-11-08 | 2018-05-22 | 北京国双科技有限公司 | A kind of update recording method of data message and device |
CN108874808A (en) * | 2017-05-09 | 2018-11-23 | 广东神马搜索科技有限公司 | A kind of page elements interlock method, device and server |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101223642B1 (en) * | 2007-10-19 | 2013-01-17 | 삼성전자주식회사 | Method and apparatus for transmitting additional data related broadcasting service and mathod and apparatus for receiving additional data related broadcasting service |
CN101296451B (en) * | 2008-06-03 | 2012-02-29 | 中兴通讯股份有限公司 | Method for updating inside user group list of terminal |
US20110040600A1 (en) * | 2009-08-17 | 2011-02-17 | Deidre Paknad | E-discovery decision support |
CN102891863A (en) * | 2012-11-07 | 2013-01-23 | 曙光信息产业股份有限公司 | Data reading and writing method |
CN104281478B (en) * | 2014-10-28 | 2018-07-20 | 小米科技有限责任公司 | The method and device of more new application |
-
2015
- 2015-06-25 CN CN201510359544.1A patent/CN104965737B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104965737A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201661B (en) | Method and apparatus for elastic telescopic cluster virtual machine | |
CN107678776A (en) | Multimode version dependence construction method, device, server and storage medium | |
CN106775893A (en) | To the method and device of program precompile | |
CN104965737B (en) | The acquisition methods and device updated the data | |
CN107967135A (en) | Computing engines implementation method, electronic device and storage medium | |
US8898677B2 (en) | Data arrangement calculating system, data arrangement calculating method, master unit and data arranging method | |
CN110297847A (en) | A kind of intelligent information retrieval method based on big data principle | |
CN108205560A (en) | A kind of method of data synchronization and device | |
CN106095561A (en) | Freeze the management method of application, the managing device freezing application and terminal | |
CN106203631A (en) | The parallel Frequent Episodes Mining of description type various dimensions sequence of events and system | |
CN109298882A (en) | Management method, computer readable storage medium and the terminal device of interface | |
CN109783802A (en) | A kind of business rule processing method, server and computer readable storage medium | |
CN110069693A (en) | Method and apparatus for determining target pages | |
CN108694188A (en) | A kind of newer method of index data and relevant apparatus | |
CN105867962A (en) | System upgrading method and device | |
CN109656898A (en) | Distributed large-scale complex community detection method and device based on node degree | |
CN108984339A (en) | Data reconstruction method and Related product | |
CN108845864A (en) | A kind of JVM rubbish recovering method and device based on spring frame | |
CN112328298A (en) | Code library cutting method and device for mobile terminal | |
CN101894317A (en) | System and method for driving business logic through data changes | |
CN108243238A (en) | The acquisition method and device of a kind of performance data | |
CN110471960A (en) | A kind of effective item set mining method containing disutility | |
CN108491483B (en) | Method and device for remotely monitoring running state of program | |
CN113704215B (en) | Business process event log sampling method, system, storage medium and computing device | |
CN103281458B (en) | Terminal and transaction item processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28 Applicant after: Guangzhou Huaduo Network Technology Co., Ltd. Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08, Applicant before: Guangzhou Huaduo Network Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |