CN108399223A - A kind of data capture method, device and electronic equipment - Google Patents

A kind of data capture method, device and electronic equipment Download PDF

Info

Publication number
CN108399223A
CN108399223A CN201810145004.7A CN201810145004A CN108399223A CN 108399223 A CN108399223 A CN 108399223A CN 201810145004 A CN201810145004 A CN 201810145004A CN 108399223 A CN108399223 A CN 108399223A
Authority
CN
China
Prior art keywords
data
function
logic
acquisition request
service logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810145004.7A
Other languages
Chinese (zh)
Other versions
CN108399223B (en
Inventor
姚冕
张时骏
陈骁杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810145004.7A priority Critical patent/CN108399223B/en
Publication of CN108399223A publication Critical patent/CN108399223A/en
Application granted granted Critical
Publication of CN108399223B publication Critical patent/CN108399223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

An embodiment of the present invention provides a kind of data capture method, device and electronic equipment, the data capture method includes:Receive data acquisition request;The function that calls is needed according to target service is completed, determines the service logic of the target service, and using the service logic of the target service as the first service logic, wherein the target service is:Business for responding the data acquisition request executes sequence according to each function defined in first service logic, the first class function is called from the first file, and call the second class function from the second file;The data of data acquisition request institute acquisition request are obtained according to call result.The technical solution provided through the embodiment of the present invention can obtain the requested data of data acquisition request, can get the data for meeting users ' individualized requirement after the data acquisition request for receiving different user transmission.

Description

A kind of data capture method, device and electronic equipment
Technical field
The present invention relates to technical field of data processing, are filled more particularly to a kind of data capture method, a kind of data acquisition It sets and a kind of electronic equipment.
Background technology
With the fast development of Internet technology, internet data is more and more abundant, and user needs from a large amount of internet The data for meeting users ' individualized requirement are obtained in data.In order to provide the data for meeting users ' individualized requirement to the user, need The data for meeting users ' individualized requirement are first obtained, therefore, there is an urgent need to provide a kind of obtain to meet users ' individualized requirement The mode of data.
For example, there is a large amount of video in internet, for different users, interested video is different , therefore, user needs to get the interested video of user from multitude of video existing for internet, for this reason, it may be necessary to provide A method of obtaining the interested video of user.
Invention content
The embodiment of the present invention is designed to provide a kind of data capture method, device and electronic equipment, to provide one kind Obtain the mode for meeting users ' individualized requirement data.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of data capture method, the method includes:
Receive data acquisition request;
The function that calls is needed according to target service is completed, determines the service logic of the target service, and by the mesh The service logic of mark business is as the first service logic, wherein the target service is:For responding the data acquisition request Business, first service logic includes:Lower level logical and operation layer logic;
Sequence is executed according to each function defined in first service logic, the first kind is called from the first file Function, and the second class function is called from the second file, wherein first class function is:Execute first service logic Belong in the function called and executes the function that the Lower level logical of first service logic is called, second class function For:It executes and belongs to the operation layer logic for executing first service logic in the function that first service logic is called and adjusted Function, first file are:It is stored with the file of first class function, second file is:It is stored with described The file of second class function;
The data of data acquisition request institute acquisition request are obtained according to call result, wherein the call result packet The the second calling knot for including the first call result for calling first class function to generate and second class function being called to generate Fruit.
Optionally, first file, which is also stored with, executes the function that the Lower level logical of the second service logic is called, In, second service logic is:The service logic of other business in addition to the target service.
Optionally, the data that data acquisition request institute acquisition request is obtained according to the call result, including:
Determine the corresponding user information of client for sending the data acquisition request;
The data for being more than or equal to preset matching degree with the user information matching degree are obtained from the call result.
Optionally, it is described according to the call result obtain data acquisition request institute acquisition request data it Afterwards, the method further includes:
The data of data acquisition request institute acquisition request are encapsulated as to the data of preset format, as target data;
The target data is sent to the client for sending the data acquisition request, so that the client is shown The target data.
Optionally, the Lower level logical includes at least one of following logic:Network inputs export logic, realize remotely The logic of invocation of procedure agreement realizes logic, the logic of accessing data base that Debugging message returns.
Second aspect, the embodiment of the present invention additionally provide a kind of data acquisition facility, and described device includes:
Request receiving module, for receiving data acquisition request;
Service logic determining module, the function for being called according to target service needs are completed, determines the target service Service logic, and using the service logic of the target service as the first service logic, wherein the target service is:With In the business for responding the data acquisition request, first service logic includes:Lower level logical and operation layer logic;
Function call module, for according to each function defined in first service logic executing sequence, from the The first class function is called in one file, and calls the second class function wherein from the second file, and first class function is:It is described Belong to the function of the Lower level logical of first service logic, second class function in the function that first service logic includes For:Belong to the function of the operation layer logic of first service logic in the function that first service logic includes, described One file is:It is stored with the file of first class function, second file is:It is stored with the text of second class function Part;
Data acquisition module, the data for obtaining data acquisition request institute acquisition request according to call result, In, the call result includes the first call result for calling first class function to generate and calling second class function The second call result generated.
Optionally, first file is also stored with the function for the Lower level logical for belonging to the second service logic, wherein described Second service logic is:The service logic of other business in addition to the target service.
Optionally, data acquisition module is specifically used for:
Determine the corresponding user information of client for sending the data acquisition request;
The data for being more than or equal to preset matching degree with the user information matching degree are obtained from the call result.
Optionally, described device further includes:
Data package module, for obtaining data acquisition request institute acquisition request according to the call result described Data after, the data of data acquisition request institute acquisition request are encapsulated as to the data of preset format, as number of targets According to;
Data transmission blocks, for the target data to be sent to the client for sending the data acquisition request, with So that the client shows the target data.
Optionally, the Lower level logical includes at least one of following logic:Network inputs export logic, realize remotely The logic of invocation of procedure agreement realizes logic, the logic of accessing data base that Debugging message returns.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, including processor, communication interface, memory And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes that any data described in first aspect obtains Method.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer so that computer executes any number described in first aspect According to acquisition methods.
At the another aspect that the present invention is implemented, the embodiment of the present invention additionally provides a kind of computer program production comprising instruction Product, when run on a computer so that computer executes any data acquisition methods described in first aspect.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
A kind of flow diagram for data capture method that Fig. 1 is provided by the embodiment of the present invention;
A kind of another flow diagram for data capture method that Fig. 2 is provided by the embodiment of the present invention;
A kind of structural schematic diagram for data acquisition facility that Fig. 3 is provided by the embodiment of the present invention;
The structural schematic diagram for a kind of electronic equipment that Fig. 4 is provided by the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order to provide it is a kind of obtaining the mode of users ' individualized requirement data of meeting, an embodiment of the present invention provides a kind of numbers According to acquisition methods, device and electronic equipment.
It is introduced in a first aspect, being provided for the embodiments of the invention a kind of data capture method.
As shown in Figure 1, a kind of data capture method that the embodiment of the present invention is provided, includes the following steps:
S101 receives data acquisition request;
S102 needs the function that calls according to target service is completed, and determines the service logic of the target service, and by institute The service logic of target service is stated as the first service logic, wherein the target service is:For responding the data acquisition The business of request, first service logic include:Lower level logical and operation layer logic;
S103 executes sequence according to each function defined in the first service logic, first is called from the first file Class function, and the second class function is called from the second file, wherein the first class function is:The function that first service logic includes In belong to the first service logic Lower level logical function, the second class function is:Belong in the function that first service logic includes The function of the operation layer logic of first service logic, the first file are:It is stored with the file of the first class function, the second file is: It is stored with the file of the second class function;
S104 obtains the data of data acquisition request institute acquisition request according to call result, wherein call result packet The second call result for including the first call result for calling the first class function to generate and the second class function being called to generate.
Using above-mentioned data capture method shown in FIG. 1, after receiving data acquisition request, first, number of responses is determined According to the target service for obtaining request, and the service logic of target service is determined, as the first service logic;Secondly, according to first Each function defined in service logic executes sequence, the first class function is called from the first file, which is Belong to the function of the Lower level logical of the first service logic in the function that first service logic includes;Second is called from the second file Class function, second class function are the letter for the operation layer logic for belonging to the first service logic in the function that the first service logic includes Number;Finally, the data of data acquisition request institute acquisition request are obtained according to call result.As it can be seen that carrying through the embodiment of the present invention The technical solution of confession can obtain data acquisition request and be asked after the data acquisition request for receiving different user transmission The data asked can get the data for meeting users ' individualized requirement.
Data capture method provided in an embodiment of the present invention will be described in detail below.
S101 receives data acquisition request;
User needs to obtain when meeting the data of users ' individualized requirement from a large amount of internet data, it will usually pass through Client transmission data obtains request.
It is emphasized that above-mentioned data can there are many.For example, data can be:Other use that user wants to look up Family, the interested APP of user, the interested video of user, user want the content read, user wants the film ticket bought, Commodity etc..Certainly, above-mentioned data can also be that other any types user wants the data obtained, logarithm of the embodiment of the present invention According to being not specifically limited.
S102 needs the function that calls according to target service is completed, and determines the service logic of the target service, and by institute The service logic of target service is stated as the first service logic, wherein the target service is:For responding the data acquisition The business of request, first service logic include:Lower level logical and operation layer logic;
After receiving data acquisition request, received data acquisition request is begun to respond to.Response data obtains The process of request, the substantially service logic of the target service of execution data acquisition request, and the service logic of target service It is to need the function called to define by completion target service.The function that therefore, it is necessary to need to call according to target service is completed To determine the service logic of target service.
It is emphasized that being divided from the function of service logic realization, service logic can be divided into Lower level logical With operation layer logic.Wherein, Lower level logical is the service logic for referring to optimized integration function.For example, Lower level logical can To be:Network inputs export logic, the logic for realizing remote procedure call protocol, the logic for realizing Debugging message return, realize The logic etc. of database access;Operation layer logic refers to meeting each data acquisition request for different data acquisition requests The service logic of different demands, for example, for different data acquisition requests, corresponding required parameter, configuration file It is usually different with data file.Therefore, operation layer logic can be:It realizes the logic of analysis request parameter, realize load The logic of configuration file, the logic etc. for realizing load data file.
S103 executes sequence according to each function defined in the first service logic, first is called from the first file Class function, and the second class function is called from the second file;
Wherein, the first class function is:It executes to belong in the function that the first service logic is called and executes the first service logic The function that is called of Lower level logical, the second class function is:It executes and belongs to execution in the function that the first service logic is called The function that the operation layer logic of one service logic is called, the first file are:It is stored with the file of the first class function, the second file For:It is stored with the file of the second class function;
It is emphasized that the storage mode of the first class function and the second class function can there are two types of, it is specific as follows:
First way is:First class function is stored in the first file, the second class function is stored in the second file, In this way, if developer wants the first class function of debugging, it is only necessary to be found in the first file and the function debugged is needed to be adjusted Examination;Similarly, if developer wants the second class function of debugging, it is only necessary to find the letter for needing to debug in the second file Number is debugged.As it can be seen that the mode of the first class function of this storage and the second class function facilitates developer to the first kind Function and the second class function are debugged.It therefore, in embodiments of the present invention, can be by the first class function and the second class function point Storage is opened, i.e., the first class function is stored in the first file, the second class function is stored in the second file.
In one embodiment, the first file be not only stored with execute the first service logic Lower level logical need to call Function, be also stored with and execute the Lower level logical of the second service logic and need the function that calls, wherein the first service logic and the Two service logics are different.In this way due to:Execute the repetitive rate of the function called required for the Lower level logical of different service logics It is higher, the function called required for the Lower level logical for executing the first service logic and the Lower level logical for executing the second service logic When the function of required calling is identical, for these identical functions, can only it store once, it is empty so as to save storage Between.
And the repetitive rate for executing the function called required for the operation layer logic of different service logics is relatively low, in order to execute During service logic, facilitate and call the second class function, will be called required for the operation layer logic for executing the first service logic Function from execute the second service logic operation layer logic required for call function be stored in the second different files.When So, in order to save memory space, the function called required for intimate operation layer logic can also be stored in same In two files, this is also rational.
The second way is:First class function and the second class function are stored in same file, it is obvious that if exploitation Personnel want the first class function of debugging, then need to find the first kind for needing to debug in the big flow function stored in this document After function, the first class function that could be debugged to needs is debugged;Likewise, if developer wants the second class letter of debugging Number then needs after finding the second class function for needing to debug in the big flow function stored in this document, could be to needing Second class function of debugging is debugged.As it can be seen that user requires a great deal of time when searching the function for needing to debug, Therefore, the mode of the first class function of this storage and the second class function is not easy to the first class function of developer couple and the second class letter Number is debugged.
After the first service logic is determined, the first service logic is executed;It needs to adjust due to executing the first service logic Function may include the first class function and the second class function, and therefore, the process for executing the first service logic is:According to first Each function defined in service logic executes sequence, and the first class function is called from the first file, is adjusted from the second file With the second class function.
For example, it is function 1, function 2, function 3, and the first business to execute the first service logic to need the function called Each function defined in logic execution sequence be:Function 1, function 2, function 3, wherein function 1 is the first class function, letter Number 2 and function 3 are the second class function.Therefore, the process of the first service logic of execution is:The call function first from the first file 1;Secondly, the call function 2 from the second file;The finally call function 3 from the second file.
S104 obtains the data of data acquisition request institute acquisition request according to call result.
Wherein, above-mentioned call result includes the second class letter of the first call result for calling the first class function to generate and calling The second call result that number generates
Sequence is being executed according to each function defined in the first service logic, first kind letter is called from the first file Number, after calling the second class function in the second file, you can be obtained from a large amount of internet datas stored in database The data of data acquisition request institute acquisition request.
In one embodiment, the data that data acquisition request institute acquisition request is obtained according to call result, can wrap Include following two steps:
First step be:Determine that transmission data obtains the corresponding user information of client of request;
Second step is:The number for being more than or equal to preset matching degree with user information matching degree is obtained from call result According to.
In this embodiment, when obtaining the data of data acquisition request institute acquisition request, it is first determined transmission data Obtain the corresponding user information of client of request, wherein user information can be:User's history behavior, i.e., in transmission data It obtains before asking, the data that user is checked;User information can also be:The attribute of user, such as the gender of user, age Deng.The present invention is not specifically limited user information.
Data due to being more than or equal to preset matching degree with user information matching degree are the probability of the interested data of user It is larger, therefore, after the corresponding user information of client that transmission data obtains request is determined, obtained from call result To the data for being more than or equal to preset matching degree with user information matching degree, to which the data obtained can more meet of user Property demand.It should be noted that the embodiment of the present invention is not specifically limited the size of preset matching degree.
For example, data acquisition request is for asking ancient costume TV play, the client that transmission data obtains request to correspond to User information be user's history behavior, and the user's history behavior is:The ancient costume TV play that grandson pari acts the leading role.Therefore, Ke Yi The ancient costume TV play that grandson pari acts the leading role is searched in call result.
In order to enable scheme description is clearer, it below will be with specific example to technical solution provided in an embodiment of the present invention It is described in detail.
Assuming that the data of data acquisition request institute acquisition request are video, obtain the data acquisition request and ask to obtain number According to, it is usually required mainly for execute following steps:
1, the first class function is called from the first file with realize the interface of data acquisition request parameter " provide parsing " this One Lower level logical;
2, the second class function is called from the second file to realize " parsing the data acquisition request " this operation layer logic;
3, after having parsed the data acquisition request, the first class function is called from the first file, " database is visited with realization Ask " this Lower level logical;
4, the second class function is called from the second file, with realization " loading video from database " this service logic.
It should be noted that above-mentioned only describe the key step for obtaining video, it will be appreciated by those skilled in the art that , in practical applications, the process for obtaining video is complex, realizes " network inputs output " for example, also having, " returns and adjust The service logics such as examination information ", details are not described herein for the embodiment of the present invention.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
The embodiment of the present invention additionally provides a kind of data capture method, as shown in Fig. 2, including the following steps:
S201 receives data acquisition request;
S202 needs the function that calls according to target service is completed, and determines the service logic of the target service, and by institute The service logic of target service is stated as the first service logic, wherein the target service is:For responding the data acquisition The business of request, first service logic include:Lower level logical and operation layer logic;
S203 executes sequence according to each function defined in the first service logic, first is called from the first file Class function, and the second class function is called from the second file, wherein the first class function is:The function that first service logic includes In belong to the first service logic Lower level logical function, the second class function is:Belong in the function that first service logic includes The function of the operation layer logic of first service logic, the first file are:It is stored with the file of the first class function, the second file is: It is stored with the file of the second class function;
S204 obtains the data of data acquisition request institute acquisition request according to call result, wherein call result includes adjusting The first call result generated with the first class function and the second call result for calling the second class function to generate.
The data of data acquisition request institute acquisition request are encapsulated as the data of preset format, as target data by S205;
Target data is sent to the client for sending the data acquisition request by S206, so that client shows mesh Mark data.
In this embodiment, step S201 to S204 is identical as step S101 to S104, due to embodiment shown in Fig. 1 In step S201 to S204 is set forth in, details are not described herein.It below will be to step S205 and step 206 It is explained in detail.
The data of data acquisition request institute acquisition request are encapsulated as the data of preset format, as target data by S205;
Since client is not the data energy normal presentation to all formats, in order to make client The data of normal presentation data acquisition request institute acquisition request, after the data for getting data acquisition request institute acquisition request, The data of data acquisition request institute acquisition request are encapsulated as client and are capable of normal presentation, preset format data.For example, The preset format can be json formats or pb formats.
Target data is sent to the client that transmission data obtains request by S206, so that client shows number of targets According to.
By the data of data acquisition request institute acquisition request be encapsulated as client be capable of normal presentation target data it Afterwards, target data is sent to the client that transmission data obtains request, to which client can show target data, i.e. user The data for meeting users ' individualized requirement can be got.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand, and the data of data acquisition request institute acquisition request are encapsulated as to the data of preset format.It can See, the technical solution provided through the embodiment of the present invention, after the data acquisition request for receiving different user transmission, can The requested data of data acquisition request are obtained, the data for meeting users ' individualized requirement can be got.
Second aspect, the embodiment of the present invention additionally provide a kind of data acquisition facility, as shown in figure 3, the data acquisition Device includes:
Request receiving module 310, for receiving data acquisition request;
Service logic determining module 320, the function for being called according to target service needs are completed, determines the target industry The service logic of business, and using the service logic of the target service as the first service logic, wherein the target service is: Business for responding the data acquisition request, first service logic include:Lower level logical and operation layer logic;
Function call module 330, for executing sequence according to each function defined in first service logic, from The first class function is called in first file, and calls the second class function from the second file, wherein first class function is: Belong to the function of the Lower level logical of first service logic, the second class letter in the function that first service logic includes Number is:Belong to the function of the operation layer logic of first service logic in the function that first service logic includes, it is described First file is:It is stored with the file of first class function, second file is:It is stored with the text of second class function Part;
Data acquisition module 340, for obtaining data acquisition request institute acquisition request according to the call result Data, wherein the call result includes the first call result for calling first class function to generate and calls described the The second call result that two class functions generate.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
Optionally, first file is also stored with the function for the Lower level logical for belonging to the second service logic, wherein described Second service logic is:The service logic of other business in addition to the target service.
Optionally, data acquisition module is specifically used for:
Determine the corresponding user information of client for sending the data acquisition request;
The data for being more than or equal to preset matching degree with the user information matching degree are obtained from the call result.
Optionally, described device can also include:
Data package module, for obtaining data acquisition request institute acquisition request according to the call result described Data after, the data of data acquisition request institute acquisition request are encapsulated as to the data of preset format, as number of targets According to;
Data transmission blocks, for the target data to be sent to the client for sending the data acquisition request, with So that the client shows the target data.
Optionally, the Lower level logical includes at least one of following logic:Network inputs export logic, realize remotely The logic of invocation of procedure agreement realizes logic, the logic of accessing data base that Debugging message returns.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, as shown in figure 4, including processor 401, leading to Believe interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 pass through communication Bus 404 completes mutual communication,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes that above-mentioned first aspect method is implemented Any data acquisition methods described in example.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Pomponent Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), 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, Abbreviation CPU), network processing unit (Ne twork Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Applica tion Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that it is real that computer executes above-mentioned first aspect method Apply any data acquisition methods described in example.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers so that computer executes any data acquisition methods described in above-mentioned first aspect embodiment of the method.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first after receiving data acquisition request First, the function that calls is needed according to completing target service, determine the service logic of the target service, and by the target service Service logic as the first service logic;Secondly, sequence is executed according to each function defined in the first service logic, from The first class function is called in first file, which is to belong to the first business in the function that the first service logic includes to patrol The function for the Lower level logical collected;The second class function is called from the second file, which is that the first service logic includes Function in belong to the first service logic operation layer logic function;Finally, data acquisition request is obtained according to call result The data of institute's acquisition request, wherein call result includes the first call result for calling the first class function to generate and calls the The second call result that two class functions generate.As it can be seen that the technical solution provided through the embodiment of the present invention, is receiving different use After the data acquisition request that family is sent, the requested data of data acquisition request can be obtained, satisfaction can be got and used The data of family individual demand.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
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 actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For the embodiments such as electronic equipment, storage medium, since it is substantially similar to the method embodiment, so description is fairly simple, The relevent part can refer to the partial explaination of embodiments of 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 (11)

1. a kind of data capture method, which is characterized in that the method includes:
Receive data acquisition request;
The function that calls is needed according to target service is completed, determines the service logic of the target service, and by the target industry The service logic of business is as the first service logic, wherein the target service is:Industry for responding the data acquisition request Business, first service logic include:Lower level logical and operation layer logic;
Sequence is executed according to each function defined in first service logic, first kind letter is called from the first file Number, and calls the second class function from the second file, wherein first class function is:Execute the first service logic institute Belong in the function of calling and execute the function that the Lower level logical of first service logic is called, second class function is: It executes and belongs to the operation layer logic for executing first service logic in the function that first service logic is called and called Function, first file is:It is stored with the file of first class function, second file is:It is stored with described The file of two class functions;
The data of data acquisition request institute acquisition request are obtained according to call result, wherein the call result includes adjusting The first call result generated with first class function and the second call result for calling second class function to generate.
2. according to the method described in claim 1, it is characterized in that, first file, which is also stored with, executes the second service logic The function that is called of Lower level logical, wherein second service logic is:Other business in addition to the target service Service logic.
3. method according to claim 1 or 2, which is characterized in that described to obtain the data according to the call result The data of request institute acquisition request are obtained, including:
Determine the corresponding user information of client for sending the data acquisition request;
The data for being more than or equal to preset matching degree with the user information matching degree are obtained from the call result.
4. method according to claim 1 or 2, which is characterized in that obtain the number according to the call result described After the data for obtaining request institute acquisition request, the method further includes:
The data of data acquisition request institute acquisition request are encapsulated as to the data of preset format, as target data;
The target data is sent to the client for sending the data acquisition request, so that described in client displaying Target data.
5. method according to claim 1 or 2, which is characterized in that the Lower level logical include in following logic at least It is a kind of:Network inputs export logic, the logic for realizing remote procedure call protocol, the logic for realizing Debugging message return, realize The logic of database access.
6. a kind of data acquisition facility, which is characterized in that described device includes:
Request receiving module, for receiving data acquisition request;
Service logic determining module, the function for being called according to target service needs are completed, determines the industry of the target service It is engaged in logic, and using the service logic of the target service as the first service logic, wherein the target service is:For ringing The business of the data acquisition request, first service logic is answered to include:Lower level logical and operation layer logic;
Function call module, for executing sequence according to each function defined in first service logic, from the first text The first class function is called in part, and calls the second class function from the second file, wherein first class function is:Described Belong to the function of the Lower level logical of first service logic in the function that one service logic includes, second class function is: Belong to the function of the operation layer logic of first service logic, first text in the function that first service logic includes Part is:It is stored with the file of first class function, second file is:It is stored with the file of second class function;
Data acquisition module, the data for obtaining data acquisition request institute acquisition request according to call result, wherein institute Call result is stated to include the first call result for calling first class function to generate and second class function is called to generate The second call result.
7. device according to claim 6, which is characterized in that first file, which is also stored with, belongs to the second service logic Lower level logical function, wherein second service logic is:The business of other business in addition to the target service is patrolled Volume.
8. the device described according to claim 6 or 7, which is characterized in that data acquisition module is specifically used for:
Determine the corresponding user information of client for sending the data acquisition request;
The data for being more than or equal to preset matching degree with the user information matching degree are obtained from the call result.
9. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Data package module, in the number for obtaining data acquisition request institute acquisition request according to the call result According to later, the data of data acquisition request institute acquisition request are encapsulated as to the data of preset format, as target data;
Data transmission blocks, for the target data to be sent to the client for sending the data acquisition request, so that The client shows the target data.
10. the device described according to claim 6 or 7, which is characterized in that the Lower level logical include in following logic at least It is a kind of:Network inputs export logic, the logic for realizing remote procedure call protocol, the logic for realizing Debugging message return, realize The logic of database access.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any data recipients of claim 1-5 Method.
CN201810145004.7A 2018-02-12 2018-02-12 Data acquisition method and device and electronic equipment Active CN108399223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810145004.7A CN108399223B (en) 2018-02-12 2018-02-12 Data acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810145004.7A CN108399223B (en) 2018-02-12 2018-02-12 Data acquisition method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108399223A true CN108399223A (en) 2018-08-14
CN108399223B CN108399223B (en) 2022-06-03

Family

ID=63095894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810145004.7A Active CN108399223B (en) 2018-02-12 2018-02-12 Data acquisition method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108399223B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443316A (en) * 2020-11-04 2022-05-06 中移物联网有限公司 Object access method and device and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020078045A1 (en) * 2000-12-14 2002-06-20 Rabindranath Dutta System, method, and program for ranking search results using user category weighting
EP1808787A1 (en) * 2006-01-17 2007-07-18 Sap Ag Deep enterprise search
CN101021852A (en) * 2006-10-10 2007-08-22 鲍东山 Video search dispatching system based on content
US20070239682A1 (en) * 2006-04-06 2007-10-11 Arellanes Paul T System and method for browser context based search disambiguation using a viewed content history
CA2683192A1 (en) * 2007-05-15 2008-11-15 Tivo Inc. Media data content search system
US20090234814A1 (en) * 2006-12-12 2009-09-17 Marco Boerries Configuring a search engine results page with environment-specific information
CN101833587A (en) * 2010-05-28 2010-09-15 上海交通大学 Network video searching system
CN102426589A (en) * 2011-10-31 2012-04-25 合一网络技术(北京)有限公司 Interlayer system used for searching database information and information searching method
US8924476B1 (en) * 2012-03-30 2014-12-30 Google Inc. Recovery and fault-tolerance of a real time in-memory index
CN105824712A (en) * 2016-03-30 2016-08-03 深圳市金证科技股份有限公司 Method and device for executing business logic
CN106161519A (en) * 2015-04-01 2016-11-23 阿里巴巴集团控股有限公司 A kind of information getting method and device
CN106649856A (en) * 2016-12-30 2017-05-10 金蝶软件(中国)有限公司 Database access device, system and method
CN107070870A (en) * 2017-01-09 2017-08-18 阿里巴巴集团控股有限公司 A kind of data capture method and device
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020078045A1 (en) * 2000-12-14 2002-06-20 Rabindranath Dutta System, method, and program for ranking search results using user category weighting
EP1808787A1 (en) * 2006-01-17 2007-07-18 Sap Ag Deep enterprise search
US20070239682A1 (en) * 2006-04-06 2007-10-11 Arellanes Paul T System and method for browser context based search disambiguation using a viewed content history
CN101021852A (en) * 2006-10-10 2007-08-22 鲍东山 Video search dispatching system based on content
US20090234814A1 (en) * 2006-12-12 2009-09-17 Marco Boerries Configuring a search engine results page with environment-specific information
CA2683192A1 (en) * 2007-05-15 2008-11-15 Tivo Inc. Media data content search system
CN101833587A (en) * 2010-05-28 2010-09-15 上海交通大学 Network video searching system
CN102426589A (en) * 2011-10-31 2012-04-25 合一网络技术(北京)有限公司 Interlayer system used for searching database information and information searching method
US8924476B1 (en) * 2012-03-30 2014-12-30 Google Inc. Recovery and fault-tolerance of a real time in-memory index
CN106161519A (en) * 2015-04-01 2016-11-23 阿里巴巴集团控股有限公司 A kind of information getting method and device
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database
CN105824712A (en) * 2016-03-30 2016-08-03 深圳市金证科技股份有限公司 Method and device for executing business logic
CN106649856A (en) * 2016-12-30 2017-05-10 金蝶软件(中国)有限公司 Database access device, system and method
CN107070870A (en) * 2017-01-09 2017-08-18 阿里巴巴集团控股有限公司 A kind of data capture method and device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ANAND PAUL 等: ""Video search and indexing with reinforcement agent for interactive multimedia services"", 《HTTPS://DL.ACM.ORG/DOI/PDF/10.1145/2423636.2423643》 *
PAVLO ZHEZHNYCH等: ""On the temporal access control implementation at the logical level of relational databases"", 《2016 XITH INTERNATIONAL SCIENTIFIC AND TECHNICAL CONFERENCE COMPUTER SCIENCES AND INFORMATION TECHNOLOGIES (CSIT)》 *
二月初七: ""理解java三层架构:持久层、业务层、表现层"", 《HTTPS://BLOG.CSDN.NET/M0_38021128/ARTICLE/DETAILS/69372109》 *
周秀明等: "一种基于个性化信息服务的移动搜索引擎", 《情报科学》 *
徐璐: ""基于Web挖掘的视频推荐***分析与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443316A (en) * 2020-11-04 2022-05-06 中移物联网有限公司 Object access method and device and electronic equipment
CN114443316B (en) * 2020-11-04 2024-06-04 中移物联网有限公司 Object access method and device and electronic equipment

Also Published As

Publication number Publication date
CN108399223B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CA2841815C (en) Method for associating third party content with online document signing
CN107798038B (en) Data response method and data response equipment
US20110264692A1 (en) System for searching property listings based on location
CN107870989A (en) webpage generating method and terminal device
CN110334109A (en) Relational database data query method, system, medium and electronic equipment
CN111597002A (en) Page rendering method and device, electronic equipment and storage medium
WO2012102761A1 (en) Method and system for providing detailed information in an interactive manner in a short message service (sms) environment
CN107329991A (en) A kind of list access to web page and methods of exhibiting and its system
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN112650804B (en) Big data access method, device, system and storage medium
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN108399223A (en) A kind of data capture method, device and electronic equipment
CN111142989A (en) Object management method, device and storage medium
US9230022B1 (en) Customizable result sets for application program interfaces
CN113726855B (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN114417112A (en) Data processing method, data processing apparatus, electronic device, and storage medium
CN113064987A (en) Data processing method, apparatus, electronic device, medium, and program product
CN110134429A (en) Network information browsing method, device, equipment, storage medium and system
WO2021213085A1 (en) System and method for storing data on cloud storage
CN113672567B (en) File construction method, device, electronic equipment and computer readable medium
CN112988291B (en) Page event management method and device, computer readable medium and electronic equipment
CN114357334A (en) Model access method and device, storage medium and computer equipment
CN116303988A (en) Query request processing method, device, electronic equipment, medium and program product
CN115185798A (en) Data acquisition and analysis method and 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
GR01 Patent grant
GR01 Patent grant