CN112559914A - Index data display method and device - Google Patents
Index data display method and device Download PDFInfo
- Publication number
- CN112559914A CN112559914A CN202011518808.0A CN202011518808A CN112559914A CN 112559914 A CN112559914 A CN 112559914A CN 202011518808 A CN202011518808 A CN 202011518808A CN 112559914 A CN112559914 A CN 112559914A
- Authority
- CN
- China
- Prior art keywords
- index
- index data
- data
- query request
- displayed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000009877 rendering Methods 0.000 claims abstract description 9
- 238000012423 maintenance Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24564—Applying rules; Deductive queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/16—Real estate
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Primary Health Care (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides an index data display method and device, wherein the method comprises the following steps: when an index data query request is received, acquiring a query statement template contained in the index data query request; analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications; acquiring index data of each target index dimension in a data source corresponding to the index identifier; acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension; and sending the index data to be displayed to the client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed. By applying the method provided by the invention, the index data to be displayed can be acquired through the query statement template, the acquisition efficiency of the index data is improved, and the complexity of the system is reduced.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to an index data display method and device.
Background
With the development of information technology, the internet is also widely applied in various fields, and a user can acquire various information in internet application, for example, various house information is inquired, so that the visualization of various index data of a house is required to be realized for the convenience of browsing the house information by the user, and the user can acquire the information intuitively.
In the prior art, index data is usually queried in a hard coding manner when an index is displayed, however, when the amount of the index data is large, the index query is implemented in a hard coding manner, which may increase the complexity of the system, thereby resulting in high maintenance cost of the system.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an index data display method, which can acquire the index data to be displayed through a query statement template and reduce the complexity of a system.
The invention also provides an index data display device which is used for ensuring the realization and the application of the method in practice.
An index data display method includes:
when an index data query request is received, acquiring a query statement template contained in the index data query request;
analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications;
acquiring index data of each target index dimension in a data source corresponding to the index identifier;
acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension;
and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed.
Optionally, in the method, the analyzing the query statement template to obtain the index identifier corresponding to the index data query request and the target index dimension of the index identifier includes:
analyzing the query statement template by using a preset DTD template to obtain a plurality of target label information;
and determining an index identifier corresponding to the index data query request and each target index dimension of the index identifier in the target label information.
Optionally, the method for obtaining the to-be-displayed index data corresponding to the index data query request according to the index data of each target index dimension includes:
acquiring display style information corresponding to the data query request;
determining a combination rule of each of the index data based on the display style information;
and combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
Optionally, in the above method, the obtaining, in the data source corresponding to the index identifier, the index data of each target index dimension of the index identifier includes:
determining a data source corresponding to the index identification, and establishing a task thread corresponding to each target index dimension;
and acquiring the index data of each target index dimension from the data source corresponding to the index identification based on the task thread corresponding to each target index dimension.
Optionally, in the method, after the sending the to-be-displayed index data to the client corresponding to the index query request, the method further includes:
caching the index data to be displayed corresponding to the index data query request into a memory;
and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
An index data display device comprising:
the system comprises a receiving unit, a query unit and a query unit, wherein the receiving unit is used for acquiring a query statement template contained in an index data query request when the index data query request is received;
the analysis unit is used for analyzing the query statement template to obtain an index identifier corresponding to the index data query request and each target index dimension of the index identifier;
the acquisition unit is used for acquiring the index data of each target index dimension in a data source corresponding to the index identifier;
the execution unit is used for obtaining to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension;
and the sending unit is used for sending the index data to be displayed to the client corresponding to the index query request, rendering the index data to be displayed by the client and displaying the rendered index data to be displayed.
The above apparatus, optionally, the parsing unit includes:
the analysis subunit is used for analyzing the query statement template by applying a preset DTD template to obtain a plurality of target label information;
the first determining subunit is configured to determine, in the plurality of pieces of target tag information, an index identifier corresponding to the index data query request and each target index dimension of the index identifier.
The above apparatus, optionally, the execution unit includes:
the first obtaining subunit is configured to obtain display style information corresponding to the data query request;
a second determining subunit configured to determine a combination rule of each of the index data based on the display style information;
and the execution subunit is used for combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
The above apparatus, optionally, the obtaining unit includes:
the third determining subunit is configured to determine a data source corresponding to the index identifier, and establish a task thread corresponding to each target index dimension;
and the second obtaining subunit is configured to obtain, based on the task thread corresponding to each target index dimension, index data of each target index dimension from the data source corresponding to the index identifier.
The above apparatus, optionally, further comprises a cache unit;
the cache unit is used for caching the index data to be displayed corresponding to the index data query request into a memory; and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
Compared with the prior art, the invention has the following advantages:
the invention provides an index data display method and device, wherein the method comprises the following steps: when an index data query request is received, acquiring a query statement template contained in the index data query request; analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications; acquiring index data of each target index dimension in a data source corresponding to the index identifier; acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension; and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed. By applying the method provided by the invention, the data to be displayed can be acquired through the query statement template, the acquisition efficiency of index data is improved, the complexity of the system is reduced, the system is easy to maintain, and the maintenance cost of the system is low.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for displaying index data according to the present invention;
fig. 2 is a flowchart of a method for obtaining index data to be displayed corresponding to an index data query request according to the present invention;
FIG. 3 is a flowchart of a method for obtaining target index dimension index data of an index identifier according to the present invention;
FIG. 4 is a diagram illustrating an exemplary method for displaying index data according to the present invention;
fig. 5 is a schematic structural diagram of an index data display device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
An embodiment of the present invention provides an index data display method, where an execution subject may be an electronic device, and the electronic device may be a computer or various mobile devices, and a flowchart of the method is shown in fig. 1, and specifically includes:
s101: when an index data query request is received, a query statement template contained in the index data query request is obtained.
In the method provided by the embodiment of the present invention, the index data query request may be sent by a client, and specifically, the index data query request may be generated by a user accessing an interface preset by the client.
The index data query request comprises a query statement template, the query statement template is obtained by inputting parameters into a pre-established initial query statement template by a client, and the initial query statement template comprises at least one query statement which does not comprise the parameters.
S102: and analyzing the query statement template to obtain the index identification corresponding to the index data query request and each target index dimension of the index identification.
In the method provided by the embodiment of the invention, the query statement template can be analyzed through sax based on the constraint rule of the preset DTD template, and the index identifier and the target index dimension corresponding to the index identifier are obtained.
The index identifier may be an ID of the index, and the target index dimension corresponding to the index identifier may be one or more.
Optionally, the index identification may be one or more.
S103: and acquiring the index data of each target index dimension in the data source corresponding to the index identifier.
In the method provided by the embodiment of the present invention, the data source may be a database or a storage table.
Optionally, a data source corresponding to each index identifier may be determined first, and the index data of the target index dimension of the index identifier is obtained from the data source corresponding to each index identifier.
S104: and acquiring the index data to be displayed corresponding to the index data query request based on the index data of each target index dimension.
In the method provided by the embodiment of the invention, the index data of each target index dimension can be spliced according to the display style information of the page corresponding to the index data query request in the client, so as to obtain the index data to be displayed.
The index data to be displayed can be data in a list form or a map form.
S105: and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed.
In the method provided by the embodiment of the invention, after the client renders the index data to be displayed, the client inquires the display style information of the page corresponding to the request according to the index data, and displays the rendered index data to be displayed on the page.
Optionally, the device to which the client belongs and the electronic device may be the same device or different devices.
The embodiment of the invention provides an index data display method, which comprises the following steps: when an index data query request is received, acquiring a query statement template contained in the index data query request; analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications; acquiring index data of each target index dimension in a data source corresponding to the index identifier; acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension; and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed. By applying the method provided by the invention, the data to be displayed can be acquired through the query statement template, the acquisition efficiency of index data is improved, the complexity of the system is reduced, the system is easy to maintain, and the maintenance cost of the system is low.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, the analyzing the query statement template to obtain the index identifier corresponding to the index data query request and the target index dimension of the index identifier includes:
analyzing the query statement template by using a preset DTD template to obtain a plurality of target label information;
and determining an index identifier corresponding to the index data query request and each target index dimension of the index identifier in the target label information.
Optionally, the target tag information may be an XML tag.
In the method provided by the embodiment of the invention, the query statement template can be analyzed through sax based on the constraint rule of the preset DTD template to obtain each target label information in the query statement template, each target label information is replaced through the key value in the object navigation language to obtain one or more query statements corresponding to the query statement template, the index identifier and each target index dimension of the index identifier are determined based on each query statement, and the data source of the index identifier is determined.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, the obtaining, according to the index data of each target index dimension, the to-be-displayed index data corresponding to the index data query request includes, as shown in fig. 2:
s201: and acquiring display style information corresponding to the data query request.
In the method provided by the embodiment of the invention, the data query request can contain the display style information of the front-end page; the display style information of the page of the client can also be determined through the display style identification or the page identification in the data query request; the display style can be determined according to the target index dimension of the index identifier, and the corresponding relation between the display style and each target index dimension can be established in advance, so that the display style can be determined according to the target index dimension of the index identifier.
S202: a combination rule of each of the index data is determined based on the display style information.
In the method provided by the embodiment of the present invention, the display style information may include a list display style or a map display style.
Optionally, if the display style information includes a list display style, determining an arrangement order of each target index dimension, and determining a combination rule of the index data based on the arrangement order of each target index dimension.
Optionally, if the display style information includes a map display style, the index data may be combined according to a target index dimension thereof.
S203: and combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
In the method provided by the embodiment of the invention, the splicing position of each index data can be determined based on the combination rule, and each index data can be combined according to the splicing position of each index data to obtain the index data to be displayed.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, the acquiring, from the data source corresponding to the index identifier, the index data of each target index dimension of the index identifier includes, as shown in fig. 3:
s301: and determining a data source corresponding to the index identification, and establishing a task thread corresponding to each target index dimension.
In the method provided by the embodiment of the present invention, the number of the data sources corresponding to the index identifier may be one or more, and the data source where each target index dimension is located is the same data source or different data sources.
Optionally, the number of target index dimensions may be 3, and the number of task threads may be 3.
S302: and acquiring the index data of each target index dimension from the data source corresponding to the index identification based on the task thread corresponding to each target index dimension.
In the method provided by the embodiment of the invention, the task thread of each index dimension can be used for acquiring the index data of each target index dimension from the data source corresponding to the index identifier.
Optionally, the obtained index data may be stored in a memory, and the index data of each target index dimension is combined in the memory according to a combination rule of each index data, so as to obtain the data to be displayed corresponding to the index query request.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, after the sending the index data to be displayed to the client corresponding to the index query request, the method further includes:
caching the index data to be displayed corresponding to the index data query request into a memory;
and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
In the method provided by the embodiment of the invention, if the index data query request is not received within the preset time period, the index data to be displayed is deleted.
The index data display method provided by the embodiment of the invention can be applied to various application fields, for example, the index data display method can be used for index display of house information, wherein the index identification can be identification of an access amount index, a house source index and a new house index, and the index dimension of the index identification of the access amount index can be a building dimension, an environment dimension, a date dimension, a city dimension and the like.
Referring to fig. 4, a schematic flow chart of an index data display method provided by the present invention is that a user password can be authenticated, a password error prompt is sent to the user to prompt the user to re-input the password for authentication if the password is authenticated correctly, the user enters the system and determines the authority of the user, one or more operations such as database configuration management, cache configuration management, and interface configuration management can be performed in the system if the user has an operation authority, if the user has an interface configuration management authority, an initialization statement template can be customized in the system according to an index dimension, the initial query statement template can be an sql template, after the initial query statement template is configured, the user can input parameters through a front-end page of the client, and the client transmits the input parameters to a position corresponding to the input parameters in the initial query statement template, and obtaining a query statement template, and sending an index data query request to the electronic equipment based on the query statement template.
When the electronic equipment receives an index data query request, acquiring a query statement template contained in the index data query request;
analyzing a query statement template in a configuration template by using a sax with the fastest label analysis and a custom DTD template, and supporting various complex expressions by using OGNL to analyze random objects, so as to obtain an index identifier corresponding to the index data query request and each target index dimension of the index identifier;
index data of each target index dimension can be acquired from a data source corresponding to the index identification through a task thread of each target index dimension;
the task thread can be a cache sub-thread, the data source can be a database, the acquired index data can be stored in a memory, the index data are spliced according to the target index dimensions to obtain data to be displayed, the data to be displayed are sent to the client, the client renders the index data to be displayed, and the rendered index data to be displayed are displayed.
The query statement template may include a query statement already having an input parameter, and the form of the query statement may be: select from front office (iftest! The parameter id may be an input parameter, such as null' > id # { id } </if >.
The user-defined DTD template can be used for analyzing the xml tag in the query statement template by using sax, and the tag obtained by analysis is stored in the memory to wait for the judgment of the parameters.
The dtd template may be configured as: < | A! Elementtif (# PCDATA | trim | where | set | foreach | choose | if) > so that the position of the if tag that may appear at an arbitrary position can be determined.
And replacing the result of label analysis in the dynamic sql with the key value in the transmitted parameter Map by using an object navigation language OGNL, replacing the corresponding parameter, storing the corresponding parameter and the analyzed sql into a user-defined object for query and output if the id in the Map is replaced by using a placeholder of jdbc, and finally calling a pre-configured data source and querying the final result by using the jdbc to analyze the output data by using the Map.
Corresponding to the method shown in fig. 1, an embodiment of the present invention further provides an index data display apparatus, which is used for implementing the method shown in fig. 1 specifically, where the index data display apparatus provided in the embodiment of the present invention may be applied to an electronic device, the electronic device is a computer terminal or various mobile devices, and a schematic structural diagram of the index data display apparatus is shown in fig. 5, and specifically includes:
a receiving unit 401, configured to, when an index data query request is received, obtain a query statement template included in the index data query request;
an analyzing unit 402, configured to analyze the query statement template to obtain an index identifier corresponding to the index data query request and target index dimensions of the index identifier;
an obtaining unit 403, configured to obtain, in a data source corresponding to the index identifier, index data of each target index dimension;
an executing unit 404, configured to obtain to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension;
a sending unit 405, configured to send the to-be-displayed index data to a client corresponding to the index query request, so that the client renders the to-be-displayed index data, and displays the rendered to-be-displayed index data.
The embodiment of the invention provides an index data display device, which is used for acquiring a query statement template contained in an index data query request when the index data query request is received; analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications; acquiring index data of each target index dimension in a data source corresponding to the index identifier; acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension; and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed. By applying the device provided by the invention, the data to be displayed can be acquired through the query statement template, the acquisition efficiency of index data is improved, the complexity of the system is reduced, the system is easy to maintain, and the maintenance cost of the system is low.
In an embodiment of the present invention, based on the above scheme, specifically, the parsing unit 402 includes:
the analysis subunit is used for analyzing the query statement template by applying a preset DTD template to obtain a plurality of target label information;
the first determining subunit is configured to determine, in the plurality of pieces of target tag information, an index identifier corresponding to the index data query request and a target index dimension of the index identifier.
In an embodiment of the invention, based on the above scheme, specifically, the execution unit 404 includes:
the first obtaining subunit is configured to obtain display style information corresponding to the data query request;
a second determining subunit configured to determine a combination rule of each of the index data based on the display style information;
and the execution subunit is used for combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
In an embodiment of the present invention, based on the above scheme, specifically, the obtaining unit 403 includes:
the third determining subunit is configured to determine a data source corresponding to the index identifier, and establish a task thread corresponding to each target index dimension;
and the second obtaining subunit is configured to obtain, based on the task thread corresponding to each target index dimension, index data of each target index dimension from the data source corresponding to the index identifier.
In an embodiment of the present invention, based on the above scheme, specifically, the index data display device further includes a cache unit;
the cache unit is used for caching the index data to be displayed corresponding to the index data query request into a memory; and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
The specific principle and the implementation process of each unit and each module in the index data display device disclosed in the embodiment of the present invention are the same as those of the index data display method disclosed in the embodiment of the present invention, and reference may be made to corresponding parts in the index data display method provided in the embodiment of the present invention, which are not described herein again.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The index data display method provided by the invention is described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the example is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. An index data display method, characterized by comprising:
when an index data query request is received, acquiring a query statement template contained in the index data query request;
analyzing the query statement template to obtain index identifications corresponding to the index data query request and target index dimensions of the index identifications;
acquiring index data of each target index dimension in a data source corresponding to the index identifier;
acquiring to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension;
and sending the index data to be displayed to a client corresponding to the index query request, rendering the index data to be displayed by the client, and displaying the rendered index data to be displayed.
2. The method of claim 1, wherein the parsing the query statement template to obtain an index identifier corresponding to the index data query request and a target index dimension of the index identifier comprises:
analyzing the query statement template by using a preset DTD template to obtain a plurality of target label information;
and determining an index identifier corresponding to the index data query request and each target index dimension of the index identifier in the target label information.
3. The method according to claim 1, wherein the obtaining of the index data to be displayed corresponding to the index data query request according to the index data of each target index dimension includes:
acquiring display style information corresponding to the data query request;
determining a combination rule of each of the index data based on the display style information;
and combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
4. The method according to claim 1, wherein the obtaining of the index data of each target index dimension of the index identifier from the data source corresponding to the index identifier comprises:
determining a data source corresponding to the index identification, and establishing a task thread corresponding to each target index dimension;
and acquiring the index data of each target index dimension from the data source corresponding to the index identification based on the task thread corresponding to each target index dimension.
5. The method according to claim 1, wherein after the sending the index data to be displayed to the client corresponding to the index query request, the method further comprises:
caching the index data to be displayed corresponding to the index data query request into a memory;
and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
6. An index data display device characterized by comprising:
the system comprises a receiving unit, a query unit and a query unit, wherein the receiving unit is used for acquiring a query statement template contained in an index data query request when the index data query request is received;
the analysis unit is used for analyzing the query statement template to obtain an index identifier corresponding to the index data query request and each target index dimension of the index identifier;
the acquisition unit is used for acquiring the index data of each target index dimension in a data source corresponding to the index identifier;
the execution unit is used for obtaining to-be-displayed index data corresponding to the index data query request based on the index data of each target index dimension;
and the sending unit is used for sending the index data to be displayed to the client corresponding to the index query request, rendering the index data to be displayed by the client and displaying the rendered index data to be displayed.
7. The apparatus of claim 6, wherein the parsing unit comprises:
the analysis subunit is used for analyzing the query statement template by applying a preset DTD template to obtain a plurality of target label information;
the first determining subunit is configured to determine, in the plurality of pieces of target tag information, an index identifier corresponding to the index data query request and each target index dimension of the index identifier.
8. The apparatus of claim 6, wherein the execution unit comprises:
the first obtaining subunit is configured to obtain display style information corresponding to the data query request;
a second determining subunit configured to determine a combination rule of each of the index data based on the display style information;
and the execution subunit is used for combining the index data of each target index dimension according to the combination rule to obtain the index data to be displayed corresponding to the index query request.
9. The apparatus of claim 6, wherein the obtaining unit comprises:
the third determining subunit is configured to determine a data source corresponding to the index identifier, and establish a task thread corresponding to each target index dimension;
and the second obtaining subunit is configured to obtain, based on the task thread corresponding to each target index dimension, index data of each target index dimension from the data source corresponding to the index identifier.
10. The apparatus of claim 6, further comprising a buffer unit;
the cache unit is used for caching the index data to be displayed corresponding to the index data query request into a memory; and if the index data query request is received again in a preset time period, acquiring the index data to be displayed in the memory, and sending the index data to be displayed to the client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011518808.0A CN112559914B (en) | 2020-12-21 | 2020-12-21 | Index data display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011518808.0A CN112559914B (en) | 2020-12-21 | 2020-12-21 | Index data display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112559914A true CN112559914A (en) | 2021-03-26 |
CN112559914B CN112559914B (en) | 2024-05-14 |
Family
ID=75032059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011518808.0A Active CN112559914B (en) | 2020-12-21 | 2020-12-21 | Index data display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559914B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553316A (en) * | 2021-07-23 | 2021-10-26 | 中信银行股份有限公司 | Multi-mode data query modeling method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070130118A1 (en) * | 2005-12-01 | 2007-06-07 | International Business Machines Corporation | Method and apparatus for manipulating data within a remote database in a multiple tier environment |
CN108932257A (en) * | 2017-05-25 | 2018-12-04 | 北京国双科技有限公司 | The querying method and device of multi-dimensional data |
CN109902100A (en) * | 2019-01-31 | 2019-06-18 | 平安科技(深圳)有限公司 | Report form inquiring method, device and storage medium |
CN110019350A (en) * | 2017-07-28 | 2019-07-16 | 北京京东尚科信息技术有限公司 | Data query method and apparatus based on configuration information |
CN112163000A (en) * | 2020-08-31 | 2021-01-01 | 阿里巴巴集团控股有限公司 | Data query method and device |
-
2020
- 2020-12-21 CN CN202011518808.0A patent/CN112559914B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070130118A1 (en) * | 2005-12-01 | 2007-06-07 | International Business Machines Corporation | Method and apparatus for manipulating data within a remote database in a multiple tier environment |
CN108932257A (en) * | 2017-05-25 | 2018-12-04 | 北京国双科技有限公司 | The querying method and device of multi-dimensional data |
CN110019350A (en) * | 2017-07-28 | 2019-07-16 | 北京京东尚科信息技术有限公司 | Data query method and apparatus based on configuration information |
CN109902100A (en) * | 2019-01-31 | 2019-06-18 | 平安科技(深圳)有限公司 | Report form inquiring method, device and storage medium |
CN112163000A (en) * | 2020-08-31 | 2021-01-01 | 阿里巴巴集团控股有限公司 | Data query method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553316A (en) * | 2021-07-23 | 2021-10-26 | 中信银行股份有限公司 | Multi-mode data query modeling method and system |
CN113553316B (en) * | 2021-07-23 | 2024-05-17 | 中信银行股份有限公司 | Multi-mode data query modeling method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112559914B (en) | 2024-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110019350B (en) | Data query method and device based on configuration information | |
CN109683998B (en) | Internationalization realization method, device and system | |
CN110162408B (en) | Data processing method, device, equipment and machine-readable medium | |
CN111158795A (en) | Report generation method, device, medium and electronic equipment | |
CN111078776A (en) | Data table standardization method, device, equipment and storage medium | |
CN111125064B (en) | Method and device for generating database schema definition statement | |
CN113076729B (en) | Method and system for importing report, readable storage medium and electronic equipment | |
CN115757495A (en) | Cache data processing method and device, computer equipment and storage medium | |
CN107844488B (en) | Data query method and device | |
CN113626223A (en) | Interface calling method and device | |
CN115587575A (en) | Data table creation method, target data query method, device and equipment | |
CN110362630B (en) | Data management method, device, equipment and computer readable storage medium | |
CN113190517B (en) | Data integration method and device, electronic equipment and computer readable medium | |
CN112559914B (en) | Index data display method and device | |
CN113687825A (en) | Software module construction method, device, equipment and storage medium | |
CN116450723A (en) | Data extraction method, device, computer equipment and storage medium | |
CN115600038A (en) | Page rendering method, device, equipment and medium | |
CN115712422A (en) | Form page generation method and device, computer equipment and storage medium | |
CN111400623B (en) | Method and device for searching information | |
CN111124482B (en) | Configuration method and device for document information | |
CN114238391A (en) | Data paging query method and device, electronic equipment and storage medium | |
CN115034175A (en) | Table data processing method, device, terminal and storage medium | |
CN113434098A (en) | Printing function implementation method, device, electronic equipment, system and storage medium | |
CN112214497A (en) | Label processing method and device and computer system | |
CN111178025A (en) | Editing method and device of nuclear power plant operation guide rules, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |