CN108009235A - Data capture method and device - Google Patents

Data capture method and device Download PDF

Info

Publication number
CN108009235A
CN108009235A CN201711227255.1A CN201711227255A CN108009235A CN 108009235 A CN108009235 A CN 108009235A CN 201711227255 A CN201711227255 A CN 201711227255A CN 108009235 A CN108009235 A CN 108009235A
Authority
CN
China
Prior art keywords
data
station
database
bar
page
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
CN201711227255.1A
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.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information Technology 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 Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201711227255.1A priority Critical patent/CN108009235A/en
Publication of CN108009235A publication Critical patent/CN108009235A/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/21Design, administration or maintenance of databases
    • 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/22Indexing; Data structures therefor; Storage structures

Abstract

An embodiment of the present invention provides a kind of data capture method and device, is related to technical field of data processing, and the method is used for program development end equipment, including:Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;Outer station data total number is obtained, wherein, the outer station data are the data of other servers in addition to server corresponding to described program develops end equipment;Judge whether the outer station data total number is less than the bar number of data to be shown;If so, obtaining data from our station database, the bar number of the data obtained in the database from our station is equal to the bar number of the data to be shown with described outer the sum of data total number of standing;The data obtained from our station database are merged with the outer station data;Data after output merging.Using method provided in an embodiment of the present invention, can make developer obtain during data it is easy to operate, work efficiency is high, facilitate developer and carry out program development.

Description

Data capture method and device
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data capture method and device.
Background technology
In program development process, application developer needs to be read out the data in server database, with into The operation such as the maintenance of row database, modification, debugging.Since the data volume of database is bigger, developer when reading data, Computer memory can be overflowed if once reading total data, and also be not easy to developer's reading.So to obtain database In partial data shown.
After a certain website is developed, an our station database can be established, for storing the data of website itself.In reality In, many websites can add some outer station data on oneself website, such as:Add article, the addition that big data is recommended The information of You Meng websites, the outer station data for adding the non-our station sources such as the information that backstage is recommended.When developer wants to obtain this When data of standing and outer station data, the method that the prior art uses is computer receives the slave our station data that developer sends After the request that a certain amount of data are obtained in storehouse, a certain amount of our station data are exported, computer receives developer and sends again Obtain the requests of a certain amount of data from outer station database, a certain amount of outer station data are exported.
Using the existing method that our station data and outer station data are obtained from database, developer needs to input twice Our station data could not only be obtained but also obtain outer station data by obtaining request, and it is complicated during data that this obtains developer, work Efficiency is low, and very big inconvenience is brought to developer.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data paging method and device, it is possible to achieve developer inputs Once obtain request and just read our station data and outer station data at the same time, developer is obtained easy to operate, work effect during data Rate is high, facilitates developer and carries out program development.Concrete technical scheme is as follows:
In a first aspect, an embodiment of the present invention provides a kind of data capture method, for program development end equipment, its is special Part is, the described method includes:
Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;
Outer station data total number is obtained, wherein, the outer station data are except described program develops service corresponding to end equipment The data of other servers beyond device;
Judge whether the outer station data total number is less than the bar number of data to be shown;
If so, data are obtained from our station database, the bar number of the data obtained in the database from our station and institute State the bar number that the sum of outer station data total number is equal to the data to be shown;
The data obtained from our station database are merged with the outer station data;
Data after output merging.
Preferably, the method further includes:
If not, the data of bar number identical with the bar number of the data to be shown are obtained from the outer station data;
Export the data obtained from the outer station data.
Preferably, the data acquisition request further includes:Data shown by the number of pages and every page of data to be shown Bar number;
Data after the output merges include:
To after merging data carry out paging, and the data after the paging with it is to be shown in the data acquisition request Data number of pages and every page shown by number of data it is corresponding, export paging after data.
Preferably, the data acquisition request further includes:Data shown by the number of pages and every page of data to be shown Bar number;
Obtain data in the database from our station, the bar number of the data obtained in the database from our station with it is described outer The sum of data of standing total number is equal to the bar number of the data to be shown;By the data obtained from our station database with it is described outer Data of standing merge;Data after output merging, including:
Judge whether Ocount >=Pagenum × (Page-1);Wherein, Ocount for it is outer station data total number, Pagenum For the number of data shown by the every page of data to be shown, Page is the number of pages of data to be shown;
If so, data are obtained from our station database, the bar number of the data obtained in the database from our station and institute State the bar number that the sum of outer station data total number is equal to the data that will be to be shown;The data that will be obtained from our station database Merge with the outer station data;Data after output merging;
If not, the data of bar number identical with the bar number of the data to be shown are obtained from the our station database; Export the data obtained from the our station database.
Preferably, it is described to merge the data obtained from our station database with the outer station data, including:
, will be through institute using the data obtained from our station database with the outer station data as the parameter of array pooled function Result that array pooled function is calculated is stated as data amalgamation result.
Second aspect, an embodiment of the present invention provides a kind of data acquisition facility, and for program development end equipment, its is special Part is that the device includes:
Request reception unit, for receiving data acquisition request, the data acquisition request includes data to be shown Bar number;
Number of data acquiring unit, for obtaining outer station data total number, wherein, the outer station data are except described program Develop the data of other servers beyond server corresponding to end equipment;
Number of data judging unit, for judging whether the outer station data total number is less than the bar of data to be shown Number;
Data capture unit, for when the number of data judging unit judging result for be when, from our station database The sum of middle acquisition data, the bar number of the data obtained in the database from our station and described outer station data total number are equal to described The bar number of data to be shown;
Data combination unit, for when the number of data judging unit judging result for be when, will be from our station data The data obtained in storehouse merge with the outer station data;
Data outputting unit, for when the judging result of the number of data judging unit is is, exporting after merging Data.
Preferably, the data capture unit, is additionally operable to when the judging result of the number of data judging unit is no, The data of bar number identical with the bar number of the data to be shown are obtained from the outer station data;
The data outputting unit, be additionally operable to judging result when the number of data judging unit for it is no when, export from The data obtained in the outer station data.
Preferably, the data acquisition request further includes:Data shown by the number of pages and every page of data to be shown Bar number;
The data outputting unit includes:
Data page subelement, for when the number of data judging unit judging result for be when, after merging Data carry out paging, and the number of pages of the data after the paging and the data to be shown in the data acquisition request and each Number of data shown by page is corresponding;
Data export subelement, for exporting the data after paging.
Preferably, data acquisition request further includes:Number of data shown by the number of pages and every page of data to be shown;
The data capture unit further includes:
Number of data judgment module, for judging whether Ocount >=Pagenum × (Page-1);Wherein, Ocount is Outer station data total number, Pagenum is the number of data shown by the every page of data to be shown, and Page is number to be shown According to number of pages;
Data acquisition module, for when the number of data judgment module judging result for be when, from our station database The sum of middle acquisition data, the bar number of the data obtained in the database from our station and described outer station data total number are equal to described The bar number of data that will be to be shown;When the judging result of the number of data judgment module is no, from the our station data The data of bar number identical with the bar number of the data to be shown are obtained in storehouse;
The data outputting unit further includes:
Data outputting module, for when the judging result of the number of data judgment module is no, exporting from described Stand the data obtained in database.
Preferably, it is described to merge the data obtained from our station database with the outer station data, including:
, will be through institute using the data obtained from our station database with the outer station data as the parameter of array pooled function Result that array pooled function is calculated is stated as data amalgamation result.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein, processor, communication interface, memory completes mutual communication by bus;Memory, for storing Computer program;Processor, for performing the program stored on memory, realizes the method and step described in first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, the storage medium memory storage There is computer program, the computer program realizes the step described in first aspect when being executed by processor.
Data capture method and device provided in an embodiment of the present invention, for program development end equipment, which first receives Data acquisition request, the data acquisition request include the bar number of data to be shown, then obtain outer station data total number, wherein, The outer station data are the data of other servers in addition to server corresponding to described program develops end equipment;Then judge Whether outer station data total number is less than the bar number of data to be shown;If so, obtain data from our station database, it is described from The bar number of the data obtained in our station database is equal to the bar of the data to be shown with described outer the sum of data total number of standing Number;The data obtained from our station database are merged with the outer station data;Data after output merging.The present invention works as outer station When data total number is less than number of data to be shown, is exported after outer station data and our station data are merged, exploit person can be made Once acquisition request just reads our station data and outer station data to member's input at the same time, developer is operated letter when obtaining data Single, work efficiency height, facilitates developer and carries out program development.Certainly, implement any of the products of the present invention or method must not It is certain to need to reach all the above advantage at the same time.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the first data capture method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of second of data capture method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the third data capture method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of data acquisition facility provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structure diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
In order to make developer's input once obtain request just while read our station data and outer station data, so that opening Hair personnel obtain data when it is easy to operate, work efficiency is high, facilitate developer carry out program development, the embodiment of the present invention provide A kind of data capture method, for program development end equipment, in this method, program development end equipment receives data acquisition please After asking, first obtain outer station data total number, when outer station data total number is less than number of data to be shown, by outer station data with Our station data merge, then the data after merging are exported.
The data capture method provided first below the embodiment of the present invention is introduced.
It should be noted that a kind of data capture method that the embodiment of the present invention is provided can be applied to internet row Industry.
As shown in Figure 1, being the first data capture method that the embodiment of the present invention is provided, set for program development end Standby, which can be the computer for program development, and the method may include following steps:
S101:Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;
In practical applications, developer can obtain in program development client input data according to the demand of oneself and ask Ask, the bar number of data to be shown can be included in the data acquisition request inputted, program development end equipment can receive exploitation The data acquisition request of personnel's input.
In a kind of specific embodiment of the present invention, data to be shown can be shown in a manner of multipage is shown, when When data to be shown are shown in a manner of multipage is shown, the data acquisition request further includes the page of data to be shown Number of data shown by number and every page.When the bar number of data to be shown is more, developer can be in the number of input Ask to include the number of data shown by the number of pages and every page of data to be shown according to obtaining, so that exploitation end equipment is obtained The data taken can be exported with paging, be consulted easy to developer.
In a kind of specific embodiment of the present invention, data acquisition request for example can beDatabase management languageMySQL is soft Limit clause in part, in MySQL softwares, Limit clause can be used to return to specified data.Developing end equipment can Using the parameter by the data to be shown that developer inputs as Limit clause.
S102:Outer station data total number is obtained, wherein, the outer station data are except described program is developed corresponding to end equipment The data of other servers beyond server;
After outer station data are added in our station, exploitation end equipment first obtains the total bar for the outer station data for being added to our station Number, to determine to be added to the outer station data total number of our station.It will be appreciated by persons skilled in the art that our station data are stored In the database of the server corresponding to exploitation end equipment, outer station data are stored in except service corresponding to program development end equipment In the database of other servers beyond device.
S103:Judge whether the outer station data total number is less than the bar number of data to be shown;
After outer station data total number is got, outer station data total number is wanted to the number to be shown of acquisition with developer According to bar number be compared, judge whether the outer station data total number is less than the bar number of data to be shown.
S104:If so, data are obtained from our station database, the bar number of the data obtained in the database from our station It is equal to the bar number of the data to be shown with described outer the sum of data total number of standing;
In practical applications, since our station data are that developer is developing the clothes corresponding to end equipment when developing website The data preserved in business device, for the website developed, our station data are the body datas of the website, and website should have certainly Oneself content and characteristic.So be added to the outer station data of our station compared to our station data for, a simply seldom part.Cause This, data acquisition strategy of the invention is preferably to obtain outer station data, when outer station data total number is less than data to be shown Bar number, i.e., when outer station data can not meet bar number to be obtained, then obtain from our station database the data of certain bar number, by outer station Fill the part of data deficiencies.
S105:The data obtained from our station database are merged with the outer station data;
Since the data in our station database and outer station data belong to the database of different server, being obtained using one please Asking can not export the data of disparate databases at the same time, and therefore, two kinds of data are merged.
, can be by the data obtained from our station database and the outer station data in a kind of specific embodiment of the present invention As the parameter of array pooled function, using the result being calculated through the array pooled function as data amalgamation result.Number Organizing pooled function for example can beArray_merge functions.
S106:Data after output merging.
In a kind of specific embodiment of the present invention, the data after merging can directly be exported.
In other specific embodiments, it can also include in the data after output merges according to data acquisition request Data after merging are first carried out paging by the number of data shown by data number of pages to be shown and every page, then export paging Data afterwards, in this way, access of the developer to acquired data of being more convenient for.
As shown in Fig. 2, being that the embodiment of the present invention is second of data capture method that the embodiment of the present invention is provided, it is used for Program development end equipment, wherein, step 201 to step 206 respectively with step 101 is performed to step 106 in Fig. 1 embodiments side Method is identical.Therefore, all embodiments in Fig. 1 are suitable for Fig. 2, and can reach the same or similar beneficial effect, herein Repeat no more.
S207:If not, the number of bar number identical with the bar number of the data to be shown is obtained from the outer station data According to;
Since the acquisition strategy of the present invention is preferably to obtain outer station data, treated when judging that outer station data total number is not less than During the bar number of the data of display, i.e., when outer station data can meet bar number to be obtained, can directly be obtained from outer station data with Developer wants the data of the identical bar number of bar number of the data to be shown obtained.
For example, exploitation end equipment can directly invoke data acquisition function limit functions, using bar number to be shown as The parameter of limit functions, to obtain outer station data.
S208:Export the data obtained from the outer station data.
As shown in figure 3, being the third data capture method that the embodiment of the present invention is provided, set for program development end It is standby, wherein, step 301 to step 303, step 305 to step 309 respectively with step 201 in Fig. 2 embodiments to step 203, step Rapid 204 to step 208 perform method it is identical, therefore, all embodiments in Fig. 2 are suitable for Fig. 3, and can reach identical Or similar beneficial effect, details are not described herein.
S304:Judge whether Ocount >=Pagenum × (Page-1);Wherein, Ocount is outer station data total number, Pagenum is the number of data shown by the every page of data to be shown, and Page is the number of pages of data to be shown, and Page is Integer more than 1;
S310:The data of bar number identical with the bar number of data to be shown are obtained from our station database;
S311:Export the data obtained from the our station database.
In practical applications, the precondition that S304 is implemented is to develop the data acquisition request acquired in end equipment also to wrap Include:Number of data shown by the number of pages and every page of data to be shown.
Being compared due to outer station data can be many less for the data in our station database, and the preferable strategy of the present invention one is just It is when the bar number of outer station data is more than a certain preset value, outer station data is just considered in output data, when the bar of outer station data When number is less than a certain preset value, in output data just without considering outer station data.
In a kind of specific embodiment of the present invention, judge that outer station data total number is less than when program development end equipment and wait to show During the bar number for the data shown, then judge whether Ocount >=Pagenum × (Page-1), wherein, Ocount is total for outer station data Bar number, Pagenum are the number of data shown by the every page of data to be shown, and Page is the number of pages of data to be shown.
As Ocount >=Pagenum × (Page-1), data are obtained from our station database, it is described from our station database The bar number of the data of middle acquisition is equal to the bar number of the data that will be to be shown with described outer the sum of data total number of standing;Will be from The data obtained in our station database merge with the outer station data;Data after output merging;
Work as Ocount<During Pagenum × (Page-1), without considering outer station data, but directly obtained from our station database Take the data of bar number identical with the bar number of data to be shown;Export the data obtained from the our station database.Wherein, from When acquisition data are exported in our station database, exploitation end equipment can directly invoke data acquisition function limit functions, will Parameter of the bar number to be shown as limit functions, to obtain the data in our station database.
In a kind of specific embodiment of the present invention, judge that outer station data total number is less than when program development end equipment and wait to show During the bar number for the data shown, it can judge whether Ocount >=Pagenum × (Page-2) again, wherein, Ocount is outer station number According to total number, Pagenum is the number of data shown by the every page of data to be shown, and Page is the page of data to be shown Number, Page are the integer more than 2.
As Ocount >=Pagenum × (Page-2), data are obtained from our station database, it is described from our station database The bar number of the data of middle acquisition is equal to the bar number of the data that will be to be shown with described outer the sum of data total number of standing;Will be from The data obtained in our station database merge with the outer station data;Data after output merging;
Work as Ocount<During Pagenum × (Page-2), without considering outer station data, but directly obtained from our station database Take the data of bar number identical with the bar number of data to be shown;Export the data obtained from the our station database.Wherein, from When acquisition data are exported in our station database, exploitation end equipment can directly invoke data acquisition function limit functions, will Parameter of the bar number to be shown as limit functions, to obtain the data in our station database.
In practical applications, formula Ocount >=Pagenum × (Page-1) and Ocount >=Pagenum × (Page- are judged 2) Ocount >=Pagenum × (Page-N), is may be summarized to be, wherein, N is the positive integer less than Page.People in the art Member can flexibly set discriminate Ocount >=Pagenum × (Page- according to shown number of pages Page and itself needs N the value of the N of condition is met in).
If Fig. 4 is a kind of structure diagram of data acquisition facility provided in an embodiment of the present invention, for program development end Equipment, the device include:
Request reception unit 101, for receiving data acquisition request, data acquisition request includes the bar of data to be shown Number;
Number of data acquiring unit 102, for obtaining outer station data total number, wherein, outer station data are except program development The data of other servers beyond server corresponding to end equipment;
Number of data judging unit 103, for judging whether outer station data total number is less than the bar number of data to be shown;
Data capture unit 104, for when number of data judging unit 103 judging result for be when, from our station data Data are obtained in storehouse, the bar number of the data obtained from our station database is equal to number to be shown with outer the sum of data total number of standing According to bar number;
Data combination unit 105, for when number of data judging unit 103 judging result for be when, will be from our station number Merge according to the data obtained in storehouse with outer station data;
Data outputting unit 106, for when the judging result of number of data judging unit 103 is is, exporting after merging Data.
In a kind of specific embodiment of the present invention, data capture unit 104, can be also used for working as number of data judging unit When 103 judging result is no, the data of bar number identical with the bar number of data to be shown are obtained from outer station data.
Data outputting unit 106, can be also used for, when the judging result of number of data judging unit is no, exporting from outer The data obtained in data of standing.
In a kind of specific embodiment of the present invention, the bar number of data to be shown can include:The page of data to be shown Number of data shown by number and every page.
Data outputting unit 106 can include:Data page subelement and data output subelement.
Data page subelement, for when number of data judging unit judging result for be when, to the data after merging Carry out paging, and the number shown by the number of pages and every page of the data to be shown in the data and data acquisition request after paging It is corresponding according to bar number;
Data export subelement, for exporting the data after paging.
In a kind of specific embodiment of the present invention, the bar number of data to be shown can include:The page of data to be shown Number of data shown by number and every page.
Data capture unit 104 can also include:
Number of data judgment module, for judging whether Ocount >=Pagenum × (Page-1);Wherein, Ocount is Outer station data total number, Pagenum is the number of data shown by the every page of data to be shown, and Page is number to be shown According to number of pages;
Data acquisition module, for when the judging result of number of data judgment module is is, being obtained from our station database Access evidence, the sum of the bar number of the data obtained from our station database and outer station data total number are equal to data that will be to be shown Bar number;When the judging result of number of data judgment module is no, obtained from our station database and data to be shown The data of the identical bar number of bar number.
Data outputting unit 106 can also include:
Data outputting module, for when the judging result of number of data judgment module is no, exporting from our station database The data of middle acquisition.
In a kind of specific embodiment of the present invention, the data obtained from our station database are merged with outer station data, can With including:
The data obtained from our station database will be closed with outer station data as the parameter of array pooled function through array And the result that function is calculated is as data amalgamation result.
Optionally, in a kind of specific implementation, the embodiment of the present invention additionally provides a kind of electronic equipment, such as Fig. 5 institutes Show, including processor 501, communication interface 502, memory 503 and communication bus 504, wherein, processor 501, communication interface 502, memory 503 completes mutual communication by communication bus 504,
Memory 503, for storing computer program;
Processor 501, during for performing the program stored on memory 503, realizes that following program development end equipment is held Capable step:
Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;
Outer station data total number is obtained, wherein, the outer station data are except described program develops service corresponding to end equipment The data of other servers beyond device;
Judge whether the outer station data total number is less than the bar number of data to be shown;
If so, data are obtained from our station database, the bar number of the data obtained in the database from our station and institute State the bar number that the sum of outer station data total number is equal to the data to be shown;
The data obtained from our station database are merged with the outer station data;
Data after output merging.
Optionally, in a kind of specific implementation, the embodiment of the present invention additionally provides a kind of computer-readable storage medium Matter, the storage medium memory contain computer program, and the computer program realizes that following procedure is opened when being executed by processor The step of inchoation equipment performs:
Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;
Outer station data total number is obtained, wherein, the outer station data are except described program develops service corresponding to end equipment The data of other servers beyond device;
Judge whether the outer station data total number is less than the bar number of data to be shown;
If so, data are obtained from our station database, the bar number of the data obtained in the database from our station and institute State the bar number that the sum of outer station data total number is equal to the data to be shown;
The data obtained from our station database are merged with the outer station data;
Data after output merging.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just Only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is used for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Method provided in an embodiment of the present invention can be applied to electronic equipment.Specifically, the electronic equipment can be:It is desk-top Computer, portable computer, intelligent mobile terminal, server etc..It is not limited thereto, any electricity that can realize the present invention Sub- equipment, belongs to protection scope of the present invention.
For device/electronic equipment/storage medium embodiment, since it is substantially similar to embodiment of the method, so What is described is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there are other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device, For electronic equipment and storage medium, since it is substantially similar to embodiment of the method, so description is fairly simple, related part Illustrate referring to the part of embodiment of the method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

  1. A kind of 1. data capture method, for program development end equipment, it is characterised in that including:
    Data acquisition request is received, the data acquisition request includes the bar number of data to be shown;
    Obtain outer station data total number, wherein, the outer station data be except described program develop server corresponding to end equipment with The data of other outer servers;
    Judge whether the outer station data total number is less than the bar number of data to be shown;
    If so, obtain data from our station database, the bar number of the data obtained in the database from our station with it is described outer The sum of data of standing total number is equal to the bar number of the data to be shown;
    The data obtained from our station database are merged with the outer station data;
    Data after output merging.
  2. 2. according to the method described in claim 1, it is characterized in that, the method further includes:
    If not, the data of bar number identical with the bar number of the data to be shown are obtained from the outer station data;
    Export the data obtained from the outer station data.
  3. 3. according to the method described in claim 1, it is characterized in that, the data acquisition request further includes:Data to be shown Number of pages and every page shown by number of data;
    Data after the output merges include:
    Data after merging are carried out with paging, and the data after the paging and the number to be shown in the data acquisition request According to number of pages and every page shown by number of data it is corresponding, export paging after data.
  4. 4. method according to any one of claims 1 to 3, it is characterised in that the data acquisition request further includes:It is to be shown Data number of pages and every page shown by number of data;
    Data, the bar number of the data obtained in the database from our station and the outer station number are obtained in the database from our station It is equal to the bar number of the data to be shown according to the sum of total number;By the data obtained from our station database and the outer station number According to merging;Data after output merging, including:
    Judge whether Ocount >=Pagenum × (Page-1);Wherein, Ocount is outer station data total number, and Pagenum is to treat Number of data shown by the every page of the data of display, Page are the number of pages of data to be shown;
    If so, obtain data from our station database, the bar number of the data obtained in the database from our station with it is described outer The sum of data of standing total number is equal to the bar number of the data that will be to be shown;By the data obtained from our station database and institute Outer station data are stated to merge;Data after output merging;
    If not, the data of bar number identical with the bar number of the data to be shown are obtained from the our station database;Output The data obtained from the our station database.
  5. 5. according to the method described in claim 4, it is characterized in that, it is described by the data obtained from our station database with it is described Outer station data merge, including:
    , will be through the number using the data obtained from our station database with the outer station data as the parameter of array pooled function The result that group pooled function is calculated is as data amalgamation result.
  6. A kind of 6. data acquisition facility, for program development end equipment, it is characterised in that including:
    Request reception unit, for receiving data acquisition request, the data acquisition request includes the bar number of data to be shown;
    Number of data acquiring unit, for obtaining outer station data total number, wherein, the outer station data are except described program is developed The data of other servers beyond server corresponding to end equipment;
    Number of data judging unit, for judging whether the outer station data total number is less than the bar number of data to be shown;
    Data capture unit, for when the judging result of the number of data judging unit is is, being obtained from our station database Fetch evidence, the sum of the bar number of the data obtained in the database from our station and described outer station data total number be equal to described in wait to show The bar number for the data shown;
    Data combination unit, for when the number of data judging unit judging result for be when, will be from our station database The data of acquisition merge with the outer station data;
    Data outputting unit, for when the judging result of the number of data judging unit is is, exporting the data after merging.
  7. 7. device according to claim 6, it is characterised in that
    The data capture unit, is additionally operable to when the judging result of the number of data judging unit is no, from the outer station The data of bar number identical with the bar number of the data to be shown are obtained in data;
    The data outputting unit, is additionally operable to, when the judging result of the number of data judging unit is no, export from described The data obtained in outer station data.
  8. 8. device according to claim 6, it is characterised in that the data acquisition request further includes:Data to be shown Number of pages and every page shown by number of data;
    The data outputting unit includes:
    Data page subelement, for when the number of data judging unit judging result for be when, to the data after merging Carry out paging, and number of pages and every page institute of the data after the paging with the data to be shown in the data acquisition request The number of data of display is corresponding;
    Data export subelement, for exporting the data after paging.
  9. 9. according to any device of claim 6 to 8, it is characterised in that the data acquisition request further includes:It is to be shown Data number of pages and every page shown by number of data;
    The data capture unit further includes:
    Number of data judgment module, for judging whether Ocount >=Pagenum × (Page-1);Wherein, Ocount is outer station Data total number, Pagenum are the number of data shown by the every page of data to be shown, and Page is data to be shown Number of pages;
    Data acquisition module, for when the judging result of the number of data judgment module is is, being obtained from our station database Fetch evidence, the sum of the bar number of the data obtained in the database from our station and described outer station data total number be equal to it is described will The bar number of data to be shown;When the judging result of the number of data judgment module is no, from the our station database Obtain the data of bar number identical with the bar number of the data to be shown;
    The data outputting unit further includes:
    Data outputting module, for when the judging result of the number of data judgment module is no, exporting from the our station number According to the data obtained in storehouse.
  10. 10. device according to claim 9, it is characterised in that described by the data obtained from our station database and institute Outer station data are stated to merge, including:
    , will be through the number using the data obtained from our station database with the outer station data as the parameter of array pooled function The result that group pooled function is calculated is as data amalgamation result.
CN201711227255.1A 2017-11-29 2017-11-29 Data capture method and device Pending CN108009235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711227255.1A CN108009235A (en) 2017-11-29 2017-11-29 Data capture method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711227255.1A CN108009235A (en) 2017-11-29 2017-11-29 Data capture method and device

Publications (1)

Publication Number Publication Date
CN108009235A true CN108009235A (en) 2018-05-08

Family

ID=62054863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711227255.1A Pending CN108009235A (en) 2017-11-29 2017-11-29 Data capture method and device

Country Status (1)

Country Link
CN (1) CN108009235A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040125146A1 (en) * 2002-09-16 2004-07-01 Siemens Aktiengesellschaft System for detection and indication of a secure status of appliances
CN1742269A (en) * 2003-06-17 2006-03-01 三星电子株式会社 The system of download contents via network
CN102004782A (en) * 2010-11-25 2011-04-06 北京搜狗科技发展有限公司 Search result sequencing method and search result sequencer
CN102164186A (en) * 2011-05-31 2011-08-24 互动在线(北京)科技有限公司 Method and system for realizing cloud search service
CN104268295A (en) * 2014-10-24 2015-01-07 迈普通信技术股份有限公司 Data query method and device
CN105701136A (en) * 2014-12-10 2016-06-22 辛学良 On-site sales and new products advertisements search method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040125146A1 (en) * 2002-09-16 2004-07-01 Siemens Aktiengesellschaft System for detection and indication of a secure status of appliances
CN1742269A (en) * 2003-06-17 2006-03-01 三星电子株式会社 The system of download contents via network
CN102004782A (en) * 2010-11-25 2011-04-06 北京搜狗科技发展有限公司 Search result sequencing method and search result sequencer
CN102164186A (en) * 2011-05-31 2011-08-24 互动在线(北京)科技有限公司 Method and system for realizing cloud search service
CN104268295A (en) * 2014-10-24 2015-01-07 迈普通信技术股份有限公司 Data query method and device
CN105701136A (en) * 2014-12-10 2016-06-22 辛学良 On-site sales and new products advertisements search method and system

Similar Documents

Publication Publication Date Title
CN107798038B (en) Data response method and data response equipment
CN104125258B (en) Method for page jump, terminal, server and system
CN107133174A (en) Test case code automatically generating device and method
US11705923B2 (en) Method and apparatus for storing data, and computer device and storage medium thereof
CN113364753B (en) Anti-crawler method and device, electronic equipment and computer readable storage medium
US20130198217A1 (en) Techniques for testing rule-based query transformation and generation
CN106649488B (en) Method and device for calling multi-data-source interactive interface
CN105138312A (en) Table generation method and apparatus
CN112667415B (en) Data calling method and device, readable storage medium and electronic equipment
CN109635084A (en) A kind of real-time quick De-weight method of multi-source data document and system
CN109298882A (en) Management method, computer readable storage medium and the terminal device of interface
CN111400170A (en) Data permission testing method and device
CN108366091A (en) Network request processing method, terminal and computer-readable medium
CN109542968A (en) One kind calculating data processing method and device based on VASP software
CN113407785A (en) Data processing method and system based on distributed storage system
CN105847446A (en) Network data obtaining method, device and system
CN107025259A (en) A kind of deployment method of details page, equipment and mobile terminal
CN111324725B (en) Topic acquisition method, terminal and computer readable storage medium
CN108681462A (en) A kind of size of code statistical method and device
CN108009235A (en) Data capture method and device
CN115328764A (en) Test code optimization method based on automatic test and related equipment thereof
CN110059091A (en) Method, apparatus, client, server and the system of index construct
CN111228815B (en) Method, apparatus, storage medium and system for processing configuration table of game
CN204731785U (en) Based on the identifying code intelligent acquisition equipment of cloud platform management
CN107491546A (en) A kind of page beautification method, device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180508