CN110188140A - Data pull method, apparatus, storage medium and computer equipment - Google Patents

Data pull method, apparatus, storage medium and computer equipment Download PDF

Info

Publication number
CN110188140A
CN110188140A CN201910385870.8A CN201910385870A CN110188140A CN 110188140 A CN110188140 A CN 110188140A CN 201910385870 A CN201910385870 A CN 201910385870A CN 110188140 A CN110188140 A CN 110188140A
Authority
CN
China
Prior art keywords
data
identification
data block
server
acquisition request
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.)
Pending
Application number
CN201910385870.8A
Other languages
Chinese (zh)
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910385870.8A priority Critical patent/CN110188140A/en
Publication of CN110188140A publication Critical patent/CN110188140A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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

Abstract

The present invention relates to a kind of data pull methods comprising following steps: sending data block acquisition request to server, wherein the data block acquisition request includes the initial data mark of the data block obtained from server, terminates Data Identification and data length mark;It receives server and responds the data block acquisition request, the Data Identification of next data after the data block and the data block that quantity is identified no more than the data length is returned since initial data mark;If the Data Identification of next data is not equal to the end Data Identification, then new initial data is obtained according to the Data Identification of next data to identify, data block acquisition request is sent to server again, until the Data Identification for next data that server returns is equal to the end Data Identification.Data pull method of the present invention can be realized completion data after data tomography.

Description

Data pull method, apparatus, storage medium and computer equipment
Technical field
The present invention relates to technical field of data processing, in particular to data pull method, apparatus, storage medium and computer Equipment.
Background technique
Data are stored in server, and for client by interface to server request data, server returns data to visitor The process at family end is known as pulling for data.
When client enters the page and needs to show server latest news at present, client can be to server pull first page Data, and store to local and be shown.But since the data of server are increment variations (according to business demand indefinite Shi Zengjia data), server is possible to no new data, it is also possible to which there are multipage new datas.When server has more than one page When new data, only pull the first page data, then will lead to client could not locally update other page of new data, the first page data with Occur shortage of data, also referred to as data tomography between local historical data.
Summary of the invention
Based on this, the purpose of the embodiment of the present invention is, provides a kind of data pull method, is able to solve number clients According to after tomography the problem of completion data.
In a first aspect, the embodiment of the present invention provides a kind of data pull method, include the following steps:
Data block acquisition request is sent to server, wherein the data block acquisition request includes obtaining from server The initial data mark of data block terminates Data Identification and data length mark;
It receives server and responds the data block acquisition request, return to quantity since initial data mark and be not more than The Data Identification of next data after the data block and the data block of the data length mark;
If the Data Identification of next data is not equal to the end Data Identification, according to next data Data Identification obtain new initial data mark, data block acquisition request is sent to server again, until server returns Next data Data Identification be equal to the end Data Identification.
Compared to the prior art, the data pull method in the embodiment of the present invention is obtained by sending data block to server Request, so that the data length mark in server based on data block acquisition request returns to the data block of certain data length, root The range of returned data block is determined according to the initial data mark in data block acquisition request, end Data Identification;Further according to described Whether the Data Identification of next data after data block is equal to the end Data Identification, judge Supplementing Data whether completion Being connected to terminates the corresponding data of Data Identification;And if the Data Identification of next data is not equal to the end data mark Know, identified as the initial data of data block acquisition request next time, continues to send data pull request to server;By After this multiple data pull request, receives Data Identification and identifies in the initial data, terminates data between Data Identification, Completion data after data tomography are realized, all data of server are locally stored.
In one embodiment, each server responds the data length for the data block that the data block acquisition request returns Data Identification no more than data length mark or data block is located at initial data mark and terminates Data Identification Between.Particularly, data length is identified as the data length that data displayed page maximum can be shown.
In one embodiment, the end Data Identification is to be arranged in order in the data being locally stored in most preceding number According to Data Identification.
In one embodiment, when first time sending data block acquisition request to server, the initial data mark, Terminating Data Identification is sky.
In one embodiment, if without next data, the data mark of next data after the data block Know for sky.
In one embodiment, the step of new initial data identifies is obtained according to the Data Identification of next data Include:
The Data Identification of next data is added 1, obtains the new initial data mark.
In one embodiment, the data pull method further include:
The data block returned by a data form storage;
The Data Identification of table storing data block is safeguarded by a data block.
In one embodiment, when the server responds the data block acquisition request, according to the renewal time of data Sequence sequentially returns.
Second aspect, the embodiment of the present invention also provide a kind of data pull method, include the following steps:
Receive the data block acquisition request that client is sent, wherein the data block acquisition request includes from server sheet The initial data mark for the data block that body obtains terminates Data Identification and data length mark;
The data block acquisition request is responded to next number after client returned data block and the data block According to Data Identification;
When receiving the data block acquisition request that client is sent again, wherein the data block sent again obtains The initial data mark in request is taken to be obtained according to the Data Identification of next data, the response data sent again Data Identification from block acquisition request to next data after client returned data block and the data block, until no longer Receive the data block acquisition request of client transmission.
Provided in an embodiment of the present invention is the data pull request of server-side customer in response end side and the number taken According to pulling method, data tomography for completion client corresponding with the data pull method of client-side.
The third aspect, the embodiment of the present invention also provide a kind of data pull device, comprising:
Request sending module, to server send data block acquisition request, wherein the data block acquisition request include from The initial data mark for the data block that server obtains terminates Data Identification and data length mark;
Data reception module receives server and responds data block and the data that the data block acquisition request returns The Data Identification of next data after block;
Loop module is judged, if the Data Identification of next data is not equal to the end Data Identification, basis The Data Identification of next data obtains new initial data mark, sends data block acquisition request to server again, Until the Data Identification for next data that server returns is equal to the end Data Identification.
Compared to the prior art, the data pull device in the embodiment of the present invention is obtained by sending data block to server Request, so that the data length mark in server based on data block acquisition request returns to the data block of certain data length, root The range of returned data block is determined according to the initial data mark in data block acquisition request, end Data Identification;Further according to described Whether the Data Identification of next data after data block is equal to the end Data Identification, judge Supplementing Data whether completion Being connected to terminates the corresponding data of Data Identification;And if the Data Identification of next data is not equal to the end data mark Know, identified as the initial data of data block acquisition request next time, continues to send data pull request to server;By After this multiple data pull request, receives Data Identification and identifies in the initial data, terminates data between Data Identification, Completion data after data tomography are realized, all data of server are locally stored.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable storage media, store computer journey thereon The step of sequence, which realizes data pull method described in any one as above when being executed by processor.
5th aspect, the embodiment of the present invention also provide a kind of computer equipment, including memory, processor and are stored in In the memory and the computer program that can be executed by the processor, the processor execute real when the computer program Now the step of data pull method described in any one as above.
In order to better understand and implement, the invention will now be described in detail with reference to the accompanying drawings.
Detailed description of the invention
Fig. 1 is the application environment structural schematic diagram of the data pull method of the embodiment of the present invention;
Fig. 2 is the flow chart of the data pull method of the client-side of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the first time data block acquisition request of the data pull method of the embodiment of the present invention;
Fig. 4 is the schematic diagram of second of data block acquisition request of the data pull method of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the third time data block acquisition request of the data pull method of the embodiment of the present invention;
Fig. 6 is the flow chart of the data pull method of the server-side of the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the data pull device of the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the computer equipment of the embodiment of the present invention.
Specific embodiment
Referring now to attached drawing hereinafter, the present invention is described in more detail below, shows the embodiment of the present invention in the figure. However, the present invention can be presented as many different forms, and it should not be construed as being limited to specific embodiment presented herein. Exactly, these embodiments are for conveying the scope of the invention to those skilled in the art.
Unless otherwise defined, otherwise, term (including technical and scientific terms) used herein is interpreted as With the identical meaning of the meaning that is generally understood with the technical staff in field belonging to the present invention.Also, it is to be understood that Term used herein be interpreted as having with the consistent meaning of meaning in this specification and related fields, and do not answer It is explained by ideal or excessively formal meaning, unless being clearly specified that herein.
Referring to Fig. 1, Fig. 1 is the application environment structural schematic diagram of the data pull method in one embodiment of the invention, The application environment of the data pull method of the embodiment is client 10, and particularly, client 10 is mobile client, such as Android phone, iPhone mobile phone, iPad, Android Pad etc., the client 10 includes a data storage, for depositing Store up the data from server pull.As shown in Figure 1, the client 10 passes through internet connection server 20, when client 10 When needing to check data list, by interface to 20 request data of server, into the data of the server 20 Displayed page pulling data, and store data into local data storage.
In other embodiments, the server 20 is also possible to more than single server, but by multiple servers The server cluster of composition.
It should be noted that the data of server are increment variations, mobile client pulls request to server request data When, it is all to pull to update increased data, especially server can be ranked up data, and the data of update can come front, Server returns to more new data in order every time.
Fig. 2 is referred to, in one embodiment, a kind of data pull method includes the following steps:
S101: data block acquisition request is sent to server, wherein the data block acquisition request includes obtaining from server The initial data mark of the data block taken terminates Data Identification and data length mark;
S102: receiving server and respond the data block acquisition request, returns to quantity since initial data mark No more than the Data Identification of next data after the data block and the data block of data length mark;
S103: if the Data Identification of next data is not equal to the end Data Identification, according to described next The Data Identification of data obtains new initial data mark, data block acquisition request is sent to server again, until service The Data Identification for next data that device returns is equal to the end Data Identification.
In one embodiment, when the server responds the data block acquisition request, according to the renewal time of data Sequence sequentially returns.The sequence of data arrangement in server can be to be arranged according to the renewal time of data, can also be with It is to be ranked up according to field.Preferably, the data in server are that sequence is arranged according to the renewal time of data, recently The data arrangement of update most before, it is earliest to be back to client.It include a plurality of data in server, data are newest, and renewal time is most Evening, before arrangement most.If the renewal time according to data is that sequence is arranged, using number as Data Identification with 15 datas For, then the corresponding Data Identification of data is (15,14,13,12,11,10,9,8,7,6,5,4,3,2,1).Data Identification is 15 Data it is newest, renewal time, the value of Data Identification was maximum the latest, before arrangement most.And when client request data pull, service Device first returns to newest data, namely returns since the maximum corresponding data of value of Data Identification.
Data block refers to the one group or several groups data record of continuous arrangement together in order.Such as data record (1,2, 3), according to the definition of data block, data record (1,2,3) includes data block [1,2], [1,3], [2,3], [1,1], [2,2], [3,3];For another example data record (1,2,3,5,6) includes data block [1,2], [1,3], [2,3], [5,6], [1,1], [2,2], [3,3], [5,5], [6,6].It wherein indicates [] of data block to be continuously arranged in order, such as [1,3] refers to the number being arranged in order According to the data for being identified as (1,2,3).Here data block is that sequence is exemplary, and backward is also identical reason.The data block of backward Such as [13,8], indicate that the Data Identification arranged in reverse order is the data of (13,12,11,10,9,8).
On a block basis, continue to define initial data mark and terminate Data Identification.Wherein, initial data identifies For the Data Identification that the left side interval endpoint in data block section indicates, terminate the right section end that Data Identification is data block section The Data Identification that point indicates, such as data block [13,8], then initial data is identified as 13, and terminating Data Identification is 8.
The number of data that can be shown of data displayed page determines that data length identifies, and data length mark cannot be big In the number of data that can be shown of data displayed page, usually set equal for the two.For example, data displayed page energy exhibition Show 5 datas, then data length mark is accordingly set as 5.
In the data pull method of the embodiment of the present invention, executes complete data pull method and be equivalent to number of execution According to operation is pulled, a data pull operation may include primary or multiple data block acquisition request.And front data several times For block acquisition request due to the difference of its data block being locally stored, the data pull method of the embodiment of the present invention includes 3 kinds of data Situation is pulled, a point situation is illustrated below:
In one embodiment, first time data block acquisition request is not referring to Fig. 3, in view of having data in being locally stored The case where, when first time sending data block acquisition request to server, the initial data mark, end Data Identification are It is empty.
Referring to Fig. 3, its signal for the first time data block acquisition request of the data pull method of the embodiment of the present invention Figure.The data namely cloud data of server include 4 datas that Data Identification is (1,2,3,4), and startid is initial data Mark, endid are to terminate Data Identification, and pageSize is data length mark.0 is defined as sky, startid, endid is arranged It is 0, mobile client, which enters data displayed page, can show that 5 datas, pageSize are set as 5, then mobile client root According toFirst time data block acquisition request is carried out to server, then server is according to the request of mobile client The data for returning to corresponding data mark in order are to update sequencing, the data packet of return according to data in the present embodiment Include the data that Data Identification is (4,3,2,1).
In this embodiment, if without next data, the Data Identification of next data after the data block For sky.Since without other data, then the Data Identification for returning to next data is sky after the data of Data Identification 1, 0 is defined as sky, then the Data Identification of next data is 0.
In one embodiment, second of data block acquisition request referring to Fig. 4, second of data block acquisition request be Carrying out in the case where data update occurs in server.Referring to Fig. 4, it is the acquisition of first time of embodiment of the present invention data block The schematic diagram of request, it is contemplated that second of data block acquisition request, what is be locally stored is continuous data block, data does not occur Tomography, initial data mark remain set to 0, and generally, in addition to first time data block acquisition request, the end data mark Knowing is the Data Identification being arranged in order in the data being locally stored in most preceding data, then terminating Data Identification is first number The Data Identification for arranging most preceding data in data block is obtained according to block acquisition request, and is obtained in first time data block acquisition request And be stored in local data be Data Identification be (4,3,2,1) data, then terminate Data Identification be 4, then client according toSecond of data block acquisition request is sent to server, server equally responds second of data block and obtains Request is returned to the latest data of server by renewal time sequence.As shown in figure 4, server cloud data include that Data Identification is The data of (13,12,11,10,9,8,7,6,5,4,3,2,1), then server response data pulls request returned data and is identified as (13,12,11,10,9) data block.Meanwhile next number after server also returned data block (13,12,11,10,9) According to Data Identification 8.
Referring to Fig. 5, the schematic diagram of the third time data block acquisition request of the data pull method of the embodiment of the present invention.Through Cross Fig. 3 and Fig. 4 the acquisition request of data block twice obtain data block after, client only storing data be identified as (13,12,11, 10,9) data block and data is identified as the data block of (4,3,2,1), to lack the number that Data Identification is (8,7,6,5) According to block, there is data tomography.
According to step S103, new initial data is obtained according to the Data Identification of next data and is identified, at one In embodiment, obtaining the step of new initial data identifies according to the Data Identification of next data includes:
The Data Identification of next data is added 1, obtains the new initial data mark.
The Data Identification 8 of next data after returned data block (13,12,11,10,9), by next data Data Identification add 1, obtain the new initial data mark 9, meanwhile, be data length with 5 with 4 to terminate Data Identification Mark sends third time data block acquisition request to server again, so that obtaining Data Identification is (13,12,11,10,9) Data block and data are identified as the completion data (8,7,6,5) of the data tomography between the data block of (4,3,2,1).
In order to facilitate the relationship between data management and processing data and Data Identification, Fig. 3-5 is please referred to, is implemented at one In example, obtaining the step of new initial data identifies according to the Data Identification of next data includes:
The Data Identification of next data is added 1, obtains the new initial data mark.
In one embodiment, the data pull method further include:
The data block returned by a data form storage;
The Data Identification of table storing data block is safeguarded by a data block.
After the operation of each data pull, the completion data that each data block acquisition request obtains data tomography are merged, Data Identification is connected as a continuous data block.
Client is by interface to server request data, above-mentioned initial data mark, terminate Data Identification and Data length identifies the ginseng that enters as interface, and the Data Identification of next data is that returning for interface is joined.
Second aspect, the embodiment of the present invention also provide a kind of data pull method, include the following steps:
S201: the data block acquisition request that client is sent is received, wherein the data block acquisition request includes from service The initial data mark for the data block that device itself obtains terminates Data Identification and data length mark;
S202: the data block acquisition request is responded to next after client returned data block and the data block The Data Identification of data;
S203: when receiving the data block acquisition request that client is sent again, wherein the data sent again Initial data mark in block acquisition request is obtained according to the Data Identification of next data, is sent again described in response Data Identification from data block acquisition request to next data after client returned data block and the data block, until No longer receive the data block acquisition request of client transmission.
Provided in an embodiment of the present invention is the data pull request of server-side customer in response end side and the number taken According to pulling method, data tomography for completion client corresponding with the data pull method of client-side.
The third aspect, the embodiment of the present invention also provide a kind of data pull device, comprising:
Request sending module 31 sends data block acquisition request to server, wherein the data block acquisition request includes The initial data mark of the data block obtained from server terminates Data Identification and data length mark;
Data reception module 32 receives server and responds the data block and the number that the data block acquisition request returns According to the Data Identification of next data after block;
Loop module 33 is judged, if the Data Identification of next data is not equal to the end Data Identification, root New initial data mark is obtained according to the Data Identification of next data, data block acquisition is sent to server again and asks It asks, until the Data Identification for next data that server returns is equal to the end Data Identification.
Compared to the prior art, the data pull device in the embodiment of the present invention is obtained by sending data block to server Request, so that the data length mark in server based on data block acquisition request returns to the data block of certain data length, root The range of returned data block is determined according to the initial data mark in data block acquisition request, end Data Identification;Further according to described Whether the Data Identification of next data after data block is equal to the end Data Identification, judge Supplementing Data whether completion Being connected to terminates the corresponding data of Data Identification;And if the Data Identification of next data is not equal to the end data mark Know, identified as the initial data of data block acquisition request next time, continues to send data pull request to server;By After this multiple data pull request, receives Data Identification and identifies in the initial data, terminates data between Data Identification, Completion data after data tomography are realized, all data of server are locally stored.
Data pull device in the embodiment of the present invention passes through the correspondence between Data Identification and the data being arranged in order Whether mapping relations continuously can determine whether the data being locally stored with the presence or absence of data tomography by Data Identification;The starting number It is arranged in order after the corresponding data of the end Data Identification according to corresponding data are identified, when initial data identifies and ties Beam data mark is discontinuous, illustrates that the Data Identification being locally stored between missing initial data mark and end Data Identification is corresponding Data;According to data length mark, initial data mark and terminate Data Identification to the one or many data of server transmission Request is pulled, data length mark shows that each data pull requests obtainable number of data, initial data mark and end Data Identification shows to obtain the data area of server, to pass through this 3 input parameter acquisition service device data response datas It pulls the Data Identification that request returns and identifies and terminate the data between Data Identification in the initial data, it is local for completion The data tomography of storage.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable storage media, store computer journey thereon The step of sequence, which realizes data pull method described in any one as above when being executed by processor.
5th aspect, the embodiment of the present invention also provide a kind of computer equipment, including memory, processor and are stored in In the memory and the computer program that can be executed by the processor, the processor execute real when the computer program Now the step of data pull method described in any one as above.
In the present embodiment, processor 42 is connected with memory 41 by bus, and processor 42 can be one or more Application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic Device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.Storage It wherein includes storage medium (the including but not limited to magnetic disk storage, CD- of program code that device 41, which can be used in one or more, ROM, optical memory etc.) on the form of computer program product implemented.Computer-readable storage media include it is permanent and Non-permanent, removable and non-removable media can be accomplished by any method or technique information storage.Information can be meter Calculation machine readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes but unlimited In: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types Random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), quick flashing note Recall body or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optics are deposited Storage, magnetic tape cassette, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium, can be used for storing It can be accessed by a computing device information, in the present embodiment, the processor 42 can also be multiple.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.

Claims (11)

1. a kind of data pull method, which comprises the steps of:
Data block acquisition request is sent to server, wherein the data block acquisition request includes the data obtained from server The initial data mark of block terminates Data Identification and data length mark;
It receives server and responds the data block acquisition request, quantity is returned since initial data mark no more than described The Data Identification of next data after the data block and the data block of data length mark;
If the Data Identification of next data is not equal to the end Data Identification, according to the number of next data New initial data mark is obtained according to mark, data block acquisition request is sent to server again, until under server return The Data Identification of one data is equal to the end Data Identification.
2. data pull method according to claim 1, it is characterised in that: the end Data Identification is locally stored The Data Identification in most preceding data is arranged in order in data.
3. data pull method according to claim 1, it is characterised in that: send data block to server in first time and obtain When taking request, the initial data mark and the end Data Identification are sky.
4. data pull method according to claim 3, it is characterised in that: if without next number after the data block According to then the Data Identification of next data is sky.
5. data pull method according to claim 1, it is characterised in that: according to the Data Identification of next data Obtaining the step of new initial data identifies includes:
The Data Identification of next data is added 1, obtains the new initial data mark.
6. described in any item data pull methods according to claim 1~5, it is characterised in that: the data pull method is also Include:
The data block returned by a data form storage;
The Data Identification of table storing data block is safeguarded by a data block.
7. data pull method according to claim 1, it is characterised in that: the server responds the data block and obtains When request, sequentially returned according to the renewal time of data sequence.
8. a kind of data pull method, which comprises the steps of:
Receive the data block acquisition request that client is sent, wherein the data block acquisition request includes obtaining from server itself The initial data mark of the data block taken terminates Data Identification and data length mark;
The data block acquisition request is responded to next data after client returned data block and the data block Data Identification;
When receiving the data block acquisition request that client is sent again, wherein the data block acquisition sent again is asked Initial data mark in asking is obtained according to the Data Identification of next data, and the response data block sent again obtains Data Identification of the request to next data after client returned data block and the data block is taken, until no longer receiving The data block acquisition request sent to client.
9. a kind of data pull device, it is characterised in that: include:
Request sending module sends data block acquisition request to server, wherein the data block acquisition request includes from service The initial data mark for the data block that device obtains terminates Data Identification and data length mark;
Data reception module, receive server respond data block that the data block acquisition request returns and the data block it The Data Identification of next data afterwards;
Loop module is judged, if the Data Identification of next data is not equal to the end Data Identification, according to The Data Identification of next data obtains new initial data mark, sends data block acquisition request to server again, until The Data Identification for next data that server returns is equal to the end Data Identification.
10. a kind of computer-readable storage media, stores computer program thereon, it is characterised in that: the computer program quilt The step of data pull method as described in claim 1 to 8 any one is realized when processor executes.
11. a kind of computer equipment, including memory, processor and storage are in the memory and can be by the processor The computer program of execution, it is characterised in that: the processor realizes such as claim 1 to 8 when executing the computer program Described in any one the step of data pull method.
CN201910385870.8A 2019-05-09 2019-05-09 Data pull method, apparatus, storage medium and computer equipment Pending CN110188140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910385870.8A CN110188140A (en) 2019-05-09 2019-05-09 Data pull method, apparatus, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910385870.8A CN110188140A (en) 2019-05-09 2019-05-09 Data pull method, apparatus, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN110188140A true CN110188140A (en) 2019-08-30

Family

ID=67715935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910385870.8A Pending CN110188140A (en) 2019-05-09 2019-05-09 Data pull method, apparatus, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110188140A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795288A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Data acquisition method, device and storage medium
CN111090621A (en) * 2019-10-30 2020-05-01 苏州浪潮智能科技有限公司 Log obtaining method, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN102169460A (en) * 2010-02-26 2011-08-31 航天信息股份有限公司 Method and device for managing variable length data
CN103428242A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, device and system for increment synchronization
CN103559015A (en) * 2013-10-15 2014-02-05 沈阳东软医疗系统有限公司 Conformation event judgment method and device based on hardware
US20140279929A1 (en) * 2013-03-15 2014-09-18 Amazon Technologies, Inc. Database system with database engine and separate distributed storage service
CN104661100A (en) * 2015-02-09 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment
CN106294352A (en) * 2015-05-13 2017-01-04 姚猛 A kind of document handling method, device and file system
CN107302727A (en) * 2016-04-15 2017-10-27 杭州海康威视数字技术股份有限公司 A kind of method for down loading, the apparatus and system of live video burst
US20180004857A1 (en) * 2014-12-26 2018-01-04 Beijing Jingdong Shangke Information Technology Co., Ltd. Webpage loading method and system
CN108319619A (en) * 2017-01-18 2018-07-24 腾讯科技(北京)有限公司 Data processing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN102169460A (en) * 2010-02-26 2011-08-31 航天信息股份有限公司 Method and device for managing variable length data
CN103428242A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, device and system for increment synchronization
US20140279929A1 (en) * 2013-03-15 2014-09-18 Amazon Technologies, Inc. Database system with database engine and separate distributed storage service
CN103559015A (en) * 2013-10-15 2014-02-05 沈阳东软医疗系统有限公司 Conformation event judgment method and device based on hardware
US20180004857A1 (en) * 2014-12-26 2018-01-04 Beijing Jingdong Shangke Information Technology Co., Ltd. Webpage loading method and system
CN104661100A (en) * 2015-02-09 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment
CN106294352A (en) * 2015-05-13 2017-01-04 姚猛 A kind of document handling method, device and file system
CN107302727A (en) * 2016-04-15 2017-10-27 杭州海康威视数字技术股份有限公司 A kind of method for down loading, the apparatus and system of live video burst
CN108319619A (en) * 2017-01-18 2018-07-24 腾讯科技(北京)有限公司 Data processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090621A (en) * 2019-10-30 2020-05-01 苏州浪潮智能科技有限公司 Log obtaining method, device and storage medium
CN110795288A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Data acquisition method, device and storage medium
CN110795288B (en) * 2019-11-06 2023-02-10 杭州复杂美科技有限公司 Data acquisition method, device and storage medium

Similar Documents

Publication Publication Date Title
CN103067297B (en) A kind of dynamic load balancing method based on resource consumption prediction and device
CN109145020A (en) Information query method, from server, client and computer readable storage medium
CN103607424B (en) Server connection method and server system
CN101741907A (en) Method and system for balancing server load and main server
CN104166628B (en) The methods, devices and systems of managing internal memory
WO2016148963A1 (en) Intelligent placement within a data center
CN108196787B (en) Quota management method of cluster storage system and cluster storage system
CN108804383B (en) Support point parallel enumeration method and device based on measurement space
CN103095687A (en) Method and device of metadata processing
CN107908521A (en) A kind of monitoring method of container performance on the server performance and node being applied under cloud environment
CN106407244A (en) Multi-database-based data query method, system and apparatus
CN109151028A (en) A kind of distributed memory system disaster recovery method and device
CN101815095A (en) SAN stored resource unified management and distribution method
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN109981702A (en) A kind of file memory method and system
CN110188140A (en) Data pull method, apparatus, storage medium and computer equipment
CN106713353A (en) Intelligent seamless aggregation method and system for geographic information service
CN107562803B (en) Data supply system and method and terminal
CN107943423A (en) The management method and computer-readable recording medium of storage resource in cloud system
CN110909978A (en) Resource processing method, device, server and computer readable storage medium
CN113656359A (en) Method and device for lightening three-dimensional model, computer equipment and storage medium
CN108875035A (en) The date storage method and relevant device of distributed file system
CN107193749B (en) Test method, device and equipment
CN106682198B (en) Method and device for realizing automatic database deployment
CN106570006A (en) Multimedia file recommendation system and releasing information storage method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190830

RJ01 Rejection of invention patent application after publication