CN105100285A - Data downloading method and device - Google Patents

Data downloading method and device Download PDF

Info

Publication number
CN105100285A
CN105100285A CN201510560762.1A CN201510560762A CN105100285A CN 105100285 A CN105100285 A CN 105100285A CN 201510560762 A CN201510560762 A CN 201510560762A CN 105100285 A CN105100285 A CN 105100285A
Authority
CN
China
Prior art keywords
data
database
returned
unit
fault zone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510560762.1A
Other languages
Chinese (zh)
Other versions
CN105100285B (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 CN201510560762.1A priority Critical patent/CN105100285B/en
Publication of CN105100285A publication Critical patent/CN105100285A/en
Application granted granted Critical
Publication of CN105100285B publication Critical patent/CN105100285B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Abstract

The invention discloses a data downloading method and device and relates to the technical field of network communications. The method comprises: sending a request for downloading new data to a server and receiving data returned by the server; judging whether the returned data is joined with the existing data in a database; if so, saving the returned data in the database and setting the display mark of the returned data to be valid; and if not, setting the symbol of the existing data with the valid display mark in the database to be invalid, and then saving the returned data in the database and setting the display mark of the returned data to be valid, wherein only the data with the valid display mark can be displayed. In the technical scheme of the data downloading method, only the latest continuous data is displayed so that all the data that a user see is continuous data, and therefore, the problem that a user cannot know whether broken data exists in the displayed data is solved.

Description

A kind of data download method and device
The divisional application that patent application of the present invention is the applying date is on December 19th, 2012, application number is 201210553468.4, name is called the Chinese invention patent application of " a kind of data download method and device ".
Technical field
The present invention relates to network communication technology field, be specifically related to a kind of data download method and device.
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 storage of its main functional parts---data and the process of layer data, but be all that comparatively core, technical difficulty optimize inadequate place comparatively greatly all the time.And this forms in client user's experience, a very important part.
The read data of client comprises article, picture, video, " microblogging " etc.In the process using client, have a kind of scene the most general to be: user first in section (during as lunch break at noon) sometime by client downloads read data, generally speaking, client can ask about 20 read data, is saved in database to show.After user has seen a period of time, exit client, continue the thing of oneself.Then in another time period (during as the dusk six), user enters the new read data of client downloads again, generally speaking, for the consideration to flow, transmission speed and experience, client can not by the data crossed from last downloaded (during lunch break at noon as previously mentioned) until present read data be all asked, during this, server end likely there has been hundreds of read data, and therefore client is only for user asks 20 about up-to-date read data.So, 20 read data of just having asked and before the centre of 20 readings (during as lunch break) of user's request, define the read data that some are not also downloaded to client.These " hollow " parts being clipped in the centre of up-to-date read data and existing read data are referred to as " layer data ".
A kind of way of the prior art is after having downloaded new read data, does not consider whether centre has layer data, before directly newly downloaded read data being inserted into existing read data, and all shows when showing.Whether this makes user to know has layer data between shown data.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of data download method solved the problem at least in part and device.
According to one aspect of the present invention, provide a kind of data download apparatus, this device comprises: Database Unit, display unit, new data download unit and database maintenance unit;
Described new data download unit, is suitable for sending the request of downloading new data, the data that reception server returns to server;
Described database maintenance unit, whether the data being suitable for returning described in judging can be connected with the data with existing in Database Unit, if be connected, the described data returned are saved in Database Unit, and the show tags of the described data returned is set to effectively, if divergence, it is invalid that the show tags being effective data by show tags existing in Database Unit is all set to, then the described data returned are saved in Database Unit, and the show tags of the described data returned is set to effectively;
Described Database Unit, is suitable for the show tags preserving data and data;
Described display unit, being suitable for the show tags shown in described Database Unit is effective data.
Alternatively, comprise in the request of described download new data that described new data download unit sends to described server: the data number that request is downloaded and downloaded to the mark of the up-to-date data in Database Unit;
Described database maintenance unit, be further adapted for and be judged as being connected when the number of the described data returned is less than the number of the data that described request is downloaded, be judged as divergence when the number of the described data returned is more than or equal to the number of the data that described request is downloaded.
Alternatively, this device comprises maintenance unit between fault zone further;
Maintenance unit between described fault zone, when being suitable for the data with existing divergence in the described data that return and Database Unit, in being kept between the fault zone corresponding with the layer data of divergence and gathering between the fault zone of safeguarding in Database Unit.
Alternatively, maintenance unit between described fault zone, be further adapted for described in the mark of the oldest data in the data that return and the mark of the described up-to-date data downloaded in Database Unit form one and represent array between fault zone, and this array to be saved in the array set of gathering between the expression fault zone in Database Unit.
Alternatively, between the described fault zone in described Database Unit, set is realized by the array list in JAVA class libraries.
Alternatively, this device comprises further: Tip element;
Described Tip element, the number being suitable for the data returned at server is 0, is the latest data on server to the latest data in user's reminder-data storehouse.
According to a further aspect in the invention, provide a kind of data download method, the method comprises:
The request of downloading new data is sent, the data that reception server returns to server;
Whether the data returned described in judgement can be connected with the data with existing in database;
If be connected, the described data returned be saved in database, and the show tags of the described data returned is set to effectively;
If divergence, it is invalid that the show tags being effective data by show tags existing in database is all set to, and then the described data returned is saved in database, and be set to effectively by the show tags of the described data returned;
Wherein, show tags is only had to be that effective data can be shown.
Alternatively, the request of described download new data comprises: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database;
Whether the data returned described in described judgement can be connected with the data with existing in database comprises: be judged as being connected when the number of the described data returned is less than the data number that described request downloads, and is judged as divergence when the number of the described data returned is more than or equal to the data number that described request downloads.
Alternatively, the method comprises further:
If divergence, also by being saved between the fault zone corresponding with the layer data of divergence and gathering between safeguarded fault zone.
Alternatively, describedly to comprise being saved between the fault zone corresponding with the layer data of divergence to gather between safeguarded fault zone:
Form one by the mark of the oldest data in the described data returned and the mark of the described up-to-date data downloaded in database and represent array between fault zone, and this array is saved in the array set representing and gather between fault zone.
Alternatively, the method comprises further: the array list in employing JAVA class libraries is to realize gathering between described fault zone.
Alternatively, the method comprises further: if the number of data that the server received returns is 0, be the latest data on server to the latest data in user's reminder-data storehouse.
According to this request sending download new data to server of the present invention, the data that reception server returns, whether the data returned described in judgement can be connected with the data with existing in database, if be connected, the described data returned are saved in database, and the show tags of the described data returned is set to effectively, if divergence, it is invalid that the show tags being effective data by show tags existing in database is all set to, then the described data returned are saved in database, and the show tags of the described data returned is set to effectively, show tags is only had to be the technical scheme that effective data can be shown when showing, can judge whether new data and existing data are connected after each request new data, then illustrate that when divergence data create tomography, by arranging and safeguarding that show tags only shows up-to-date continuous print data when showing, such user sees that data are continuous print data, wherein there is not layer data, solve user thus and can not know the problem that whether there is layer data in shown data.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of data download method;
Fig. 2 shows the flow chart of data download method according to an embodiment of the invention;
Fig. 3 shows the data variation schematic diagram of client in data downloading process according to an embodiment of the invention;
Fig. 4 shows a kind of according to an embodiment of the invention structure chart of data download apparatus;
Fig. 5 shows the structure chart of data download apparatus according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of data download method.As shown in Figure 1, the method comprises:
Step S110, sends the request of downloading new data, the data that reception server returns to server.
In one embodiment of the invention, the request of the download new data that this user end to server sends comprises: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database.Like this, server end thinks that the data that client is asked are from the current up-to-date data of data to the Data Identification comprised described request of server end, and the data number of request is the number comprised in described request.Here, the generation time of data that what " newly " and " old " compared is, " newly " is the posterior data of generation time, and " old " is generation time data formerly.
Step S120, judges whether the data that server returns can be connected with the data with existing in database, if perform step S130, performs step S140 if not.
In one embodiment of the invention, be judged as being connected when the number of the data that server returns is less than the data number of request download, be judged as divergence when the number of the data that server returns is more than or equal to the data number of request download.This is because the data number that the request comprised in the request of download new data that sends with client of server end is downloaded, and download to the result being designated the foundation of return data of the up-to-date data in database.
Increase progressively successively for the sequencing of the mark of data according to its generation time: what client had downloaded to up-to-date data in database is designated 1000, current request 20 data.If when received server-side is to the request of client, the mark of up-to-date data of server end is to 1050, then server can return to client 20 data being designated 1031 ~ 1050, and client can be judged as divergence.If when received server-side is to the request of client, the mark of up-to-date data of server end is to 1015, then server can return to client 15 data being designated 1001 ~ 1015, client can be judged as being connected.
Step S130, the data returned by server are saved in database, and the show tags of the data this returned is set to effectively.Perform step S150.
Step S140, it is invalid that the show tags being effective data by show tags existing in database is all set to, and then the data that server returns is saved in database, and the show tags of the data returned by server is set to effectively.Perform step S150.
Step S150, the show tags only in display database is effective data.
In technical scheme shown in Fig. 1, asking after new data, all judge whether new data and existing data are connected at every turn, then illustrate that when divergence data create tomography, by arranging and the show tags of service data, and only show up-to-date continuous print data when showing, such user sees that data are continuous print data, wherein there is not layer data, solves user thus 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 by being saved between the fault zone corresponding with the layer data of divergence and gathering between safeguarded fault zone.Be specially: the mark of the oldest data in the data returned with server and the mark of up-to-date data downloaded in database form one and represent array between fault zone, and this array are saved in the array set representing and gather between fault zone.Such as, what downloaded to up-to-date data in database with aforesaid client is designated 1000, current request 20 data, when received server-side is to the request of client, the mark of up-to-date data of server end is to 1050, server returns 20 data instances being designated 1031 ~ 1050 to client, for array is [1031,1000] between the fault zone that the layer data of this divergence is corresponding.Between fault zone, two end-point datas 1000 and 1031 of [1031,1000] are not included in layer data, and namely corresponding layer data is 1001 ~ 1030.
For making technical scheme of the present invention clearly, below technical scheme of the present invention is further described.
Fig. 2 shows the flow chart of data download method according to an embodiment of the invention.Fig. 3 shows the data variation schematic diagram of client in data downloading process according to an embodiment of the invention.Be described the method shown in Fig. 2 below in conjunction with Fig. 3, as shown in Figure 2, the flow process of a client-requested new data comprises:
Step S202, user end to server sends the request of downloading new data.
In one embodiment of the invention, the request of the download new data that this user end to server sends comprises: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database.
First, client need be determined will " ask download data number ", as being generally 20.In addition, client also needs the mark of the up-to-date data obtaining (namely having downloaded in client database) in data with existing, as the lines 310 in Fig. 3.Above-mentioned " the data number that request is downloaded " and " marks of the up-to-date data in data with existing " are saved as a variable for subsequent use.Then, " the data number that request is downloaded " and " marks of the up-to-date data in data with existing " are spliced into a URL, to the data of server request down loading updating by client.
Step S204, the data that client reception server returns.
Here, server can judge to return how many record certificate according to " marks of the up-to-date data in data with existing ", and returns which data.Under normal circumstances, " marks of the up-to-date data in data with existing " form of expression is on the server " request is to this Data Identification " (as lines in Fig. 3 310), also be, the interval obtaining the scope of data is " the just infinite mark to the up-to-date data in data with existing ", formula is: (∞, the mark of the up-to-date data in data with existing), do not comprise the data specified by mark of the up-to-date data in this data with existing within the scope of it.Meanwhile, " the data number that request is downloaded " also will limit as a kind of condition, and namely server end " the data number returned " is less than or equals this restriction.Finally, the condition of the return data of server end is: one, the number of return data is less than or equals " the data 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 whether the data number that server returns is less than or equal to 0, is perform step S208, otherwise performs step S210.
Step S208, if the data 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 upgrade, client is the latest data on server to the latest data in user's reminder-data storehouse, without the need to asking, transmitting procedure stops again.
Step S210, if the data number that server returns is greater than 0, then represent that server end has the data also newer than the latest data of client, therefore continue to judge whether the data that server returns can be connected with the data with existing in database, be specially judge data number that server returns whether be less than ask the data number downloaded, be perform step S212, otherwise perform step S214.
Step S212, if the data number that server returns be less than ask download data number, then represent that the data that server returns can be connected with the data of client this locality, the data that server returns by client are saved in database, and the show tags of the data this time returned by server is set to effectively.Such as, in one embodiment of the invention, be inserted in database by the data that the SQL statement of an INSERT can realize server to return.Process ends.
Step S214, if the data number that server returns be more than or equal to ask download data number, then represent that the data that server returns can not be connected with the data of client this locality, there is layer data, then client will to be saved between safeguarded fault zone in set between the fault zone that this layer data is corresponding.
In one embodiment of the invention, the identification record of the oldest data in the data that first server returns by client gets off, and saves as a variable, in the present embodiment, can be described as " marks of the oldest data in server return data ", as shown in lines in Fig. 3 320.Then, client, by " marks of the up-to-date data in data with existing ", as shown in the lines 310 in Fig. 3, saves as a variable, for subsequent use.Subsequently, from database, take out " the interval set of tomography " (as in Fig. 3, have between two fault zones, place and be labeled as 331 and 332 respectively, then these two is exactly " the interval set of tomography " altogether)." gather " range intervals being mainly used to record each tomography between fault zone, these tomographies all also do not download in client, but again can to server request when client needs.And the object of taking out " gathering between fault zone " will be added between new fault zone in this set.
In one embodiment of the invention, the array list ArrayList in JAVA class libraries is adopted to realize gathering between fault zone.And be by SQLite statement, set between fault zone is taken out specific to the way in Android client.Bytes type (also between available characters string descriptor fault zone) due to what take out, client can pass through unserializing technology (de-serialize), also be the readObject method of the ObjectInputStream class of Android, this record be converted into an ArrayList object.And in the middle of ArrayList, each is all made up of the one-dimension array of Integer, each array has two elements, is used for two borders represented between this fault zone respectively.What client will be done is as the border of two between fault zone using previously mentioned " marks of the oldest data in the data that server returns " and " marks of the up-to-date data in data with existing ", insert in the one-dimension array of new Integer respectively, then added in ArrayList object, finally, be a Bytes object by its serializing (serialize) again, also be the toByteArray () of the ObjectOutputStream of Android, finally, then deposited back in the middle of database.So far, gather between many new fault zones between fault zone, 333 in Fig. 3 is between this fault zone newly increased.
Step S216, it is invalid that the show tags being effective data by show tags existing in database is all set to.
Value by data existing in client (data segment 311 as in Fig. 3) show tags changes 0 (hiding) into from 1 (display), to guarantee that the data with existing section 311 before tomography 333 can not be presented in the display interface of client.Specific practice is: by a SQL statement, changes the value of the show tags of all data with existing into 0 (hiding) from 1 (display).
Then the data that server returns are saved in database by step S218, and the show tags of the data returned by server is set to effectively.
Those data 333 returned by server end before can all be inserted in database by client, and the value of its show tags is set to 1 (display).So far, whole transmitting procedure terminates.
From above-mentioned, in technical scheme of the present invention, by arranging and safeguarding show tags, only show up-to-date continuous print data, such user sees that data are continuous print data, have recorded in addition between fault zone, like this when user thinks request layer data, can according to the corresponding layer data of tomography interval requests of record.
Fig. 4 shows a kind of according to an embodiment of the invention structure chart of data download apparatus.As shown in Figure 4, the device 400 of this downloading data comprises: Database Unit 401, display unit 402, new data download unit 403 and database maintenance unit 404;
New data download unit 403, is suitable for sending the request of downloading new data, the data that reception server returns to server.In one embodiment of the invention, new data download unit 403 comprises to the request of the download new data that server sends: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database.
Database maintenance unit 404, be suitable for judging whether the data that server returns can be connected with the data with existing in Database Unit 401, if be connected, the data returned by server are saved in Database Unit 401, and the show tags of the data returned by server is set to effectively, if divergence, it is invalid that the show tags being effective data by show tags existing in Database Unit 401 is all set to, then the data that server returns are saved in Database Unit, and the show tags of the data returned by server is set to effectively.
Database Unit 401, is suitable for the show tags preserving data and data;
Display unit 402, being suitable for the show tags shown in Database Unit 401 is effective data.
Device shown in Fig. 4, after each request new data, judge whether new data and existing data are connected, then illustrate that when divergence data create tomography, by arranging and safeguarding that show tags only shows up-to-date continuous print data when showing, such user sees that data are continuous print data, wherein there is not layer data, solve user thus and can not know the problem that whether there is layer data in shown data.
Fig. 5 shows the structure chart of data download apparatus according to an embodiment of the invention.As shown in Figure 5, the device 500 of this downloading data comprises: maintenance unit 505 and Tip element 506 between Database Unit 501, display unit 502, new data download unit 503, database maintenance unit 504, fault zone.
New data download unit 503, is suitable for sending the request of downloading new data, the data that reception server returns to server.In one embodiment of the invention, new data download unit 503 comprises to the request of the download new data that server sends: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database.
Database maintenance unit 504, be suitable for judging whether the data that server returns can be connected with the data with existing in Database Unit 501, if be connected, the data returned by server are saved in Database Unit 501, and the show tags of the data returned by server is set to effectively, if divergence, it is invalid that the show tags being effective data by show tags existing in Database Unit 501 is all set to, then the data that server returns are saved in Database Unit, and the show tags of the data returned by server is set to effectively.
Database Unit 501, is suitable for the show tags preserving data and data;
Display unit 502, being suitable for the show tags shown in Database Unit 501 is effective data.
In one embodiment of the invention, comprise in the request of download new data that new data download unit 503 sends to server: the data number that request is downloaded and downloaded to the mark of the up-to-date data in Database Unit 501.The condition of the return data of server end is: one, return data number is less than or equals " the data number that request is downloaded "; Two, the scope obtaining data is (∞ has downloaded to the mark of the up-to-date data in Database Unit 501), and two conditions become the relation of "AND".Then database maintenance unit 504, is judged as when the number being suitable for the data returned at server is less than the number of the data that request is downloaded being connected, is judged as divergence when the number of the described data returned is more than or equal to the number of the data that described request is downloaded.
Maintenance unit 505 between fault zone, when being suitable for the data with existing divergence in the data that return at server and Database Unit 501, in being kept between the fault zone corresponding with the layer data of divergence and gathering between the fault zone of safeguarding in Database Unit 501.Specifically, the mark of the oldest data in the data that between fault zone, maintenance unit 505 returns with server and the mark of up-to-date data downloaded in Database Unit 501 form one and represent array between fault zone, and this array are saved in the array set of gathering between the expression fault zone in Database Unit 501.
In one embodiment of the invention, between the fault zone in Database Unit 501, set is realized by the array list in JAVA class libraries.
Tip element 506, the number being suitable for the data returned at server is 0, is the latest data on server to the latest data in user's reminder-data storehouse.
In sum, device shown in Fig. 5, by arranging and safeguarding show tags, only show up-to-date continuous print data, such user sees that data are continuous print data, have recorded in addition between fault zone, like this when user thinks request layer data, can according to the corresponding layer data of tomography interval requests of record.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are 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 be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize 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 that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the data download apparatus of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.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 instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (12)

1. a data download apparatus, this device comprises: Database Unit, display unit, new data download unit and database maintenance unit;
Described new data download unit, is suitable for sending the request of downloading new data, the data that reception server returns to server;
Described database maintenance unit, whether the data being suitable for returning described in judging can be connected with the data with existing in Database Unit, if be connected, the described data returned are saved in Database Unit, and the show tags of the described data returned is set to effectively, if divergence, it is invalid that the show tags being effective data by show tags existing in Database Unit is all set to, then the described data returned are saved in Database Unit, and the show tags of the described data returned is set to effectively;
Described Database Unit, is suitable for the show tags preserving data and data;
Described display unit, being suitable for the show tags shown in described Database Unit is effective data.
2. device as claimed in claim 1, is characterized in that,
Comprise in the request of the described download new data that described new data download unit sends to described server: ask the data number downloaded and the mark having downloaded to the up-to-date data in Database Unit;
Described database maintenance unit, be further adapted for and be judged as being connected when the number of the described data returned is less than the number of the data that described request is downloaded, be judged as divergence when the number of the described data returned is more than or equal to the number of the data that described request is downloaded.
3. the device as described in any one of claim 1-2, wherein, this device comprises maintenance unit between fault zone further;
Maintenance unit between described fault zone, when being suitable for the data with existing divergence in the described data that return and Database Unit, in being kept between the fault zone corresponding with the layer data of divergence and gathering between the fault zone of safeguarding in Database Unit.
4. the device as described in any one of claim 1-3, wherein,
Maintenance unit between described fault zone, be further adapted for described in the mark of the oldest data in the data that return and the mark of the described up-to-date data downloaded in Database Unit form one and represent array between fault zone, and this array to be saved in the array set of gathering between the expression fault zone in Database Unit.
5. the device as described in any one of claim 1-4, wherein,
Between the described fault zone in described Database Unit, set is realized by the array list in JAVA class libraries.
6. the device as described in any one of claim 1-5, wherein, this device comprises further: Tip element;
Described Tip element, the number being suitable for the data returned at server is 0, is the latest data on server to the latest data in user's reminder-data storehouse.
7. a data download method, the method comprises:
The request of downloading new data is sent, the data that reception server returns to server;
Whether the data returned described in judgement can be connected with the data with existing in database;
If be connected, the described data returned be saved in database, and the show tags of the described data returned is set to effectively;
If divergence, it is invalid that the show tags being effective data by show tags existing in database is all set to, and then the described data returned is saved in database, and be set to effectively by the show tags of the described data returned;
Wherein, show tags is only had to be that effective data can be shown.
8. method as claimed in claim 7, wherein, the request of described download new data comprises: the data number that request is downloaded, and has downloaded to the mark of the up-to-date data in database;
Whether the data returned described in described judgement can be connected with the data with existing in database comprises: be judged as being connected when the number of the described data returned is less than the data number that described request downloads, and is judged as divergence when the number of the described data returned is more than or equal to the data number that described request downloads.
9. the method according to any one of claim 7-8, wherein, the method comprises further:
If divergence, also by being saved between the fault zone corresponding with the layer data of divergence and gathering between safeguarded fault zone.
10. as claimed in any one of claims 7-9 method, wherein, describedly to comprise being saved between the fault zone corresponding with the layer data of divergence to gather between safeguarded fault zone:
Form one by the mark of the oldest data in the described data returned and the mark of the described up-to-date data downloaded in database and represent array between fault zone, and this array is saved in the array set representing and gather between fault zone.
11. methods according to any one of claim 7-10, wherein, the method comprises further:
The array list in JAVA class libraries is adopted to realize gathering between described fault zone.
12. methods according to any one of claim 7-11, wherein, the method comprises further:
If the number of the data that the server received returns is 0, be the latest data on server to the latest data in user's reminder-data storehouse.
CN201510560762.1A 2012-12-19 2012-12-19 A kind of data download method and device Expired - Fee Related CN105100285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510560762.1A CN105100285B (en) 2012-12-19 2012-12-19 A kind of data download method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510560762.1A CN105100285B (en) 2012-12-19 2012-12-19 A kind of data download method and device
CN201210553468.4A CN103036992B (en) 2012-12-19 2012-12-19 A kind of data download method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210553468.4A Division CN103036992B (en) 2012-12-19 2012-12-19 A kind of data download method and device

Publications (2)

Publication Number Publication Date
CN105100285A true CN105100285A (en) 2015-11-25
CN105100285B CN105100285B (en) 2019-02-01

Family

ID=48023464

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210553468.4A Active CN103036992B (en) 2012-12-19 2012-12-19 A kind of data download method and device
CN201510560762.1A Expired - Fee Related CN105100285B (en) 2012-12-19 2012-12-19 A kind of data download method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210553468.4A Active CN103036992B (en) 2012-12-19 2012-12-19 A kind of data download method and device

Country Status (1)

Country Link
CN (2) CN103036992B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020245B (en) * 2012-12-19 2015-10-07 北京奇虎科技有限公司 For the method and apparatus of downloading data
US9544386B2 (en) * 2012-12-19 2017-01-10 Beijing Qihoo Technology Company Limited Device and method for processing slice data
CN103036992B (en) * 2012-12-19 2015-10-07 北京奇虎科技有限公司 A kind of data download method and device
CN108960378B (en) * 2018-08-08 2020-05-12 腾讯科技(深圳)有限公司 Data downloading method, system, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177253A1 (en) * 2002-08-15 2003-09-18 Schuehler David V. TCP-splitter: reliable packet monitoring methods and apparatus for high speed networks
CN1627290A (en) * 2003-12-12 2005-06-15 鸿富锦精密工业(深圳)有限公司 Data down loading system and method capable of continuous transmission from breakpoint
US7318153B2 (en) * 2001-04-17 2008-01-08 Ntt Communications Corporation Mark information issuing method and system
CN101727505A (en) * 2010-02-03 2010-06-09 中兴通讯股份有限公司 Efficient data processing method and device
US20120217796A1 (en) * 2009-09-23 2012-08-30 Peugeot Citroen Automobiles Sa Control Device for Putting An Electronic Member of a Communication Network on Hold Prior to Rebooting
CN103020245A (en) * 2012-12-19 2013-04-03 北京奇虎科技有限公司 Method and device for data download
CN103036992A (en) * 2012-12-19 2013-04-10 北京奇虎科技有限公司 Method and device for data downloading
CN203036992U (en) * 2012-12-13 2013-07-03 合肥美的荣事达电冰箱有限公司 Door tray used for refrigerator and refrigerator provided with same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7318153B2 (en) * 2001-04-17 2008-01-08 Ntt Communications Corporation Mark information issuing method and system
US20030177253A1 (en) * 2002-08-15 2003-09-18 Schuehler David V. TCP-splitter: reliable packet monitoring methods and apparatus for high speed networks
CN1627290A (en) * 2003-12-12 2005-06-15 鸿富锦精密工业(深圳)有限公司 Data down loading system and method capable of continuous transmission from breakpoint
US20120217796A1 (en) * 2009-09-23 2012-08-30 Peugeot Citroen Automobiles Sa Control Device for Putting An Electronic Member of a Communication Network on Hold Prior to Rebooting
CN101727505A (en) * 2010-02-03 2010-06-09 中兴通讯股份有限公司 Efficient data processing method and device
CN203036992U (en) * 2012-12-13 2013-07-03 合肥美的荣事达电冰箱有限公司 Door tray used for refrigerator and refrigerator provided with same
CN103020245A (en) * 2012-12-19 2013-04-03 北京奇虎科技有限公司 Method and device for data download
CN103036992A (en) * 2012-12-19 2013-04-10 北京奇虎科技有限公司 Method and device for data downloading

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨培勇等: "一种智能终端数据共享中的预取缓存技术", 《网络新媒体技术》 *

Also Published As

Publication number Publication date
CN103036992A (en) 2013-04-10
CN105100285B (en) 2019-02-01
CN103036992B (en) 2015-10-07

Similar Documents

Publication Publication Date Title
US10713034B2 (en) Updating web resources
US20200396317A1 (en) Method, apparatus and system for processing data
CN110221872A (en) Method for page jump, device, electronic equipment and storage medium
CN104572114A (en) Binding device, application updating device and method and application
CN103036992B (en) A kind of data download method and device
CN102833350A (en) Processing method and processing device of WebApp updating
CN103077186B (en) A kind of layer data treating apparatus and method
CN102651021B (en) Icon content updating method and device
CN103118081B (en) Server, client, the system and method for browsing pages in prestrain browser
CN104301379A (en) Web page cross-domain communication method and device
CN103067470B (en) A kind of method to browser pushed information, server and system
CN103988200A (en) Lightweight framework for web applications
CN102163197B (en) A kind of skin change method, system and device
CN104462583A (en) Browser device for advertisement blocking processing and mobile terminal
CN110321177A (en) A kind of mobile application localization loading method, device and electronic equipment
CN105069011A (en) Webpage favorite management method, device and system
CN105094868A (en) Software upgrading method, server and terminal
CN103020245B (en) For the method and apparatus of downloading data
CN105260421A (en) Webpage loading method and apparatus
CN105183890A (en) Webpage loading method based on browser and browser device
CN104125303A (en) Data read-and-write requesting method, client end and data read-and-write requesting system
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN105208032A (en) Asynchronous login method and device
CN103647844B (en) A kind of method and device of Intranet Program upgrading
CN108123970A (en) Method for exhibiting data and relevant apparatus

Legal Events

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

Granted publication date: 20190201

Termination date: 20211219