Movatterモバイル変換


[0]ホーム

URL:


CN108399223B - Data acquisition method and device and electronic equipment - Google Patents

Data acquisition method and device and electronic equipment
Download PDF

Info

Publication number
CN108399223B
CN108399223BCN201810145004.7ACN201810145004ACN108399223BCN 108399223 BCN108399223 BCN 108399223BCN 201810145004 ACN201810145004 ACN 201810145004ACN 108399223 BCN108399223 BCN 108399223B
Authority
CN
China
Prior art keywords
logic
function
service
data
data acquisition
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.)
Active
Application number
CN201810145004.7A
Other languages
Chinese (zh)
Other versions
CN108399223A (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 LtdfiledCriticalBeijing QIYI Century Science and Technology Co Ltd
Priority to CN201810145004.7ApriorityCriticalpatent/CN108399223B/en
Publication of CN108399223ApublicationCriticalpatent/CN108399223A/en
Application grantedgrantedCritical
Publication of CN108399223BpublicationCriticalpatent/CN108399223B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides a data acquisition method, a data acquisition device and electronic equipment, wherein the data acquisition method comprises the following steps: receiving a data acquisition request; determining the service logic of the target service according to a function which needs to be called for completing the target service, and taking the service logic of the target service as a first service logic, wherein the target service is as follows: the service for responding to the data acquisition request calls a first class of function from a first file and calls a second class of function from a second file according to the execution sequence of each function defined in the first service logic; and obtaining the data requested to be obtained by the data obtaining request according to the calling result. By the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely the data meeting the individual requirements of the users can be acquired.

Description

Data acquisition method and device and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data acquisition method, a data acquisition device, and an electronic device.
Background
With the rapid development of internet technology, internet data is more and more abundant, and users need to acquire data meeting the personalized requirements of the users from a large amount of internet data. In order to provide data meeting the personalized requirements of users, the data meeting the personalized requirements of the users needs to be acquired first, so that a way for acquiring the data meeting the personalized requirements of the users is urgently needed.
For example, there are a large number of videos in the internet, and the videos in which the user is interested are different for different users, so that the user needs to obtain the videos in which the user is interested from the large number of videos existing in the internet.
Disclosure of Invention
The embodiment of the invention aims to provide a data acquisition method, a data acquisition device and electronic equipment, and provides a way for acquiring data meeting personalized requirements of a user. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a data acquisition method, where the method includes:
receiving a data acquisition request;
determining the service logic of the target service according to a function which needs to be called for completing the target service, and taking the service logic of the target service as a first service logic, wherein the target service is as follows: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
According to the execution sequence of each function defined in the first service logic, calling a first type of function from a first file, and calling a second type of function from a second file, wherein the first type of function is as follows: executing the function called by the bottom layer logic which executes the first service logic, wherein the second type of function is as follows: executing the function called by the service layer logic of the first service logic in the function called by the first service logic, wherein the first file is as follows: the file stored with the first type of function is as follows: the file storing the second type of function;
and obtaining the data requested to be obtained by the data obtaining request according to a calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function.
Optionally, the first file further stores a function called by a bottom layer logic that executes a second service logic, where the second service logic is: business logic of other businesses than the target business.
Optionally, the obtaining the data requested to be obtained by the data obtaining request according to the call result includes:
determining user information corresponding to a client side which sends the data acquisition request;
and obtaining data with the matching degree of the user information being more than or equal to a preset matching degree from the calling result.
Optionally, after obtaining the data requested to be obtained by the data obtaining request according to the call result, the method further includes:
packaging the data requested to be acquired by the data acquisition request into data in a preset format as target data;
and sending the target data to a client sending the data acquisition request so that the client displays the target data.
Optionally, the bottom layer logic includes at least one of the following logic: network input and output logic, logic for realizing remote procedure call protocol, logic for realizing debugging information return and logic for realizing database access.
In a second aspect, an embodiment of the present invention further provides a data obtaining apparatus, where the apparatus includes:
the request receiving module is used for receiving a data acquisition request;
a service logic determining module, configured to determine a service logic of a target service according to a function that needs to be called to complete the target service, and use the service logic of the target service as a first service logic, where the target service is: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
A function calling module, configured to call a first type of function from a first file according to an execution sequence of each function defined in the first service logic, and call a second type of function from a second file, where the first type of function is: the functions included in the first service logic belong to functions of bottom layer logic of the first service logic, and the second type of functions are: the first service logic includes a function belonging to the service layer logic of the first service logic, and the first file is: the file stored with the first type function is as follows: the file storing the second type of function;
and the data acquisition module is used for acquiring the data requested to be acquired by the data acquisition request according to a calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function.
Optionally, the first file further stores a function of a bottom layer logic belonging to a second service logic, where the second service logic is: business logic of other businesses than the target business.
Optionally, the data obtaining module is specifically configured to:
determining user information corresponding to a client side which sends the data acquisition request;
and obtaining data with the matching degree of the user information being more than or equal to a preset matching degree from the calling result.
Optionally, the apparatus further comprises:
the data packaging module is used for packaging the data requested to be acquired by the data acquisition request into data in a preset format as target data after the data requested to be acquired by the data acquisition request is acquired according to the calling result;
and the data sending module is used for sending the target data to a client side which sends the data acquisition request so that the client side can display the target data.
Optionally, the bottom layer logic includes at least one of the following logic: network input and output logic, logic for realizing remote procedure call protocol, logic for realizing debugging information return and logic for realizing database access.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing any data acquisition method in the first aspect when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform any one of the data acquisition methods of the first aspect.
In another aspect of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the data acquisition methods described in the first aspect.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of a data acquisition method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a data acquisition method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to provide a way for acquiring data meeting personalized requirements of a user, embodiments of the present invention provide a data acquisition method, an apparatus and an electronic device.
In a first aspect, a data acquisition method provided in an embodiment of the present invention is introduced.
As shown in fig. 1, a data obtaining method provided in an embodiment of the present invention includes the following steps:
s101, receiving a data acquisition request;
s102, determining the service logic of the target service according to a function which needs to be called for completing the target service, and taking the service logic of the target service as a first service logic, wherein the target service is as follows: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
S103, calling a first class of function from the first file and calling a second class of function from the second file according to the execution sequence of each function defined in the first service logic, wherein the first class of function is as follows: the first service logic comprises functions belonging to the underlying logic of the first service logic, and the second type of functions are as follows: the first service logic comprises functions belonging to service layer logic of the first service logic, and the first file is as follows: a file storing a first type of function, the second file being: storing a file of the second type of function;
and S104, obtaining the data requested to be obtained by the data obtaining request according to a calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function.
With the data acquisition method shown in fig. 1, after receiving a data acquisition request, first, a target service responding to the data acquisition request is determined, and a service logic of the target service is determined as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
The data acquisition method provided by the embodiment of the invention will be described in detail below.
S101, receiving a data acquisition request;
when a user needs to obtain data meeting personalized requirements of the user from a large amount of internet data, a data obtaining request is usually sent through a client.
It is emphasized that the above data may be varied. For example, the data may be: other users that the user wants to find, APPs that the user is interested in, videos that the user is interested in, contents that the user wants to read, movie tickets that the user wants to purchase, goods, and so on. Of course, the data may also be any other data that the user wants to obtain, and the embodiment of the present invention does not specifically limit the data.
S102, determining the service logic of the target service according to a function which needs to be called for completing the target service, and taking the service logic of the target service as a first service logic, wherein the target service is as follows: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
after receiving the data acquisition request, a response to the received data acquisition request is started. The process of responding to the data acquisition request is essentially the business logic of the target service executing the data acquisition request, and the business logic of the target service is defined by the functions that need to be called to complete the target service. Therefore, the service logic of the target service needs to be determined according to the function that needs to be called to complete the target service.
It is emphasized that the business logic can be divided into underlying logic and business layer logic, divided from the functions implemented by the business logic. The underlying logic refers to business logic capable of implementing basic functions. By way of example, the underlying logic may be: network input and output logic, logic for realizing remote procedure call protocol, logic for realizing debugging information return, logic for realizing database access and the like; the service layer logic is a service logic that satisfies different requirements of each data acquisition request for different data acquisition requests, for example, the corresponding request parameters, configuration files and data files are usually different for different data acquisition requests. Thus, the business layer logic may be: logic for analyzing request parameters, logic for loading configuration files, logic for loading data files, and the like.
S103, calling a first type of function from a first file and calling a second type of function from a second file according to the execution sequence of each function defined in the first service logic;
wherein the first type of function is: the function called by the bottom layer logic for executing the first service logic in the function called by the first service logic is executed, and the second type of function is as follows: the function called by the business layer logic for executing the first business logic in the functions called by the first business logic is executed, and the first file is as follows: a file storing a first type of function, the second file being: storing a file of the second type of function;
It should be emphasized that the first function and the second function can be stored in two ways, which are as follows:
the first mode is as follows: storing the first type of function in a first file, and storing the second type of function in a second file, so that if a developer wants to debug the first type of function, the developer only needs to find the function needing to be debugged in the first file for debugging; similarly, if the developer wants to debug the second type of function, the developer only needs to find the function needing debugging in the second file for debugging. Therefore, the mode of storing the first type of function and the second type of function is convenient for developers to debug the first type of function and the second type of function. Therefore, in the embodiment of the present invention, the first class of functions and the second class of functions may be stored separately, that is, the first class of functions is stored in a first file, and the second class of functions is stored in a second file.
In one embodiment, the first file stores not only a function to be called by the underlying logic executing the first service logic, but also a function to be called by the underlying logic executing the second service logic, wherein the first service logic is different from the second service logic. This is due to: the repetition rate of functions required to be called by the bottom layer logic for executing different business logics is high, and when the functions required to be called by the bottom layer logic for executing the first business logic are the same as the functions required to be called by the bottom layer logic for executing the second business logic, the same functions can be stored only once, so that the storage space can be saved.
And the repetition rate of the functions required to be called by the service layer logic for executing different service logics is low, in order to conveniently call the second type of functions in the process of executing the service logics, the functions required to be called by the service layer logic for executing the first service logic and the functions required to be called by the service layer logic for executing the second service logic are stored in different second files. Of course, in order to save storage space, it is also reasonable that the functions that need to be called by the service layer logic with similar functions are stored in the same second file.
The second way is: the first type of functions and the second type of functions are stored in the same file, and obviously, if a developer wants to debug the first type of functions, the developer needs to search the first type of functions to be debugged from a large number of functions stored in the file and then can debug the first type of functions to be debugged; similarly, if the developer wants to debug the second type of function, the developer needs to search the second type of function to be debugged from a large number of functions stored in the file, and then can debug the second type of function to be debugged. Therefore, a user needs to spend a lot of time when searching for the function to be debugged, and therefore, the way of storing the first type of function and the second type of function is inconvenient for developers to debug the first type of function and the second type of function.
After the first business logic is determined, executing the first business logic; since the functions to be called for executing the first service logic may include a first type of function and a second type of function, the process of executing the first service logic is as follows: and calling the first type of function from the first file and calling the second type of function from the second file according to the execution sequence of each function defined in the first service logic.
For example, the functions to be called for executing the first service logic are function 1, function 2, and function 3, and the execution order of each function defined in the first service logic is: the method comprises the following steps of 1, 2 and 3, wherein the function 1 is a first type of function, and the functions 2 and 3 are second type of functions. Therefore, the process of executing the first business logic is: firstly, calling a function 1 from a first file; secondly, calling a function 2 from a second file; finally function 3 is called from the second file.
And S104, obtaining the data requested to be obtained by the data obtaining request according to the calling result.
The calling results comprise a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function
After the first type of function is called from the first file and the second type of function is called from the second file according to the execution sequence of each function defined in the first service logic, the data requested to be acquired by the data acquisition request can be acquired from a large amount of internet data stored in the database.
In one embodiment, obtaining the data requested to be obtained by the data obtaining request according to the calling result may include the following two steps:
the first step is: determining user information corresponding to a client sending a data acquisition request;
the second step is: and obtaining data with the matching degree of the user information more than or equal to the preset matching degree from the calling result.
In this embodiment, when obtaining data requested to be obtained by a data obtaining request, first determining user information corresponding to a client sending the data obtaining request, where the user information may be: user historical behavior, i.e., data viewed by the user before sending a data acquisition request; the user information may also be: attributes of the user, such as the user's gender, age, etc. The present invention is not particularly limited to the user information.
Because the probability that the data with the matching degree greater than or equal to the preset matching degree with the user information is the data which is interested by the user is high, after the user information corresponding to the client sending the data acquisition request is determined, the data with the matching degree greater than or equal to the preset matching degree with the user information is acquired from the calling result, and therefore the acquired data can meet the personalized requirements of the user. It should be noted that, in the embodiment of the present invention, the size of the preset matching degree is not specifically limited.
For example, the data acquisition request is used to request an ancient tv drama, the user information corresponding to the client that sends the data acquisition request is a user history behavior, and the user history behavior is: an ancient tv show by grandli. Therefore, the antique drama of the grandli lead may be searched in the calling result.
In order to make the description of the scheme clearer, the technical scheme provided by the embodiment of the invention will be described in detail by using specific examples.
Assuming that the data requested to be acquired by the data acquisition request is a video, acquiring the data requested to be acquired by the data acquisition request mainly needs to execute the following steps:
1. calling a first type of function from a first file to realize the underlying logic of providing an interface for analyzing data acquisition request parameters;
2. calling a second type of function from a second file to realize a service layer logic of 'analyzing the data acquisition request';
3. after the data acquisition request is analyzed, calling a first type of function from a first file to realize the bottom-layer logic of 'database access';
4. and calling a second type of function from a second file to realize the service logic of 'loading video from a database'.
It should be noted that, the above only describes the main steps of obtaining the video, and those skilled in the art can understand that, in practical application, the process of obtaining the video is complex, for example, business logic for implementing "network input and output", "returning debugging information", and the like is also included, and details of the embodiment of the present invention are not described herein again.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
An embodiment of the present invention further provides a data acquisition method, as shown in fig. 2, including the following steps:
s201, receiving a data acquisition request;
s202, according to a function which needs to be called for completing a target service, determining a service logic of the target service, and taking the service logic of the target service as a first service logic, wherein the target service is as follows: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
s203, according to the execution sequence of each function defined in the first service logic, calling a first type of function from the first file, and calling a second type of function from the second file, wherein the first type of function is as follows: the second type of functions in the functions included in the first service logic, which belong to the underlying logic of the first service logic, are: the first service logic comprises functions belonging to the service layer logic of the first service logic, and the first file is as follows: a file storing a first type of function, the second file being: storing a file of the second type of function;
and S204, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function.
S205, packaging the data requested to be acquired by the data acquisition request into data in a preset format as target data;
s206, sending the target data to the client side sending the data acquisition request so that the client side can display the target data.
In this embodiment, steps S201 to S204 are the same as steps S101 to S104, and since steps S201 to S204 have already been described in detail in the embodiment shown in fig. 1, they are not described again here. Step S205 and step 206 will be explained in detail below.
S205, packaging the data requested to be acquired by the data acquisition request into data in a preset format as target data;
because the client is not capable of normally displaying all formats of data, in order to enable the client to normally display the data requested to be acquired by the data acquisition request, after the data requested to be acquired by the data acquisition request is acquired, the data requested to be acquired by the data acquisition request is packaged into the data which can be normally displayed by the client and is in the preset format. For example, the preset format may be a json format or a pb format.
S206, the target data is sent to the client side sending the data acquisition request, so that the client side displays the target data.
After the data requested to be acquired by the data acquisition request is packaged into target data which can be normally displayed by the client, the target data is sent to the client sending the data acquisition request, so that the client can display the target data, namely, a user can acquire the data meeting the personalized requirements of the user.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired, and the data requested to be acquired by the data acquisition requests are packaged into the data in the preset format. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
In a second aspect, an embodiment of the present invention further provides a data acquisition apparatus, as shown in fig. 3, where the data acquisition apparatus includes:
arequest receiving module 310, configured to receive a data obtaining request;
a servicelogic determining module 320, configured to determine a service logic of a target service according to a function that needs to be called to complete the target service, and use the service logic of the target service as a first service logic, where the target service is: a service for responding to the data acquisition request, the first service logic comprising: bottom layer logic and business layer logic;
afunction calling module 330, configured to call a first type of function from a first file and a second type of function from a second file according to an execution sequence of each function defined in the first service logic, where the first type of function is: the functions included in the first service logic belong to the functions of the bottom layer logic of the first service logic, and the second type of functions are: the first service logic includes a function belonging to the service layer logic of the first service logic, and the first file is: the file stored with the first type function is as follows: the file storing the second type of function;
Thedata obtaining module 340 is configured to obtain the data requested to be obtained by the data obtaining request according to the call result, where the call result includes a first call result generated by calling the first type of function and a second call result generated by calling the second type of function.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
Optionally, the first file further stores a function of a bottom layer logic belonging to a second service logic, where the second service logic is: service logic of other services than the target service.
Optionally, the data obtaining module is specifically configured to:
determining user information corresponding to a client side which sends the data acquisition request;
and obtaining data with the matching degree of the user information being more than or equal to a preset matching degree from the calling result.
Optionally, the apparatus may further include:
the data packaging module is used for packaging the data requested to be acquired by the data acquisition request into data in a preset format as target data after the data requested to be acquired by the data acquisition request is acquired according to the calling result;
and the data sending module is used for sending the target data to a client side sending the data acquisition request so that the client side can display the target data.
Optionally, the bottom layer logic includes at least one of the following logic: network input and output logic, logic for realizing remote procedure call protocol, logic for realizing debugging information return and logic for realizing database access.
In a third aspect, an embodiment of the present invention further provides an electronic device, as shown in fig. 4, including aprocessor 401, acommunication interface 402, amemory 403, and acommunication bus 404, where theprocessor 401, thecommunication interface 402, and thememory 403 complete mutual communication through thecommunication bus 404,
amemory 403 for storing a computer program;
theprocessor 401 is configured to implement any of the data acquisition methods described in the above-mentioned first method embodiment when executing the program stored in thememory 403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a network Processor (Ne word Processor, NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
In a further embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform any of the data acquisition methods described in the method embodiments of the first aspect.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first type of function from the first file according to the execution sequence of each function defined in the first service logic, wherein the first type of function is a function belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the individual requirements of the users can be acquired.
In a further embodiment of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the data acquisition methods described in the method embodiments of the first aspect.
Compared with the prior art, according to the technical scheme provided by the embodiment of the invention, after a data acquisition request is received, firstly, the service logic of the target service is determined according to the function to be called for completing the target service, and the service logic of the target service is used as a first service logic; secondly, calling a first class of functions from a first file according to the execution sequence of each function defined in the first service logic, wherein the first class of functions are functions belonging to the bottom layer logic of the first service logic in the functions contained in the first service logic; calling a second type of function from a second file, wherein the second type of function is a function of a service layer logic belonging to the first service logic in the functions contained in the first service logic; and finally, obtaining the data requested to be obtained by the data obtaining request according to the calling result, wherein the calling result comprises a first calling result generated by calling the first type of function and a second calling result generated by calling the second type of function. Therefore, according to the technical scheme provided by the embodiment of the invention, after data acquisition requests sent by different users are received, the data requested by the data acquisition requests can be acquired, namely, the data meeting the personalized requirements of the users can be acquired.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments of the apparatus, the electronic device, the storage medium, and the like, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (9)

CN201810145004.7A2018-02-122018-02-12Data acquisition method and device and electronic equipmentActiveCN108399223B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810145004.7ACN108399223B (en)2018-02-122018-02-12Data acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810145004.7ACN108399223B (en)2018-02-122018-02-12Data acquisition method and device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN108399223A CN108399223A (en)2018-08-14
CN108399223Btrue CN108399223B (en)2022-06-03

Family

ID=63095894

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810145004.7AActiveCN108399223B (en)2018-02-122018-02-12Data acquisition method and device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN108399223B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114443316B (en)*2020-11-042024-06-04中移物联网有限公司Object access method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101021852A (en)*2006-10-102007-08-22鲍东山Video search dispatching system based on content
CN102426589A (en)*2011-10-312012-04-25合一网络技术(北京)有限公司Intermediate layer system for database information retrieval and information retrieval method
US8924476B1 (en)*2012-03-302014-12-30Google Inc.Recovery and fault-tolerance of a real time in-memory index
CN106161519A (en)*2015-04-012016-11-23阿里巴巴集团控股有限公司A kind of information getting method and device
CN107122365A (en)*2016-02-252017-09-01阿里巴巴集团控股有限公司The access method and device of heterogeneous database

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020078045A1 (en)*2000-12-142002-06-20Rabindranath DuttaSystem, method, and program for ranking search results using user category weighting
US20070168335A1 (en)*2006-01-172007-07-19Moore Dennis BDeep enterprise search
US20070239682A1 (en)*2006-04-062007-10-11Arellanes Paul TSystem and method for browser context based search disambiguation using a viewed content history
US20090234814A1 (en)*2006-12-122009-09-17Marco BoerriesConfiguring a search engine results page with environment-specific information
CN101681369B (en)*2007-05-152012-07-18Tivo有限公司 Media Data Content Search System
CN101833587A (en)*2010-05-282010-09-15上海交通大学 Internet Video Search System
CN105824712B (en)*2016-03-302019-07-30深圳市金证科技股份有限公司A kind of execution method and apparatus of service logic
CN106649856A (en)*2016-12-302017-05-10金蝶软件(中国)有限公司Database access device, system and method
CN107070870B (en)*2017-01-092020-04-14阿里巴巴集团控股有限公司Data acquisition method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101021852A (en)*2006-10-102007-08-22鲍东山Video search dispatching system based on content
CN102426589A (en)*2011-10-312012-04-25合一网络技术(北京)有限公司Intermediate layer system for database information retrieval and information retrieval method
US8924476B1 (en)*2012-03-302014-12-30Google Inc.Recovery and fault-tolerance of a real time in-memory index
CN106161519A (en)*2015-04-012016-11-23阿里巴巴集团控股有限公司A kind of information getting method and device
CN107122365A (en)*2016-02-252017-09-01阿里巴巴集团控股有限公司The access method and device of heterogeneous database

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"On the temporal access control implementation at the logical level of relational databases";Pavlo Zhezhnych等;《2016 XIth International Scientific and Technical Conference Computer Sciences and Information Technologies (CSIT)》;20160910;84-87*
"理解java三层架构:持久层、业务层、表现层";二月初七;《https://blog.csdn.net/m0_38021128/article/details/69372109》;20170406;1-3*

Also Published As

Publication numberPublication date
CN108399223A (en)2018-08-14

Similar Documents

PublicationPublication DateTitle
CN109885786B (en)Data caching processing method and device, electronic equipment and readable storage medium
CA2896819C (en)Identifying business type using public information
CN111400625B (en)Page processing method and device, electronic equipment and computer readable storage medium
CN116594683A (en)Code annotation information generation method, device, equipment and storage medium
CN109032693B (en)Method and device for loading display information, electronic equipment and readable storage medium
CN113918849A (en)Page display method, device and system, electronic equipment and storage medium
CN111783010B (en)Webpage blank page monitoring method, device, terminal and storage medium
CN111538510A (en)Method and device for determining application program installation package and electronic equipment
CN110058992B (en)Text template effect feedback method and device and electronic equipment
CN108399223B (en)Data acquisition method and device and electronic equipment
CN110286981A (en)The display methods and display system of the use state of virtual cloud desktop server
CN110874433B (en) Information processing method and system thereof, computer system and computer readable medium
CN113553522A (en)Page display method and device, electronic equipment and storage medium
US12001458B2 (en)Multi-cloud object store access
CN115185798A (en)Data acquisition and analysis method and device, electronic equipment and storage medium
CN114036132A (en) Object information processing method, device, storage medium and electronic device
CN112256654A (en) Document sharing method and device
CN113420037A (en)Real-time asset data changing method and device
CN114297469B (en) Retrieval method, device, system, electronic device and storage medium
CN119311181B (en) Split-screen display method, device, equipment, storage medium, and program product
CN113515713B (en)Webpage caching strategy generation method and device and webpage caching method and device
CN111104626B (en)Information storage method and device
CN114237624B (en) Error handling method, device, equipment, medium and product based on Go language
CN110543623B (en)PDF document display method and device
CN117435472A (en)Page test method, device, equipment and medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp