CN116680316A - Method, device, medium and electronic equipment for acquiring dimension data - Google Patents

Method, device, medium and electronic equipment for acquiring dimension data Download PDF

Info

Publication number
CN116680316A
CN116680316A CN202310701610.3A CN202310701610A CN116680316A CN 116680316 A CN116680316 A CN 116680316A CN 202310701610 A CN202310701610 A CN 202310701610A CN 116680316 A CN116680316 A CN 116680316A
Authority
CN
China
Prior art keywords
target
data
dimension
data source
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310701610.3A
Other languages
Chinese (zh)
Inventor
陈纪强
郑浩瀚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network 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 Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202310701610.3A priority Critical patent/CN116680316A/en
Publication of CN116680316A publication Critical patent/CN116680316A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • 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/2455Query execution
    • G06F16/24553Query execution of query operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The disclosure relates to a method, a device, a medium and an electronic device for acquiring dimension data, wherein the method comprises the following steps: receiving a service call request sent by a data demand party based on a dimension data request; responding to the service calling request, and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request; the target dimension data is sent to the data demand side, the target dimension data is used for being related to the streaming data generated by the data demand side, the data demand side does not need to perceive the storage type of the data source side and the target dimension data, namely repeated development of acquiring the same dimension data is not needed to be carried out on each data demand side, multiplexing acquisition of the existing dimension data can be achieved only by calling dimension query service, and the target dimension data is related to the streaming data, so that the data dimension of the streaming data is increased, and data analysis is facilitated.

Description

Method, device, medium and electronic equipment for acquiring dimension data
Technical Field
The disclosure relates to the technical field of electronic information, in particular to a method, a device, a medium and electronic equipment for acquiring dimension data.
Background
In the field of data analysis, it is often difficult for a single dimension to meet the needs of data analysis, and therefore, expansion of the dimension of data is required.
At present, dimension data are stored in different positions and maintained by different business departments, when a developer develops, the developer needs to access data sources of the different business departments to acquire corresponding dimension data, and when other developers encounter the process of acquiring the same dimension data, the developer still needs to re-develop to acquire the corresponding dimension data, multiplexing acquisition of the dimension data cannot be realized, and the practicability is lower.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method of acquiring dimension data, comprising:
receiving a service call request sent by a data demand party based on a dimension data request;
responding to the service calling request, and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request;
and sending the target dimension data to the data demander, wherein the target dimension data is used for being related to stream data generated by the data demander.
In a second aspect, the present disclosure provides an apparatus for acquiring dimension data, comprising:
the receiving module is used for receiving a service call request sent by the data demand party based on the dimension data request;
the determining module is used for responding to the service calling request and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request;
and the sending module is used for sending the target dimension data to the data requiring party, wherein the target dimension data is used for being related to the streaming data generated by the data requiring party.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which when executed by a processing device implements the steps of the method described in the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method described in the first aspect.
Through the technical scheme, unified dimension query service is provided by the data demand parties with different service directions, and the dimension query service supports downward query of data stored by different data source parties, so that the data demand parties do not need to perceive the storage types of the data source parties and target dimension data, namely, repeated development of acquiring the same dimension data is not needed in each data demand party, multiplexing acquisition of the existing dimension data can be realized only by calling the dimension query service, and the target dimension data is related to streaming data, thereby increasing the data dimension of the streaming data and facilitating data analysis.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
fig. 1 is a flow chart illustrating a method of acquiring dimension data according to an embodiment of the present disclosure.
Fig. 2 is a flow chart illustrating a method of acquiring dimension data according to an embodiment of the present disclosure.
Fig. 3 is a block diagram illustrating an apparatus for acquiring dimension data, according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural view of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or the use of the data) related to the technical scheme should conform to the requirements of the corresponding laws and regulations and related regulations.
In an advertising business scenario, the dimensions of its data are diverse. In the analysis of the advertisement data, it is often difficult to meet the analysis requirement in a single dimension, so that the expansion of dimension data of the advertisement data can be selected.
At present, dimension data are stored in different positions and maintained by different business departments, when a developer develops, the developer needs to access data sources of the different business departments to acquire corresponding dimension data, and when other developers acquire the same dimension data during development, the developer still needs to re-develop the same dimension data to acquire the corresponding dimension data, multiplexing acquisition of the dimension data cannot be realized, and the practicability is lower.
In addition, since different developers separately develop and acquire dimension data, when dimension data of complex dimensions is generated based on data provided by a plurality of data sources, it is difficult to ensure that the caliber of the dimension data is uniform, thereby affecting data analysis.
In view of this, an embodiment of the disclosure provides a method, an apparatus, a medium, and an electronic device for acquiring dimension data.
The embodiments of the present disclosure are further explained below.
Fig. 1 is a flowchart illustrating a method of acquiring dimension data, which may be applied to a service side, according to an embodiment of the present disclosure, and referring to fig. 1, the method of acquiring dimension data may include the steps of:
step 101, a service party receives a service call request sent by a data demand party based on a dimension data request.
Wherein the dimension data request is a request for expanding dimension information of stream data generated by the data demander. In the advertisement scene, the streaming data can be real-time advertisement data, such as data of real-time clicking advertisements by a user, and the data can be acquired through a log; the dimension data request is a request for expanding dimension information, and the expanded dimension information can be information such as name information, production place and price information of the commodity corresponding to the advertisement.
The service call request is used for requesting services supported by the data demander by the service side, the service side converges external query interfaces and various types of storage of all data sources, supports downward query of data stored by different data sources, and does not need to be perceived by the data demander, wherein the data sources can be understood as terminals or cloud storage engines and the like for providing dimension data for the data demander.
In step 102, the service side calls the dimension inquiry service to determine the target dimension data corresponding to the dimension data request in response to the service call request.
Step 103, the service transmits the target dimension data to the data demander, wherein the target dimension data is used for being related to the streaming data generated by the data demander.
Through the scheme, unified dimension query service is provided by the data demand parties with different service directions, and the dimension query service supports downward query of data stored by different data source parties, so that the data demand parties do not need to perceive the storage types of the data source parties and target dimension data, namely, repeated development of acquiring the same dimension data is not needed in each data demand party, multiplexing acquisition of the existing dimension data can be realized only by calling the dimension query service, and the target dimension data is related to the stream data, thereby increasing the data dimension of the stream data and facilitating data analysis.
In some embodiments, the service invocation request includes a first target primary key identification and a first target dimension identification, the dimension query service determining target dimension data corresponding to the dimension data request by: and determining target dimension data corresponding to the dimension data request according to the first target primary key identifier and the first target dimension identifier.
It is to be noted that the service call request is generated based on the dimension data request, the first target primary key identifier and the first target dimension identifier can be obtained by analyzing the dimension data request, and then the service call request is generated based on the first target primary key identifier and the first target dimension identifier.
The first target primary key identifies a first target data source for identifying data of the target dimension of the data-requiring-party extension, and the first target dimension identifies a name for identifying the data of the target dimension of the data-requiring-party extension. For example, the first target primary key identifier may be a product identifier 1, and the first target dimension identifier may be a production place, and the service call request may obtain target dimension data corresponding to the production place from a dimension table corresponding to the product identifier 1, where the target dimension data characterizes the production place of the product.
By the method, the first target primary key identification and the first target dimension identification are utilized to determine the target dimension data corresponding to the dimension data request.
In some embodiments, the step of determining the target dimension data corresponding to the dimension data request according to the first target primary key identifier and the first target dimension identifier may be implemented as follows: searching a first target data source corresponding to the first target main key identifier from a target data source side according to the first target main key identifier; and determining target dimension data according to the first target data source and the first target dimension identification.
It should be noted that, because the data source is maintained in the data source side, the data source may have a condition of updating data, and further, according to the first target primary key identifier, the first target data source corresponding to the first target primary key identifier is searched from the target data source side, and the data is obtained from the target data source side in real time, so that high real-time performance of the obtained target dimension data is ensured.
In some embodiments, the dimension query service adopts a lightweight architecture, so that the efficiency of acquiring data can be improved.
In some embodiments, before searching for the first target data source corresponding to the first target primary key identification from the target data source party according to the first target primary key identification, the method may further include: searching a first target data source corresponding to the first target main key identifier in a cache area provided by the service side, and under the condition that the first target data source is searched in the cache area, the step of searching the first target data source corresponding to the first target main key identifier from the target data source side is not required to be executed.
It should be noted that, the buffer provided by the service side may be used to buffer the data source, so as to facilitate improving the efficiency of acquiring the data source, so that the first target data source may be preferentially searched from the buffer.
Furthermore, after the cache region searches the first target data source corresponding to the first target primary key identifier, the step of searching the first target data source corresponding to the first target primary key identifier from the target data source side is not needed, so that invalid power consumption is avoided.
In some embodiments, the buffer may buffer a second target data source corresponding to a second target primary key identifier, and further, the second target data source may be updated in the buffer at a timing, where a data amount of the second target data source is below a preset data amount threshold.
The first target primary key identifier and the second target primary key identifier may be the same or different.
The preset data amount threshold value can be set according to an actual application scene, for example, the preset data amount threshold value can be set smaller under the condition that a scene with high real-time performance is required; in the case of a scene that should have a low requirement for real-time, the preset data amount threshold may be set higher.
It should be noted that, when the data amount of the cached data source is large, the update time may be long, and the real-time performance of the obtained target dimension data may be low. Therefore, the buffer area can be set to only buffer the second target data source corresponding to the second target main key identifier, so that the situation that the real-time performance of the data is not high due to long updating time is avoided. It can be understood that, for a data source with a larger data volume, if the data source is not cached in the cache region, the data source needs to acquire the data, so that the instantaneity of the acquired data can be improved.
In some embodiments, the step of searching the target data source side for the first target data source corresponding to the first target primary key identifier according to the first target primary key identifier may be implemented by: and calling a target remote interface corresponding to the first target main key identifier, and searching a first target data source corresponding to the first target main key identifier from a target data source party through the target remote interface, wherein the target remote interface is provided by the target data source party.
The first target primary key identifier may also correspond to only one target data source, and thus to only one target remote interface. The server supports remote interfaces provided by different data originators, so that a first target data source corresponding to a first target primary key identifier is searched from the target data originators through the target remote interfaces, and the data origins and types of the data are not required to be perceived by the data requesters. In some embodiments, the step of determining the target dimension data based on the first target data source and the first target dimension identification may be implemented by: according to the first target data source, selecting target data from the first target data source according to operation logic corresponding to the first target dimension identification; and determining target dimension data according to the operation logic based on the screened target data.
The operation logic is used for representing a standard adopted for calculating the target dimension data corresponding to the first target dimension identification. The criterion here is understood to be a criterion for selecting target data and a criterion for performing a logical operation on the target data.
For example, some dimension information cannot be obtained directly through table lookup, and certain logic operation is required. For example, in the case of acquiring target dimension data of a commodity level, a plurality of data in a plurality of data sources may be required to be integrated to obtain the target dimension data of the commodity level. In this example, the plurality of data in the plurality of data sources may be implemented by selecting a standard of target data, the plurality of data may be integrated, and the commodity grade may be obtained by a logic operation.
By the method, the operation logic which needs to call the data in the multiple target data sources to obtain the complex dimension is maintained on the server, so that the calibers of the target dimension data acquired by different data demand parties can be ensured to be consistent.
Referring to fig. 2, the computing engine detects the input of the streaming data, that is, may generate a dimension data request and send a service call request to a unified dimension query engine, which is provided by a service party and by which a dimension query service is provided. The RPC (Remote Procedure Call ) interface is an interface for calling dimension query service, whether a first target data source corresponding to a first target main key identifier exists or not is read from an LRU (Least Recently Used, at least recently used) cache and a Redis cache through the call of the RPC interface, if the first target data source corresponding to the first target main key identifier does not exist, the corresponding RPC interface (RPC 1, RPC2 or RPC 3) is called, the data access of a corresponding service party (service party 1, service party 2 or service party 3) is realized, the first target data source corresponding to the first target main key identifier is searched in the corresponding service party, the target dimension data of the first target dimension identifier in the searched first target data source is returned to a calculation engine, and the target dimension data continuously passes through kafka dwd and Hive ods downwards to form a Hive real-time/hour dimension table. Wherein, RPC1, RPC2 or RPC3 is the target remote interface, and service party 1, service party 2 or service party 3 is the target data source party.
Based on the same inventive concept, an embodiment of the present disclosure discloses an apparatus for acquiring dimension data, and fig. 3 is a block diagram of an apparatus for acquiring dimension data according to an embodiment of the present disclosure, and referring to fig. 3, the apparatus 300 for acquiring dimension data may include:
a receiving module 301, configured to receive a service call request sent by a data demander based on a dimension data request;
a determining module 302, configured to respond to the service calling request, and call a dimension query service to determine target dimension data corresponding to the dimension data request;
a sending module 303, configured to send the target dimension data to the data demander, where the target dimension data is used for associating to streaming data generated by the data demander.
Optionally, the service invocation request includes a first target primary key identifier and a first target dimension identifier, and the determining module 302 includes a determining submodule, where the determining submodule is specifically configured to invoke the dimension query service to determine target dimension data corresponding to the dimension data request by:
and determining target dimension data corresponding to the dimension data request according to the first target primary key identifier and the first target dimension identifier.
Optionally, the determining submodule includes:
the searching unit is used for searching a first target data source corresponding to the first target main key identifier from a target data source side according to the first target main key identifier;
and the determining unit is used for determining the target dimension data according to the first target data source and the first target dimension identification.
Optionally, before searching for the first target data source corresponding to the first target primary key identifier from the target data source side according to the first target primary key identifier, the apparatus 300 further includes:
and the searching module is used for searching a first target data source corresponding to the first target main key identifier in a cache area provided by the service side, wherein the step of searching the first target data source corresponding to the first target main key identifier from the target data source side is not required to be executed under the condition that the first target data source is searched in the cache area.
Optionally, the searching unit is specifically configured to invoke a target remote interface corresponding to the first target primary key identifier, and search, from a target data source party, for a first target data source corresponding to the first target primary key identifier through the target remote interface, where the target remote interface is provided by the target data source party.
Optionally, the determining unit is specifically configured to:
according to the first target data source, selecting target data from the first target data source according to operation logic corresponding to the first target dimension identification;
and determining the target dimension data according to the operation logic based on the screened target data, wherein the operation logic is used for representing the standard adopted for calculating the target dimension data corresponding to the first target dimension identification.
Optionally, the buffer may buffer a second target data source corresponding to a second target primary key identifier, and the apparatus 300 further includes:
and the updating module is used for updating the second target data source in the buffer area at fixed time, and the data volume of the second target data source is lower than a preset data volume threshold value.
For the specific implementation of the apparatus 300, reference may be made to the above-mentioned related embodiments, which are not described herein.
Based on the same inventive concept, the embodiments of the present disclosure also provide a computer-readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the above-described method of acquiring dimension data.
Based on the same inventive concept, the embodiments of the present disclosure further provide an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of the method of acquiring dimension data described above.
Referring now to fig. 4, a schematic diagram of an architecture of an electronic device 400 (e.g., a server or data-demander of fig. 1) suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the electronic device may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a service call request sent by a data demand party based on a dimension data request; responding to the service calling request, and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request; and sending the target dimension data to the data demander, wherein the target dimension data is used for being related to stream data generated by the data demander.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a module does not in some cases define the module itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims. The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.

Claims (10)

1. A method of acquiring dimension data, comprising:
receiving a service call request sent by a data demand party based on a dimension data request;
responding to the service calling request, and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request;
and sending the target dimension data to the data demander, wherein the target dimension data is used for being related to stream data generated by the data demander.
2. The method of claim 1, wherein the service invocation request includes a first target primary key identification and a first target dimension identification, the dimension inquiry service determining target dimension data corresponding to the dimension data request by:
and determining target dimension data corresponding to the dimension data request according to the first target primary key identifier and the first target dimension identifier.
3. The method of claim 2, wherein the determining the target dimension data corresponding to the dimension data request based on the first target primary key identification and the first target dimension identification comprises:
searching a first target data source corresponding to the first target main key identifier from a target data source side according to the first target main key identifier;
and determining the target dimension data according to the first target data source and the first target dimension identification.
4. A method according to claim 3, wherein prior to locating a first target data source corresponding to the first target primary key identification from a target data source party based on the first target primary key identification, the method further comprises:
searching a first target data source corresponding to the first target primary key identifier in a cache area provided by the service side, wherein under the condition that the first target data source is searched in the cache area, the step of searching the first target data source corresponding to the first target primary key identifier from the target data source side is not required to be executed.
5. A method according to claim 3, wherein said looking up a first target data source corresponding to said first target primary key identification from a target data source party based on said first target primary key identification comprises:
and calling a target remote interface corresponding to the first target main key identifier, and searching a first target data source corresponding to the first target main key identifier from a target data source party through the target remote interface, wherein the target remote interface is provided by the target data source party.
6. A method according to claim 3, wherein said determining said target dimension data from said first target data source and said first target dimension identification comprises:
according to the first target data source, selecting target data from the first target data source according to operation logic corresponding to the first target dimension identification;
and determining the target dimension data according to the operation logic based on the screened target data, wherein the operation logic is used for representing the standard adopted for calculating the target dimension data corresponding to the first target dimension identification.
7. The method of claim 4, wherein the cache region is configured to cache a second target data source corresponding to a second target primary key identifier, the method further comprising:
and updating the second target data source in the buffer area at regular time, wherein the data volume of the second target data source is lower than a preset data volume threshold value.
8. An apparatus for acquiring dimension data, comprising:
the receiving module is used for receiving a service call request sent by the data demand party based on the dimension data request;
the determining module is used for responding to the service calling request and calling a dimension inquiry service to determine target dimension data corresponding to the dimension data request;
and the sending module is used for sending the target dimension data to the data requiring party, wherein the target dimension data is used for being related to the streaming data generated by the data requiring party.
9. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processing device, carries out the steps of the method according to any one of claims 1-7.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of claims 1-7.
CN202310701610.3A 2023-06-13 2023-06-13 Method, device, medium and electronic equipment for acquiring dimension data Pending CN116680316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310701610.3A CN116680316A (en) 2023-06-13 2023-06-13 Method, device, medium and electronic equipment for acquiring dimension data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310701610.3A CN116680316A (en) 2023-06-13 2023-06-13 Method, device, medium and electronic equipment for acquiring dimension data

Publications (1)

Publication Number Publication Date
CN116680316A true CN116680316A (en) 2023-09-01

Family

ID=87778902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310701610.3A Pending CN116680316A (en) 2023-06-13 2023-06-13 Method, device, medium and electronic equipment for acquiring dimension data

Country Status (1)

Country Link
CN (1) CN116680316A (en)

Similar Documents

Publication Publication Date Title
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111163324B (en) Information processing method and device and electronic equipment
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111694629A (en) Information display method and device and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111241137B (en) Data processing method, device, electronic equipment and storage medium
CN110619101B (en) Method and apparatus for processing information
CN111798251A (en) Verification method and device of house source data and electronic equipment
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111459893B (en) File processing method and device and electronic equipment
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113971192A (en) Data processing method and device, readable medium and electronic equipment
CN116680316A (en) Method, device, medium and electronic equipment for acquiring dimension data
CN113518183A (en) Camera calling method and device and electronic equipment
CN112835671A (en) Application page scene switching method, device and equipment
CN111597439A (en) Information processing method and device and electronic equipment
CN111581305B (en) Feature processing method, device, electronic equipment and medium
CN112948108B (en) Request processing method and device and electronic equipment

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