CN103064910B - The apparatus and method processing layer data for android system - Google Patents

The apparatus and method processing layer data for android system Download PDF

Info

Publication number
CN103064910B
CN103064910B CN201210555559.1A CN201210555559A CN103064910B CN 103064910 B CN103064910 B CN 103064910B CN 201210555559 A CN201210555559 A CN 201210555559A CN 103064910 B CN103064910 B CN 103064910B
Authority
CN
China
Prior art keywords
data
tomography
interval
date
layer
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.)
Expired - Fee Related
Application number
CN201210555559.1A
Other languages
Chinese (zh)
Other versions
CN103064910A (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210555559.1A priority Critical patent/CN103064910B/en
Publication of CN103064910A publication Critical patent/CN103064910A/en
Application granted granted Critical
Publication of CN103064910B publication Critical patent/CN103064910B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a kind of apparatus and method processing layer data for android system.Described device includes Database Unit, display unit, layer data download unit and the first database maintenance unit and new data download unit and the second database maintenance unit;Wherein, new data download unit is suitable to send the request downloading new data, receives the new data that server returns;Second database maintenance unit is suitable to judge whether new data can be connected with data with existing, if linking, new data is saved in Database Unit, and shown that labelling is set to effectively, if divergence, it is invalid to be all set to by the display labelling of data, is then saved in Database Unit by the new data of described return, and is set to effectively by the display labelling of the new data of described return.Technical scheme can obtain layer data from server and fill up corresponding tomography interval, and display to the user that always be up-to-date continuous print data.

Description

The apparatus and method processing layer data for android system
Technical field
The present invention relates to network communication technology field, be specifically related to a kind of apparatus and method processing layer data for android system.
Background technology
Along with popularizing of intelligent terminal, read client (below in this application referred to as " client ") and be more and more applied on intelligent terminal.But the process of the storage of its main functional parts data and layer data, but it is all that comparatively core, technical difficulty optimize inadequate place relatively greatly all the time.And this is to constitute in client user's experience, a very important ingredient.
The reading data of client include article, picture, video, " microblogging " etc..In the process using client, a kind of scene the most general is had to be: user first reads data in certain time period (during such as lunch break at noon) by client downloads, it is said that in general, client can ask about 20 to read data, it is saved in data base to show.After user has seen a period of time, exit client, continue the thing of oneself.Then in another time period (during such as the dusk six), user is again introduced into the reading data that client downloads is new, generally speaking, for the consideration to flow, transmission speed and experience, client will not by the data (during lunch break at noon as previously mentioned) crossed from last downloaded until present reading data be all asked, during this, server end likely there has been hundreds of and reads data, and therefore client is only ask about up-to-date 20 to read data for user.So, just asked 20 read data and before the centre of 20 readings (during such as lunch break) of user's request, define some but without the reading data being downloaded to client.These " hollow " parts being clipped in up-to-date reading data and the existing centre reading data are referred to as " layer data ".
A kind of way of the prior art is after having downloaded new reading data, is left out whether centre has layer data, before newly downloaded reading data are directly inserted into existing reading data, and all shows when display.This makes user cannot know whether have layer data between shown data, more cannot obtain layer data.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide a kind of a kind of apparatus and method processing layer data for android system overcoming the problems referred to above or solving the problems referred to above at least in part.
According to one aspect of the present invention, providing a kind of device processing layer data for android system, this device includes: Database Unit, display unit, layer data download unit and the first database maintenance unit and new data download unit and the second database maintenance unit;
Described Database Unit, is suitable to preserve data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data and gathers, and wherein, the display of up-to-date continuous data is labeled as effectively, and it is invalid that the display of other data is labeled as;
Described display unit, the display being suitable to show in described Database Unit is labeled as effective data;
Described layer data download unit, is suitable to send the download request of some layer datas of up-to-date continuous data in request next-door neighbour's Database Unit to server, receives the layer data that server returns;
Described first database maintenance unit, is suitable to judge whether the layer data of described return fills up the tomography being close to up-to-date continuous data interval;If filled up, the layer data of described return is inserted in described Database Unit, the display arranging the layer data of described return is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for described next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of described next-door neighbour from Database Unit is interval;If it is unfilled, the layer data of described return is inserted in described Database Unit, the display arranging the layer data of described return is labeled as effectively, and interval for the tomography of up-to-date for described next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval;
Described new data download unit, is suitable to send, to server, the request downloading new data, receives the new data that server returns;
Described second database maintenance unit, be suitable to judge whether the new data of described return can be connected with the data with existing in Database Unit, if linking, the new data of described return is saved in Database Unit, and the display labelling of the data of described return is set to effectively, if divergence, display existing in Database Unit is labeled as the display labelling of effective data be all set to invalid, then the new data of described return is saved in Database Unit, and the display labelling of the new data of described return is set to effectively.
Alternatively, the download request that described layer data download unit sends to server includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data;
Described first database maintenance unit, it is judged as filling up when being further adapted for the layer data bar number that the bar number of layer data in described return downloads more than 0 and less than described request, is judged as unfilled during the layer data bar number that the bar number at the layer data of described return is downloaded more than or equal to described request.
Alternatively, this device farther includes the first tomography interval maintenance unit;
Described first tomography interval maintenance unit, be suitable to the tomography interval set in ergodic data library unit, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
Alternatively, described tomography interval in the tomography interval that described Database Unit preserves is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
Alternatively, the described tomography interval set that described Database Unit preserves is to be realized by the array list in JAVA class libraries.
Alternatively, described display unit, it is further adapted for when the bar number of the layer data that the server that described layer data download unit receives returns is 0, prompts the user with and server does not have older data.
Alternatively, the request of the described download new data that described new data download unit sends to described server comprises: the new data bar number of request download and the mark of the up-to-date data having been downloaded in Database Unit;
Described second database maintenance unit, be further adapted for described return new data bar number less than described request download new data bar number time be judged as linking, described return new data bar number more than or equal to described request download new data bar number time be judged as divergence.
Alternatively, this device farther includes the second tomography interval maintenance unit;
Described second tomography interval maintenance unit, be suitable to the mark of the oldest data in the new data with described return, mark with the described up-to-date data having been downloaded in Database Unit, form an array representing that tomography is interval, and this array is saved in the array set representing the set of tomography interval in Database Unit.
Alternatively, described Tip element, it is further adapted for when the bar number of the new data that the server that described new data download unit receives returns is 0, prompts the user with the latest data that the latest data in Database Unit is on server.
According to another aspect of the present invention, it is provided that a kind of method processing layer data for android system, the method includes:
Send the download request of some layer datas of up-to-date continuous data in request next-door neighbour data base to server, receive the layer data that server returns;Wherein, described data base preserves data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data downloaded gather, wherein the display of up-to-date continuous data is labeled as effectively, it is invalid that the display of other data is labeled as, and display is labeled as effective data and can be shown;
Judge whether the layer data of described return fills up the tomography being close to up-to-date continuous data interval;
If filled up, the layer data of described return is inserted in described data base, the display arranging the layer data of described return is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for described next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of described next-door neighbour from data base is interval;
If it is unfilled, the layer data of described return is inserted in described data base, the display arranging the layer data of described return is labeled as effectively, and interval for the tomography of up-to-date for described next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval;
Send the request downloading new data to server, receive the new data that server returns;
Judge whether the new data of described return can be connected with the data with existing in data base;
If linking, the new data of described return is saved in data base, and the display labelling of the new data of described return is set to effectively;
If divergence, display existing in data base is labeled as the display labelling of effective data and is all set to invalid, then the new data of described return is saved in data base, and the display labelling of the new data of described return is set to effectively.
Alternatively, described download request includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data;
Whether the described layer data judging described return fills up the tomography interval being close to up-to-date continuous data includes: is judged as filling up during the layer data bar number downloaded more than 0 and less than described request at the bar number of layer data of described return, is judged as unfilled during the layer data bar number that the bar number at the layer data of described return is downloaded more than or equal to described request.
Alternatively, before sending, to server, the request of download, the method farther includes:
Tomography interval set in ergodic data storehouse, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
Alternatively, described tomography interval is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
Alternatively, the method farther includes: adopt the array list in JAVA class libraries to realize the set of described tomography interval.
Alternatively, the method farther includes: if the bar number of the layer data of the server return received is 0, prompts the user with and does not have older data on server.
Alternatively, the request of described download new data includes: the new data bar number that request is downloaded, and the mark of the up-to-date data having been downloaded in data base;
Whether the described new data judging described return can be connected with the data with existing in data base includes: be judged as linking during the new data bar number that the bar number at the new data of described return is downloaded less than described request, is judged as divergence during the new data bar number that the bar number at the new data of described return is downloaded more than or equal to described request.
Alternatively, the method farther includes: if divergence, mark with the oldest data in the new data of described return, mark with the described up-to-date data having been downloaded in data base, form an array representing that tomography is interval, and this array is saved in the array set representing the set of tomography interval.
Alternatively, the method farther includes: if the bar number of the new data of the server return received is 0, prompt the user with the latest data that the latest data in data base is on server.
According to the present invention this for android system process layer data scheme in, can according to the tomography interval set recorded, obtaining layer data from server and fill up corresponding tomography interval, and what display to the user that always is up-to-date continuous print data, thus solve user cannot know whether there is layer data in shown data, and the problem that layer data cannot be obtained.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 illustrates the flow chart of a kind of according to an embodiment of the invention data download method;
Fig. 2 illustrates the flow chart of data download method according to an embodiment of the invention;
Fig. 3 illustrates the data variation schematic diagram of client in data downloading process according to an embodiment of the invention;
Fig. 4 illustrates the flow chart of a kind of according to an embodiment of the invention method for processing layer data;
Fig. 5 illustrates according to an embodiment of the invention for processing the flow chart of the method for layer data;
Fig. 6 illustrates that the layer data once downloaded according to an embodiment of the invention can fill up the schematic diagram that tomography is interval;
Fig. 7 illustrates that the layer data once downloaded according to an embodiment of the invention can not fill up the schematic diagram that tomography is interval;
Fig. 8 illustrates the structure chart of a kind of according to an embodiment of the invention device for processing layer data;
Fig. 9 illustrates according to an embodiment of the invention for processing the structure chart of the device of layer data.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In the solution of the present invention, the process every time downloading new data is safeguarded the display labelling of data and recorded tomography interval, afterwards when layer data downloaded by needs, according to the corresponding layer data of tomography interval requests recorded, and safeguard the display labelling of data so that what show is all up-to-date continuous print data always.Below it is divided into two large divisions that the technical scheme of invention is illustrated: request new data and request layer data.
One request new data
Fig. 1 illustrates the flow chart of a kind of according to an embodiment of the invention new data method for down loading.As it is shown in figure 1, the method includes:
Step S110, sends the request downloading new data to server, receives the new data that server returns.
In one embodiment of the invention, the request downloading new data that this user end to server sends includes: the new data bar number that request is downloaded, and the mark of the up-to-date data having been downloaded in data base.So, server end thinks that the requested data of client are from server end currently up-to-date data data to the Data Identification comprised described request, and the data strip number of request is the bar number comprised in described request.Here, what " newly " and " old " compared is the generation time of data, and " newly " is generation time posterior data, and " old " is generation time data formerly.
Step S120, it is judged that whether the new data that server returns can be connected with the data with existing in data base, if performing step S130, performs step S140 if not.
In one embodiment of the invention, during the new data bar number that the bar number at the new data that server returns is downloaded less than request, it is judged as linking, during the new data bar number that the bar number at the new data that server returns is downloaded more than or equal to request, is judged as divergence.This is because the data strip number that the request comprised in the request downloading new data that sends with client of server end is downloaded, and the up-to-date data having been downloaded in data base be designated the result of foundation returning data.
Example it is incremented by successively according to its sequencing producing the time: what client had been downloaded into the up-to-date data in data base is designated 1000, current request 20 data with the mark of data.If received server-side is to the request of client, the mark of a up-to-date data of server end is to 1050, then server can return, to client, 20 data that be designated 1031~1050, and client can be judged as divergence.If received server-side is to the request of client, the mark of a up-to-date data of server end is to 1015, then server can return, to client, 15 data that be designated 1001~1015, and client can be judged as linking.
Step S130, is saved in the new data that server returns in data base, and is set to effectively by the display labelling of the new data of this return.Perform step S150.
Step S140, is labeled as display existing in data base the display labelling of effective data and is set to invalid, be then saved in data base by the new data that server returns, and the display labelling of the new data returned by server is set to effectively.Perform step S150.
Step S150, the display in a video data storehouse is labeled as effective data.
In technical scheme shown in Fig. 1, after new data, all judge whether new data and existing data are connected in request every time, then illustrate that when divergence data create tomography, by arranging and safeguard the display labelling of data, and only show up-to-date continuous print data when display, such user sees that data are continuous print data, is wherein absent from layer data, thus solves user and can not know the problem that whether there is layer data in shown data.
When method shown in Fig. 1 can also be judged as divergence in the step s 120, further the tomography interval corresponding with the layer data of divergence is saved in the tomography interval set safeguarded.Particularly as follows: mark and the identifying of a up-to-date data having been downloaded in data base with the oldest data in the new data of server return form an array representing that tomography is interval, and this array is saved in the array set that expression tomography interval is gathered.Such as, it is designated 1000 with what aforesaid client had been downloaded into a up-to-date data in data base, current request 20 data, when received server-side is to the request of client, the mark of a up-to-date data of server end is to 1050, server returns to client and is designated 20 data of 1031~1050 is example, and the tomography interval that the layer data of this divergence is corresponding is array is [1031,1000].Two end-point datas 1000 and 1031 of tomography interval [1031,1000] are not included in layer data, and namely corresponding layer data is 1001~1030.
For making technical scheme clearly, below technical scheme is further described.
Fig. 2 illustrates the flow chart of data download method according to an embodiment of the invention.Fig. 3 illustrates the data variation schematic diagram of client in data downloading process according to an embodiment of the invention.Below in conjunction with Fig. 3, the method shown in Fig. 2 is illustrated, as in figure 2 it is shown, the flow process of a client new data of request includes:
Step S202, user end to server sends the request downloading new data.
In one embodiment of the invention, the request downloading new data that this user end to server sends includes: the new data bar number that request is downloaded, and the mark of the up-to-date data having been downloaded in data base.
First, client need to determine will " ask download new data bar number ", as being generally 20.Additionally, client also needs to obtain the mark of a up-to-date data of (namely having been downloaded in client database), the lines 310 in Fig. 3 in data with existing.Above-mentioned " the data strip number that request is downloaded " and " mark of the up-to-date data in data with existing " are saved as a variable standby.Then, " the data strip number that request is downloaded " and " mark of the up-to-date data in data with existing " are spliced into a URL by client, to the data of server request down loading updating.
Step S204, client receives the new data that server returns.
Here, server can judge to return how many data according to " mark of the up-to-date data in data with existing ", and returns which data.Under normal circumstances, " mark of the up-to-date data in data with existing " form of expression on the server is " request is to this Data Identification " (in Fig. 3 lines 310), namely, the interval of the scope obtaining data is " mark of a just infinite up-to-date data in data with existing ", formula is: (∞, the mark of the up-to-date data in data with existing), what do not include the up-to-date data in this data with existing within the scope of it identifies specified data.Meanwhile, " the data strip number that request is downloaded " also will as a kind of condition restriction, and namely server end " the data strip number of return " is less than or equal to this restriction.Finally, the condition of the return data of server end is: the bar number one, returning data is less than or equal to " the data strip number that request is downloaded ";Two, the scope obtaining data is (∞, the mark of the up-to-date data in data with existing), and two conditions become the relation of "AND".
Step S206, client judges that whether new data bar number that server returns is less than or equal to 0, is then execution step S208, otherwise performs step S210.
Step S208, if the new data bar number that server returns is less than or equal to 0, then represent that up-to-date Data Identification in client has been that the latest data of server end identifies, namely the data of client have been up-to-date, the data that server end does not update, client prompts the user with the latest data that the latest data in data base is on server, it is not necessary to ask again, and transmitting procedure terminates.
Step S210, if the new data bar number that server returns is more than 0, then represent the data that server end is existing also newer than the latest data of client, therefore continue to judge whether the new data that server returns can be connected with the data with existing in data base, it is specially and judges that new data bar number that server returns is whether less than the new data bar number of requested download, it is then perform step S212, otherwise performs step S214.
Step S212, if the new data bar number that server returns is less than the new data bar number of requested download, then represent that the data that server returns can be connected with the data of client this locality, the new data that server returns is saved in data base by client, and the display labelling of the new data this time returned by server is set to effectively.Such as, in one embodiment of the invention, the data that can realize server returns by the SQL statement of an INSERT are inserted in data base.Process ends.
Step S214, if the new data bar number that server returns is more than or equal to the new data bar number of requested download, then represent that the new data that server returns can not be connected with the data of client this locality, there is layer data, then the tomography interval corresponding in this layer data is saved in the tomography interval set safeguarded by client.
In one embodiment of the invention, the identification record of the oldest data in the data that first server is returned by client gets off, and saves as a variable, in the present embodiment, can be described as " mark that server returns the oldest data in data ", in Fig. 3 shown in lines 320.Then, client is by " mark of the up-to-date data in data with existing ", shown in the lines 310 in Fig. 3, saves as a variable, standby.Subsequently, from data base, take out " the interval set of tomography " (in Fig. 3, having two tomography intervals, place to be respectively labeled as 331 and 332, then the two is exactly " the interval set of tomography " altogether)." set of tomography interval " is mainly used to record the range intervals of each tomography, and these tomographies all have not yet been downloaded in client, but again can to server request when client needs.And take out " set of tomography interval " be intended to that to add new tomography in this set interval.
In one embodiment of the invention, the array list ArrayList in JAVA class libraries is adopted to realize the set of tomography interval.And be by SQLite statement, the set of tomography interval is taken out specific to the way in Android client.It is Bytes type (also available characters string descriptor tomography is interval) due to what take out, client can pass through unserializing technology (de-serialize), namely the readObject method of the ObjectInputStream class of Android, this record is converted into an ArrayList object.And in the middle of ArrayList, each item is all made up of the one-dimension array of Integer, each array has two elements, is respectively intended to represent two borders that this tomography is interval.Client to do is to previously mentioned " marks of the oldest data in the data that server returns " and " mark of the up-to-date data in data with existing " two borders as tomography interval, it is respectively filled in the one-dimension array of new Integer, then it is added in ArrayList object, finally, being serialized (serialize) again is a Bytes object, namely the toByteArray () of the ObjectOutputStream of Android, finally, then be stored back in the middle of data base.So far, the set of tomography interval is by interval for many new tomographies, and 333 in Fig. 3 are this tomography newly increased interval.
Step S216, display existing in data base is labeled as the display labelling of effective data be all set to invalid.
Show that by data existing in client (data segment 311 in Fig. 3) value of labelling changes 0 (hiding) into from 1 (display), will not be shown in the display interface of client with the data with existing section 311 before guaranteeing tomography 333.Specific practice is: by a SQL statement, change the value of the display labelling of all data with existing into 0 (hiding) from 1 (display).
Step S218, is then saved in the new data that server returns in data base, and the display labelling of the new data returned by server is set to effectively.
Those data 333 returned by server end before can be inserted in data base by client, and is shown that the value of labelling is set to 1 (display).So far, whole transmitting procedure terminates.
From above-mentioned, in technical scheme, by arranging and safeguarding display labelling, only show up-to-date continuous print data, such user sees that data are continuous print data, additionally have recorded tomography interval, so when user thinks request layer data, it is possible to the corresponding layer data of tomography interval requests according to record.
Two request layer datas
Fig. 4 illustrates the flow chart of a kind of according to an embodiment of the invention method for processing layer data.As shown in Figure 4, the method includes:
Step S410, sends the download request of some layer datas of up-to-date continuous data in request next-door neighbour data base to server, receives the layer data that server returns.Wherein, process according to aforesaid request new data, data base preserves data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data downloaded gather, wherein the display of up-to-date continuous data is labeled as effectively, it is invalid that the display of other data is labeled as, and display is labeled as effective data and can be shown.
In one embodiment of the invention, the layer data that user end to server sends is downloaded request and is included: the oldest layer data bar number reading the mark of data, request download in the up-to-date continuous data in data base, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data.Specifically, tomography interval set in ergodic data storehouse, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.Wherein, tomography interval is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
Step S420, it is judged that it is interval whether the layer data that server returns fills up the tomography being close to up-to-date continuous data, is then perform step S430, otherwise performs step S440.
In one embodiment of the invention, it is judged as filling up during the bar number of the layer data downloaded more than 0 and less than described request at the bar number of layer data that server returns, is judged as unfilled during the bar number of the layer data that the bar number at the layer data that server returns is downloaded more than or equal to described request.
Step S430, the layer data that server returns is inserted in described data base, the display arranging the layer data that server returns is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for this next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of described next-door neighbour from data base is interval.
Step S440, the layer data that server returns is inserted in described data base, the display arranging the layer data that server returns is labeled as effectively, and interval for the tomography of up-to-date for described next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval.
So, by the method shown in Fig. 4, it is possible to obtain layer data according to the tomography interval recorded.Repeat the method shown in Fig. 4, it is possible to start in turn to obtain layer data from up-to-date continuous print data, fill up tomography interval, until having been filled up in all of tomography interval.
The condition of the flow process triggering a layer data download is generally: user sees that " the oldest data in up-to-date continuous print data " are (it is envisioned that be, when there is no network environment, user can read these continuous print data always, until touching the oldest one, perhaps start afterwards not plan a successor, perhaps there is no older data).At this moment, in order to ensure that old data can download and allow user see, it is necessary to download layer data to server request.Detailed process is as shown in Figure 5.
Fig. 5 illustrates according to an embodiment of the invention for processing the flow chart of the method for layer data.Fig. 6 illustrates that the layer data once downloaded according to an embodiment of the invention can fill up the schematic diagram that tomography is interval.Fig. 7 illustrates that the layer data once downloaded according to an embodiment of the invention can not fill up the schematic diagram that tomography is interval.Below in conjunction with Fig. 6 and Fig. 7, the method for processing layer data shown in Fig. 5 is illustrated.As it is shown in figure 5, the flow process of a client layer data of request includes:
Step S502, user end to server sends the request downloading layer data.
In one embodiment of the invention, the layer data that user end to server sends is downloaded request and is included: the oldest layer data bar number reading the mark of data, request download in the up-to-date continuous data in data base, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data.
For example, see Fig. 6: first, client, it is to be appreciated that the oldest mark reading data in up-to-date continuous data 644 in data base, the lines 620 in Fig. 6, is saved as a variable standby.Specifically can pass through SQL statement, obtain all of display and be labeled as 1 (display) and represent the mark that number is that minimum data.Meanwhile, client is it should also be understood that the layer data bar number that to ask altogether, it is assumed herein that the same with obtaining new data, disposable acquisition is less than 20 data, then, will " the layer data bar number of request download " to save as a variable standby.And then, client needs to obtain after " mark of the oldest data in up-to-date continuous data in data base ", back to back " tomography is interval ", hereinafter referred to as " tomography being close to up-to-date continuous data is interval ", tomography interval 655 in Fig. 6, namely lines 620 are to the part between lines 610.Still for android system, first pass through SQLite statement and tomography set is taken out, by its unserializing (de-serialize), then this record is converted into an ArrayList object.First element (element finally added) from ArrayList, this element is the one-dimension array of an Integer, represents one " tomography is interval ".Then, read should two boundary values of " tomography interval ", they lay respectively at first element of this array and second element.Here still with " article mark with successively decrease order from the new to the old " be arranged as example, first element is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.So, client just obtains call parameter during request layer data: " the oldest mark reading data in up-to-date continuous data ", " the layer data bar number that request is downloaded ", and " being close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data ", three above parameter is spliced into a URL, initiate request to server, wait result to be returned.
Step S504, client receives the layer data that server returns.
Server can according to " the oldest mark reading data in up-to-date continuous data " and " being close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data ", common judgement should return how many data, and returns which data.Under normal circumstances, " the oldest mark reading data in up-to-date continuous data " form of expression on the server is " starting from this data mark ", and the form of expression that " being close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data " is on the server is " request is to this number of units Data Identification ", namely the interval obtaining the scope of data is the tomography interval 655 in Fig. 6, and in scope, do not include the data that this start-stop mark is specified.Meanwhile, " the layer data bar number that request is downloaded " also will as a kind of condition restriction, it is necessary to server end " the layer data bar number of return " is less than or equal to this restriction.Finally, the foundation returning layer data of server end is: one, the layer data bar number that the layer data bar number returned is less than or downloads equal to request;Two, the scope obtaining data is to start to " the oldest mark reading data being close in the layer data corresponding to the tomography interval of up-to-date continuous data " from " the oldest mark reading data up-to-date continuous data ", and both become the relation of "AND".Below the layer data that server end returns is designated 666.
Step S506, it is judged that whether the layer data bar number that server returns, less than or equal to 0, is then perform step S508, otherwise performs step S510.
Step S508, client prompts the user with does not have older data, process ends on server.
Step S510, it is judged that whether the layer data bar number that server returns, less than requested layer data bar number, is then perform step S512, otherwise performs step S518.
This step is judge whether the layer data that server currently returns fills up the tomography interval being close to up-to-date continuous data.If particularly as follows: the layer data of server return is less than the layer data bar number of requested download, then represent that tomography can be filled, as shown in Figure 6, the layer data 666 that server returns can fill up tomography interval 655, and tomography interval can directly be deleted from the set of tomography interval.Otherwise, if the layer data that server returns is more than or equal to the layer data bar number of requested download, then it represents that tomography can not be filled, as shown in Figure 7, the layer data 666 that server returns can not fill up tomography interval 655, it is necessary to reduces the scope that this tomography is interval.
Step S512, is inserted into the layer data that server returns in data base, and the display arranging the layer data that server returns is labeled as effectively.
Referring to Fig. 6, the layer data 666 that server returns is inserted in data base, just can fill up tomography interval 655.And the display labelling of the layer data 666 of insertion is set to effectively (being set to 1, display), namely newly downloaded data need display.
Step S514, the display labelling downloading data between the next tomography interval that the tomography of up-to-date for this next-door neighbour continuous data is interval and the up-to-date continuous data of this next-door neighbour tomography is interval is set to effectively.
In figure 6, download data between tomography interval 655 and its next tomography interval 677 are data block 633, it is set to effectively by the display labelling of data in data block 633, such data block 633, newly downloaded layer data 666 and former continuous data 644 constitute new continuous data, and all shown.
Specifically: client need to read " the oldest mark reading data being close in the layer data corresponding to tomography interval of up-to-date continuous data " and " position of tomography interval place ArrayList " (hereinafter referred to as " position of fault ") that preserve before, and the latter is mainly used to navigate to accurately in lists on that tomography interval.Then, client passes through ArrayList.get (position of fault+1), obtains the next tomography interval 677 after tomography interval 655 in this prior.Then, the mark of the up-to-date data in the layer data of interval 677 correspondences of acquisition tomography, and it is saved as a variable, standby.Finally, pass through SQL statement, client, by the display mark value of the data between " mark of the oldest data in the layer data of interval 655 correspondences of tomography " and " mark of the up-to-date data in the layer data of next interval 677 correspondences ", is revised as 1 (display) from 0 (hiding).So, tomography interval will be filled, and before tomography interval, existing article will be engaged on after layer data, until next tomography.
Step S516, the tomography deleting the up-to-date continuous data of this next-door neighbour from data base is interval.Process ends.
Specifically, in " ArrayList object ", delete the tomography being filled interval.
Step S518, is inserted into the layer data that server returns in described data base, and the display arranging the layer data that server returns is labeled as effectively.
Referring to Fig. 7, the layer data 666 that server returns is inserted in data base, tomography interval 655 can't be filled up.The display labelling of the layer data 666 of insertion is set to effectively (being set to 1, display), and namely newly downloaded data need display.Up-to-date continuous data now is made up of newly downloaded layer data 666 and former data 644.
Step S520, represents the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval by interval for the tomography of up-to-date for this next-door neighbour continuous data.Process ends.
Referring to Fig. 7, before downloading layer data, up-to-date continuous data is 644, and the tomography interval being close to up-to-date continuous data is 655.After downloading layer data, up-to-date continuous data is the combination of 644 and 666, and the tomography interval being close to up-to-date continuous data is 688.So displayable expanded range, the tomography interval of next-door neighbour reduces.
Specifically, after the boundary value that the tomography having revised next-door neighbour is interval, ArrayList is put back in this tomography interval.In Android operation system, is Java programming language due to what adopt, and the array of buffer memory actually pointer type, namely " tomography of next-door neighbour is interval " object with in ArrayList to as if associate, therefore other operation need not be done.And in other languages, then it is likely to also need to be placed back into ArrayList and it needs to cover original object.So far, transmitting procedure terminates.
Repeat the flow process shown in Fig. 5 and can obtain layer data successively, until all of tomography interval is all filled.
Fig. 8 illustrates the structure chart of a kind of according to an embodiment of the invention device for processing layer data.As shown in Figure 8, this device 800 being used for processing layer data includes: Database Unit 801, display unit 802, layer data download unit the 803, first database maintenance unit the 804, first tomography interval maintenance unit 805 and Tip element 806.
Database Unit 801, is suitable to preserve data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data and gathers, and wherein, the display of up-to-date continuous data is labeled as effectively, and it is invalid that the display of other data is labeled as.
Display unit 802, is suitable to the display in video data library unit 801 and is labeled as effective data.
Layer data download unit 803, is suitable to send the download request of some layer datas of up-to-date continuous data in request next-door neighbour's Database Unit 801 to server, receives the layer data that server returns.
First database maintenance unit 804, is suitable to judge whether the layer data that server returns fills up the tomography being close to up-to-date continuous data interval;If filled up, the layer data that server returns is inserted in Database Unit 801, the display arranging the layer data that server returns is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for this next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of this next-door neighbour from Database Unit 801 is interval;If it is unfilled, the layer data that server returns is inserted in described Database Unit 801, the display arranging the layer data that server returns is labeled as effectively, and interval for the tomography of up-to-date for this next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval.
In one embodiment of the invention, the download request that layer data download unit 803 sends to server includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data.First database maintenance unit 804, it is judged as filling up when being further adapted for the bar number of the layer data downloaded more than 0 and less than described request at the bar number of layer data that server returns, is judged as unfilled during the bar number of the layer data that the bar number at the layer data that server returns is downloaded more than or equal to described request.
First tomography interval maintenance unit 805, be suitable to the tomography interval set in ergodic data library unit 801, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
In one embodiment of the invention, tomography interval in the tomography interval set that Database Unit 801 preserves is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
In one embodiment of the invention, the tomography interval set that Database Unit 801 preserves is to be realized by the array list in JAVA class libraries.
Tip element 806, is suitable to, when the bar number of the layer data that the server that layer data download unit 803 receives returns is 0, prompt the user with and do not have older data on server.
Fig. 9 illustrates according to an embodiment of the invention for processing the structure chart of the device of layer data.As it is shown in figure 9, this device 900 being used for processing layer data includes: Database Unit 901, display unit 902, layer data download unit the 903, first database maintenance unit the 904, first tomography interval maintenance unit 905 and Tip element 906.Additionally, also include: new data download unit the 907, second database maintenance unit 908 and the second tomography interval maintenance unit 909.
New data download unit 907, is suitable to send, to server, the request downloading new data, receives the new data that server returns.In one embodiment of the invention, the request downloading new data that new data download unit 907 sends to server includes: the new data bar number that request is downloaded, and the mark of the up-to-date data having been downloaded in data base.
Second database maintenance unit 908, be suitable to judge whether the new data that server returns can be connected with the data with existing in Database Unit 901, if linking, the new data that server returns is saved in Database Unit 901, and the display labelling of the data of server return is set to effectively, if divergence, display existing in Database Unit 901 is labeled as the display labelling of effective data be all set to invalid, then the new data that server returns is saved in Database Unit 901, and the display labelling of this new data returned by server is set to effectively.
Database Unit 901, is suitable to preserve data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data and gathers, and wherein, the display of up-to-date continuous data is labeled as effectively, and it is invalid that the display of other data is labeled as.
Display unit 902, is suitable to the display in video data library unit 901 and is labeled as effective data.
In one embodiment of the invention, the request of the download new data that new data download unit 907 sends to server comprises: the data strip number of request download and the mark of the up-to-date data having been downloaded in Database Unit 901.The condition of the return data of server end is: one, returns data number and is less than or equal to " the new data bar number that request is downloaded ";Two, the scope obtaining data is (∞ has been downloaded into the mark of a up-to-date data in Database Unit 901), and two conditions become the relation of "AND".Then the second database maintenance unit 908, be suitable to be judged as linking when the new data bar number that the bar number of the new data that server returns is downloaded less than request, during the new data bar number that the bar number at the new data that server returns is downloaded more than or equal to described request, be judged as divergence.
Second tomography interval maintenance unit 909, when being suitable to the data with existing divergence in the new data that server returns with Database Unit 901, is saved in the tomography interval corresponding with the layer data of divergence in the tomography interval set of maintenance in Database Unit 901.Specifically, the mark of the oldest data in the data that the second tomography interval maintenance unit 909 returns with server and one array representing that tomography is interval of mark composition of a up-to-date data having been downloaded in Database Unit 901, and this array is saved in the array set representing the set of tomography interval in Database Unit 901.
In one embodiment of the invention, the set of the tomography interval in Database Unit 901 is to be realized by the array list in JAVA class libraries.
Tip element 906, is suitable to, when the bar number of new data that server returns to new data download unit 907 is 0, prompt the user with the latest data that the latest data in data base is on server.
Layer data download unit 903, is suitable to send the download request of some layer datas of up-to-date continuous data in request next-door neighbour's Database Unit 901 to server, receives the layer data that server returns.
First database maintenance unit 904, is suitable to judge whether the layer data that server returns fills up the tomography being close to up-to-date continuous data interval;If filled up, the layer data that server returns is inserted in Database Unit 901, the display arranging the layer data that server returns is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for this next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of this next-door neighbour from Database Unit 901 is interval;If it is unfilled, the layer data that server returns is inserted in described Database Unit 901, the display arranging the layer data that server returns is labeled as effectively, and interval for the tomography of up-to-date for this next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval.
In one embodiment of the invention, the download request that layer data download unit 903 sends to server includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data.First database maintenance unit 904, it is judged as filling up when being further adapted for the bar number of the layer data downloaded more than 0 and less than described request at the bar number of layer data that server returns, is judged as unfilled during the bar number of the layer data that the bar number at the layer data that server returns is downloaded more than or equal to described request.
First tomography interval maintenance unit 905, be suitable to the tomography interval set in ergodic data library unit 901, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
In one embodiment of the invention, tomography interval in the tomography interval set that Database Unit 901 preserves is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
Tip element 906, is suitable to, when the bar number of the layer data that the server that layer data download unit 903 receives returns is 0, prompt the user with and do not have older data on server.
In sum, in this device for processing layer data of the present invention, by arranging and safeguarding display labelling, only show up-to-date continuous print data, such user sees that data are continuous print data, additionally have recorded tomography interval, and can according to the tomography interval set recorded, obtaining layer data from server and fill up corresponding tomography interval, convenient for users to use.
It should be understood that
Not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant in algorithm and the display of this offer.Various general-purpose systems can also with use based on together with this teaching.As described above, the structure constructed required by this kind of system is apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details.In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions for processing the some or all parts in the device of layer data that microprocessor or digital signal processor (DSP) can be used in practice to realize according to embodiments of the present invention.The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program).The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not exclude the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer.In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody.Word first, second and third use do not indicate that any order.Can be title by these word explanations.

Claims (18)

1. for the device processing layer data of android system, this device includes: Database Unit, display unit, layer data download unit and the first database maintenance unit and new data download unit and the second database maintenance unit;
Described Database Unit, is suitable to preserve data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data and gathers, and wherein, the display of up-to-date continuous data is labeled as effectively, and it is invalid that the display of other data is labeled as;
Described display unit, the display being suitable to show in described Database Unit is labeled as effective data;
Described layer data download unit, is suitable to send the download request of some layer datas of up-to-date continuous data in request next-door neighbour's Database Unit to server, receives the layer data that server returns;
Described first database maintenance unit, is suitable to judge whether the layer data of described return fills up the tomography being close to up-to-date continuous data interval;If filled up, the layer data of described return is inserted in described Database Unit, the display arranging the layer data of described return is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for described next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of described next-door neighbour from Database Unit is interval;If it is unfilled, the layer data of described return is inserted in described Database Unit, the display arranging the layer data of described return is labeled as effectively, and interval for the tomography of up-to-date for described next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval;
Described new data download unit, is suitable to send, to server, the request downloading new data, receives the new data that server returns;
Described second database maintenance unit, be suitable to judge whether the new data of described return can be connected with the data with existing in Database Unit, if linking, the new data of described return is saved in Database Unit, and the display labelling of the data of described return is set to effectively, if divergence, display existing in Database Unit is labeled as the display labelling of effective data be all set to invalid, then the new data of described return is saved in Database Unit, and the display labelling of the new data of described return is set to effectively.
2. device as claimed in claim 1, wherein,
The download request that described layer data download unit sends to server includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data;
Described first database maintenance unit, it is judged as filling up when being further adapted for the layer data bar number that the bar number of layer data in described return downloads more than 0 and less than described request, is judged as unfilled during the layer data bar number that the bar number at the layer data of described return is downloaded more than or equal to described request.
3. device as claimed in claim 2, wherein, this device farther includes the first tomography interval maintenance unit;
Described first tomography interval maintenance unit, be suitable to the tomography interval set in ergodic data library unit, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
4. device as claimed in claim 1, wherein,
Described tomography interval in the tomography interval set that described Database Unit preserves is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
5. device as claimed in claim 4, wherein,
The described tomography interval set that described Database Unit preserves is to be realized by the array list in JAVA class libraries.
6. device as claimed in claim 1, wherein, this device farther includes:
Tip element, is further adapted for when the bar number of the layer data that the server that described layer data download unit receives returns is 0, prompts the user with and do not have older data on server.
7. the device as according to any one of claim 1 to 6, wherein,
The request of the described download new data that described new data download unit sends to described server comprises: the new data bar number of request download and the mark of the up-to-date data having been downloaded in Database Unit;
Described second database maintenance unit, be further adapted for described return new data bar number less than described request download new data bar number time be judged as linking, described return new data bar number more than or equal to described request download new data bar number time be judged as divergence.
8. the device as according to any one of claim 1 to 6, wherein, this device farther includes the second tomography interval maintenance unit;
Described second tomography interval maintenance unit, be suitable to the mark of the oldest data in the new data with described return, mark with the described up-to-date data having been downloaded in Database Unit, form an array representing that tomography is interval, and this array is saved in the array set representing the set of tomography interval in Database Unit.
9. the device as according to any one of claim 1 to 5, wherein, this device farther includes: Tip element;
Described Tip element, is suitable to, when the bar number of the new data that the server that described new data download unit receives returns is 0, prompt the user with the latest data that the latest data in Database Unit is on server.
10., for the method processing layer data of android system, the method includes:
Send the download request of some layer datas of up-to-date continuous data in request next-door neighbour data base to server, receive the layer data that server returns;Wherein, described data base preserves data, the display labelling of data and the tomography interval that be made up of the tomography interval corresponding with layer data downloaded gather, wherein the display of up-to-date continuous data is labeled as effectively, it is invalid that the display of other data is labeled as, and display is labeled as effective data and can be shown;
Judge whether the layer data of described return fills up the tomography being close to up-to-date continuous data interval;
If filled up, the layer data of described return is inserted in described data base, the display arranging the layer data of described return is labeled as effectively, and be set to effectively by the display labelling downloading data between next tomography interval interval for the tomography of interval for the tomography of up-to-date for described next-door neighbour continuous data and the described up-to-date continuous data of next-door neighbour, and the tomography deleting the up-to-date continuous data of described next-door neighbour from data base is interval;
If it is unfilled, the layer data of described return is inserted in described data base, the display arranging the layer data of described return is labeled as effectively, and interval for the tomography of up-to-date for described next-door neighbour continuous data is represented the mark of a up-to-date data, the mark of the oldest data being revised as in the layer data of described return in this tomography interval;
Send the request downloading new data to server, receive the new data that server returns;
Judge whether the new data of described return can be connected with the data with existing in data base;
If linking, the new data of described return is saved in data base, and the display labelling of the new data of described return is set to effectively;
If divergence, display existing in data base is labeled as the display labelling of effective data and is all set to invalid, then the new data of described return is saved in data base, and the display labelling of the new data of described return is set to effectively.
11. method as claimed in claim 10, wherein,
Described download request includes: the oldest layer data bar number reading the mark of data, request download in up-to-date continuous data, and is close to the oldest mark reading data in the layer data corresponding to tomography interval of up-to-date continuous data;
Whether the described layer data judging described return fills up the tomography interval being close to up-to-date continuous data includes: is judged as filling up during the layer data bar number downloaded more than 0 and less than described request at the bar number of layer data of described return, is judged as unfilled during the layer data bar number that the bar number at the layer data of described return is downloaded more than or equal to described request.
12. method as claimed in claim 11, wherein, before sending, to server, the request of download, the method farther includes:
Tomography interval set in ergodic data storehouse, the tomography finding the up-to-date mark reading data in the layer data of correspondence and the oldest mark next-door neighbour reading data in up-to-date continuous data is interval, and this tomography interval is the tomography interval being close to up-to-date continuous data.
13. method as claimed in claim 10, wherein,
Described tomography interval is an array comprising two elements, first element in this array is the mark of the up-to-date data in this layer data corresponding to tomography interval, and second element is the mark of the oldest data in this layer data corresponding to tomography interval.
14. method as claimed in claim 13, wherein, the method farther includes:
The array list in JAVA class libraries is adopted to realize the set of described tomography interval.
15. method as claimed in claim 10, wherein, the method farther includes:
If the bar number of the layer data that the server received returns is 0, prompts the user with and server does not have older data.
16. the method as according to any one of claim 10 to 15, wherein, the request of described download new data includes: the new data bar number that request is downloaded, and the mark of the up-to-date data having been downloaded in data base;
Whether the described new data judging described return can be connected with the data with existing in data base includes: be judged as linking during the new data bar number that the bar number at the new data of described return is downloaded less than described request, is judged as divergence during the new data bar number that the bar number at the new data of described return is downloaded more than or equal to described request.
17. the method as according to any one of claim 10 to 15, wherein, the method farther includes:
If divergence, mark with the oldest data in the new data of described return, with the mark of the described up-to-date data having been downloaded in data base, form an array representing that tomography is interval, and this array be saved in the array set representing the set of tomography interval.
18. the method as according to any one of claim 10 to 15, wherein, the method farther includes:
If the bar number of the new data that the server received returns is 0, prompt the user with the latest data that the latest data in data base is on server.
CN201210555559.1A 2012-12-19 2012-12-19 The apparatus and method processing layer data for android system Expired - Fee Related CN103064910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210555559.1A CN103064910B (en) 2012-12-19 2012-12-19 The apparatus and method processing layer data for android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210555559.1A CN103064910B (en) 2012-12-19 2012-12-19 The apparatus and method processing layer data for android system

Publications (2)

Publication Number Publication Date
CN103064910A CN103064910A (en) 2013-04-24
CN103064910B true CN103064910B (en) 2016-06-29

Family

ID=48107540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210555559.1A Expired - Fee Related CN103064910B (en) 2012-12-19 2012-12-19 The apparatus and method processing layer data for android system

Country Status (1)

Country Link
CN (1) CN103064910B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077186B (en) * 2012-12-19 2015-11-25 北京奇虎科技有限公司 A kind of layer data treating apparatus and method
CN109344349B (en) * 2018-09-28 2020-12-29 北京三快在线科技有限公司 Data caching method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455892A (en) * 2010-10-18 2012-05-16 腾讯科技(深圳)有限公司 Method and device for realizing miniblog message pages
CN103077186A (en) * 2012-12-19 2013-05-01 北京奇虎科技有限公司 Fault data processing device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756993B2 (en) * 2005-06-22 2010-07-13 Sony Corporation Reproducing apparatus, reproducing method, and reproducing program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455892A (en) * 2010-10-18 2012-05-16 腾讯科技(深圳)有限公司 Method and device for realizing miniblog message pages
CN103077186A (en) * 2012-12-19 2013-05-01 北京奇虎科技有限公司 Fault data processing device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Adaptive continuous media applications in mobile computing environments;Tatsuo Nakajima等;《Multimedia Computing and Systems 97. Proceedings., IEEE International Conference on》;19970606;第152-160页 *

Also Published As

Publication number Publication date
CN103064910A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN107818162B (en) Bury a processing method, device, computer equipment and storage medium
CN109542529B (en) Function name-based point burying method and device, computer equipment and storage medium
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN106897215A (en) A kind of method gathered based on WebView webpages loading performance and user behavior flow data
CN103077186B (en) A kind of layer data treating apparatus and method
CN104572114A (en) Binding device, application updating device and method and application
CN103279538B (en) Prestrain accesses the server of webpage, browser client and method in website
CN103150513A (en) Method and device for intercepting embedded information in application program
CN106873952B (en) Data processing system and method for mobile terminal webpage development and application device
CN105956136B (en) Method and device for acquiring login information
CN103064989B (en) Webpage preservation, deployment method and device
CN103177115A (en) Method and device of extracting page link of webpage
CN105072461A (en) Data processing method and device
CN104239775A (en) Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
CN105183890A (en) Webpage loading method based on browser and browser device
CN103036992B (en) A kind of data download method and device
CN104283865A (en) Download processing method and device, server and client device
CN105260421A (en) Webpage loading method and apparatus
CN103064910B (en) The apparatus and method processing layer data for android system
CN103020245B (en) For the method and apparatus of downloading data
CN104378393A (en) Resource sharing method and corresponding device
CN105119944B (en) Application starting method and related device
CN103258055A (en) Device and method for file downloading
CN103618760A (en) Processing method of cookie information in browser and browser
CN106372267A (en) Page loading method and page loading device based on browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160629

Termination date: 20211219

CF01 Termination of patent right due to non-payment of annual fee