WO2022178931A1 - 一种查询动态列的实现方法、装置及设备 - Google Patents

一种查询动态列的实现方法、装置及设备 Download PDF

Info

Publication number
WO2022178931A1
WO2022178931A1 PCT/CN2021/082373 CN2021082373W WO2022178931A1 WO 2022178931 A1 WO2022178931 A1 WO 2022178931A1 CN 2021082373 W CN2021082373 W CN 2021082373W WO 2022178931 A1 WO2022178931 A1 WO 2022178931A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
client
information
data
format
Prior art date
Application number
PCT/CN2021/082373
Other languages
English (en)
French (fr)
Inventor
李文峰
Original Assignee
浪潮通用软件有限公司
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 浪潮通用软件有限公司 filed Critical 浪潮通用软件有限公司
Publication of WO2022178931A1 publication Critical patent/WO2022178931A1/zh

Links

Images

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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical 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/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present specification relates to the field of data analysis and processing, and in particular, to a method, device, and device for realizing dynamic column query.
  • query reports can only analyze and display data with a fixed statistical dimension for a single requirement.
  • the default format information and query parameters in the query report will change according to the dimension or angle of analysis and statistics, and different query methods need to be created to achieve this.
  • One or more embodiments of this specification provide an implementation method, apparatus and device for querying dynamic columns, which are used to solve the following technical problem: a query method with high flexibility and scalability is required to support dynamic columns.
  • One or more embodiments of this specification provide an implementation method for querying a dynamic column, which is applied to the server side, and the method includes:
  • the query format is determined based on the client calling the rendering service
  • the query format is sent to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • the parsing the query parameter to determine the data information to be counted specifically includes: determining a pre-established query object, and adding a processing unit corresponding to the query object; in the processing unit, parsing the query object. the query parameters; according to the arrangement and combination of the query parameters, the data information to be counted is determined.
  • the processing unit includes one or more of a paging processing unit, a summary totaling processing unit, a sorting processing unit, a grouping totaling processing unit, a data formatting processing unit, and a built-in number fetching logic processing unit.
  • the processing of the data information that needs to be counted to determine dynamic column information and statistical data specifically includes: processing the data information that needs to be counted; adding the processing unit to the execution Queue, so that the built-in query framework can automatically process the processing units in the execution queue when executing the query process, and determine the dynamic column information and statistical data.
  • the determining the query format based on the client calling the rendering service specifically includes: calling the rendering service through the dynamic column information based on the client; determining the default query format information of the rendering service ; Perform a merge operation on the default query format information and the dynamic column information to determine the query format.
  • performing a merge operation on the default query format information and the dynamic column information to determine the query format specifically includes: merging the column information displayed by the default format information with the dynamic column information. merge to obtain data columns that need to be counted and displayed; corresponding column information is obtained according to the data columns that need to be counted and displayed; wherein, the column information includes one of binding fields, column width, font, and font size or multiple items; the query format is determined according to the column information.
  • One or more embodiments of this specification provide an implementation method for querying a dynamic column, which is applied to a client, and the method includes:
  • the page is rendered according to the query format, and the loading of the statistical data is completed.
  • One or more embodiments of this specification provide an implementation device for querying a dynamic column, which is applied to a server, and the device includes:
  • a receiving unit configured to receive a query request sent by a client; wherein the query request includes query parameters;
  • a parsing unit configured to parse the query parameter and determine the data information to be counted
  • a processing unit configured to process the data information that needs to be counted, determine dynamic column information and statistical data, and send the dynamic column information and the statistical data to the client;
  • a rendering unit configured to call a rendering service based on the client to determine a query format
  • a result unit configured to send the query format to the client, so that the client can perform page rendering by loading the query format, and complete the loading of the statistical data.
  • One or more embodiments of this specification provide an implementation device for querying a dynamic column, which is applied to a client, and the device includes:
  • a sending unit configured to send a query request to the server; wherein, the query request includes query parameters;
  • a receiving unit configured to receive dynamic column information and statistical data; wherein, the dynamic column information and statistical data are obtained through processing on the server side;
  • a rendering unit configured to invoke a rendering service as a parameter according to the dynamic column information, and obtain a query format
  • a result unit configured to perform page rendering according to the query format, and complete the loading of the statistical data.
  • One or more embodiments of this specification provide an implementation device for querying dynamic columns, applied to the server side, including:
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
  • the query format is determined based on the client calling the rendering service
  • the query format is sent to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • One or more embodiments of this specification provide an implementation device for querying dynamic columns, applied to a client, including:
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
  • the page is rendered according to the query format, and the loading of the statistical data is completed.
  • a non-volatile computer storage medium provided by one or more embodiments of this specification is applied to the server side, and stores computer-executable instructions.
  • the computer-executable instructions are set to:
  • the query format is determined based on the client calling the rendering service
  • the query format is sent to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • a non-volatile computer storage medium provided by one or more embodiments of this specification is applied to a client, and stores computer-executable instructions, where the computer-executable instructions are set to:
  • the page is rendered according to the query format, and the loading of the statistical data is completed.
  • the above-mentioned at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: by adding a processing unit to the query object, parsing and processing the parameters after the query condition changes, and dynamically organizing the data column information that needs to be counted in the form of code , which can realize the flexibility of multi-dimensional and multi-angle data query on the query report, and also expand the function of the processing unit execution queue in the query framework.
  • the server-side rendering service After the server-side rendering service generates the template of the query format, the cache fragment is generated.
  • the corresponding query format can be used directly, which reduces the wasted time of querying in the database.
  • FIG. 1 is a schematic diagram of a query architecture for querying a dynamic column according to an embodiment of the present specification
  • FIG. 2 is a flowchart of a method for implementing a query dynamic column applied to a server side provided by an embodiment of the present specification
  • FIG. 3 is a schematic diagram of the setting of a query object and a processing unit in a query dynamic column provided by an embodiment of the present specification
  • FIG. 4 is a flowchart of a method for implementing a query dynamic column applied to a client according to an embodiment of the present specification
  • FIG. 5 is a schematic structural diagram of an implementation device for querying dynamic columns applied to a server side according to an embodiment of the present specification
  • FIG. 6 is a schematic structural diagram of an implementation device for querying dynamic columns applied to a server side provided by an embodiment of the present specification
  • FIG. 7 is a schematic structural diagram of an implementation medium for querying dynamic columns applied to a server side according to an embodiment of the present specification
  • FIG. 8 is a schematic structural diagram of an implementation device for querying dynamic columns applied to a client according to an embodiment of the present specification
  • FIG. 9 is a schematic structural diagram of a device for implementing a query dynamic column applied to a client according to an embodiment of this specification.
  • FIG. 10 is a schematic structural diagram of an implementation medium for querying a dynamic column applied to a client according to an embodiment of the present specification.
  • the embodiments of this specification provide an implementation method, apparatus, and device for querying a dynamic column.
  • This specification provides an implementation method, device and device for querying dynamic columns.
  • FIG. 1 is a schematic diagram of a query architecture for querying a dynamic column according to one or more embodiments of the present specification.
  • the query frame includes the query process of the server and the client in the query frame, as well as the interactive work between the server and the client.
  • the implementation method of querying dynamic columns the following first describes the implementation method of querying dynamic columns from the server side.
  • FIG. 2 is a flowchart of an implementation method for querying a dynamic column applied to a server side according to an embodiment of the present specification.
  • the flow in Figure 2 may include the following steps:
  • S201 Receive a query request sent by a client; wherein, the query request includes query parameters.
  • the client may be a query device for individuals or enterprises that need to perform data query and display for e-commerce, group purchase, takeaway, and new media.
  • the IGIX query platform can be used as a platform for data query analysis, and data query is performed based on a business query language (Business Query Language, BQL).
  • BQL Business Query Language
  • IGIX is a digital capability platform based on cloud native and micro-service architecture, including technology, data, and business. It provides visual and componentized query development, production, and publishing tools, which can support the integration of enterprise technology, business, data and business. Innovation.
  • the business query language is extracted from the previous statistical analysis applications. It can use its visual interface to query, group and summarize, filter, and sort the business language to achieve the demand for free query of database data, and through the BQL engine, it can be converted into A structured query language executable by the database.
  • query parameters are parsed to determine data information to be counted, specifically including:
  • the data information to be counted is determined.
  • the processing unit includes: a paging processing unit, a summary and total processing unit, a sorting processing unit, a grouping and total processing unit, a data formatting processing unit, and a built-in number retrieval logic processing unit. one or more.
  • the query object In the process of report query, the query object is the smallest unit of data processing, the core carrier of query data organization, and encapsulates the core logic of data processing.
  • the interior of the query object is composed of the execution queue of the processing unit, and the processing unit is the The smallest unit of data processing.
  • the query framework has a built-in paging processing unit, a summary total processing unit, a sorting processing unit, a grouping total processing unit, a data formatting processing unit, and a fetching logic processing unit based on past query business requirements and other processing units.
  • the processing unit can be performed in the execution queue in a serial or parallel manner, so as to adjust the processing process adaptively, save processing time, and improve the flexibility of report query.
  • the developer can add a new processing unit to the corresponding query object.
  • the new processing unit can be a custom processing unit that has been re-developed by the developer, so that the developer can customize the function settings of the newly added processing unit. set to correspond to the corresponding query parameters.
  • the flexibility of developers is retained, so that the query framework can be continuously updated synchronously according to business requirements.
  • the data information to be counted can be determined according to the arrangement and combination of the parameters.
  • the query parameters are A, B, and C
  • statistical calculations need to be performed on data 1, data 2, data 3, and data 4; and when the filter conditions of the query change, the query parameters become A, B, C, D and At this time, the data to be counted becomes data 1, data 2, data 3, data 4, data 5, and data 6.
  • the data that needs to be called from the database are the sales data volume in 2020, the sales amount in 2020, and the sales volume in 2019.
  • the data to be counted changes accordingly according to the change of the query parameters. It should be noted that, in the process of performing data statistics, the data to be counted may be stored in different databases DataBase in FIG. 3 , and multi-database query statistics work can be performed across databases when invoking data statistics.
  • S203 Process the data information that needs to be counted, determine dynamic column information and statistical data, and send the dynamic column information and the statistical data to the client.
  • the data information that needs to be counted is processed to determine dynamic column information and statistical data, specifically including:
  • the processing units are added to the execution queue, so that the built-in query framework can automatically process the processing units in the execution queue and determine dynamic column information and statistical data when the query process is executed.
  • FIG. 3 shows the distribution of query objects and unit processing in one or more embodiments of the present application. As can be seen from Figure 3, after the parameter data is obtained through built-in fetching, the data to be counted needs to be processed by multiple processing units.
  • the processing unit when it includes parameters such as age, height and gender, and needs to query the heights of different age groups and genders, the processing unit needs to perform sorting and grouping processing; when the average age needs to be queried, the processing unit needs to perform aggregation calculation; When it is necessary to query the gender and name whose average age is over 30 years old, it is necessary to combine grouping and aggregation; when it is necessary to limit the number of queries for the above three situations and the number of data displayed in each page of the report, it is necessary to Pagination is performed.
  • Adding processing units to the execution queue enables the query framework to automatically execute the processing units in the queue when executing the query process, thereby determining the dynamic column information and statistical data, and returning the dynamic column information and statistical data to the client for The client performs rendering services.
  • the query format is determined based on the client calling the rendering service, which specifically includes:
  • the default query format information and the dynamic column information are merged to determine the query format.
  • the default query format information and the dynamic column information are merged to determine the query format, which specifically includes:
  • Corresponding column information is obtained according to the data columns to be counted and displayed; wherein, the column information includes one or more of binding fields, column widths, fonts, and font sizes;
  • the query format is determined according to the column information.
  • the format information of the initial page is rendered by using the default format information, and the column information that needs to be rendered under the default format information is obtained. Merge the default format information and the dynamic column information dynamically organized by code to obtain the data columns that need to be counted and displayed in the end.
  • the column information under the default format information is shown in Table 1 below, including the column information of column 1, column 2, and column 3.
  • the adaptive change of the query parameters also requires more statistical column information, and at this time, it is necessary to dynamically organize column A and column B through code.
  • the dynamic column information is column A and column B.
  • the merged data columns that need to be counted and displayed are shown in Table 3 below.
  • the column information includes binding fields, column width, font, font size and other information. Among them, the binding field is the simplest field type, which simply displays the data as text and contains the data that needs to be displayed in each column.
  • S205 Send the query format to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • the server not only sends the query format to the client, but also caches the query format.
  • the query format can be called directly from the server for the client to perform. render.
  • FIG. 4 is a flowchart of a method for implementing a query dynamic column applied to a client according to one or more embodiments of the present specification.
  • the flow in Figure 4 may include the following steps:
  • S401 Send a query request to a server, wherein the query request includes query parameters.
  • S402 Receive dynamic column information and statistical data; wherein, the dynamic column information and statistical data are obtained through the server-side architecture processing.
  • the client After receiving the dynamic column information and statistical data, the client uses the received dynamic column information as a parameter to call the rendering service to the server side, and the server side combines the default query format information, that is, the initial page information of the report, with the dynamic column information ( merge) operation, and return the generated complete query format to the client.
  • the server side combines the default query format information, that is, the initial page information of the report, with the dynamic column information ( merge) operation, and return the generated complete query format to the client.
  • the server side when the server side performs the rendering service, because the server side completes the template generation of the query format, it only needs to be directly rendered. Therefore, the time-consuming of the client is less, and there is no need to occupy client resources. That is, the work of generating the query format is completely done by the back-end server, and the client only needs to parse the query format. In this way, less resources are occupied for the client, and power resources can also be saved.
  • the server side After the server side generates the template of the query format, it generates the cache fragment, which can reduce the time wasted in database query. For the query report with little data change, the query format cached on the server side can be directly called, which makes the query process more convenient and fast.
  • S404 Perform page rendering according to the query format, and complete the loading of the statistical data.
  • the client After receiving the query format, the client renders the query page according to the query format, so that the page becomes the final style that needs to be displayed. After page rendering, the client completes the final query display by loading data.
  • FIG. 5 is a schematic structural diagram of an implementation apparatus for querying a dynamic column applied to a server side provided by one or more embodiments of the present specification. As shown in Figure 5, the device includes:
  • a receiving unit 501 configured to receive a query request sent by a client; wherein, the query request includes query parameters;
  • a parsing unit 502 configured to parse the query parameter, and determine the data information that needs to be counted
  • a processing unit 503, configured to process the data information that needs to be counted, determine dynamic column information and statistical data, and send the dynamic column information and the statistical data to the client;
  • a rendering unit 504 configured to call a rendering service based on the client to determine a query format
  • the result unit 505 is configured to send the query format to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • FIG. 6 is a schematic structural diagram of an implementation device for querying dynamic columns applied to a server side according to one or more embodiments of the present specification. As shown in Figure 6, the device includes:
  • At least one processor 601 and,
  • a memory 602 in communication with the at least one processor;
  • the memory 602 stores instructions executable by the at least one processor 601, the instructions being executed by the at least one processor 601 to enable the at least one processor 601 to:
  • the query format is determined based on the client calling the rendering service
  • the query format is sent to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • FIG. 7 is a schematic structural diagram of an implementation medium for querying dynamic columns applied to a server side according to one or more embodiments of this specification.
  • a non-volatile computer storage medium provided by one or more embodiments of this specification is applied to the server side, and stores computer-executable instructions.
  • the computer-executable instructions 701 are set to:
  • the query format is determined based on the client calling the rendering service
  • the query format is sent to the client, so that the client performs page rendering by loading the query format, and completes the loading of the statistical data.
  • FIG. 8 is a schematic structural diagram of an implementation apparatus for querying a dynamic column applied to a client according to one or more embodiments of the present specification. As shown in Figure 8, the device includes:
  • a sending unit 801 configured to send a query request to a server, wherein the query request includes query parameters
  • a receiving unit 802 configured to receive dynamic column information and statistical data; wherein, the dynamic column information and statistical data are obtained through processing on the server side;
  • a rendering unit 803, configured to invoke a rendering service as a parameter according to the dynamic column information to obtain a query format
  • the result unit 804 is configured to perform page rendering according to the query format, and complete the loading of the statistical data.
  • Fig. 9 is a schematic structural diagram of an implementation device for querying dynamic columns applied to a client according to one or more embodiments of this specification. As shown in Figure 9, the device includes:
  • At least one processor 901 and,
  • a memory 902 in communication with the at least one processor;
  • the memory 902 stores instructions executable by the at least one processor 901, the instructions being executed by the at least one processor 901 to enable the at least one processor 901 to:
  • the page is rendered according to the query format, and the loading of the statistical data is completed.
  • FIG. 10 is a schematic structural diagram of an implementation medium for querying a dynamic column applied to a client according to one or more embodiments of the present specification. As shown in Figure 10, the computer-executable instructions 1001 are set to:
  • the page is rendered according to the query format, and the loading of the statistical data is completed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种查询动态列的方法、装置及设备,用以提供一种灵活度和扩展性高的查询方式。包括:接收客户端发送的查询请求;其中,查询请求包括查询参数(S201);解析查询参数,确定出需要统计的数据信息(S202);对需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将动态列信息和统计数据发送至所述客户端(S203);基于客户端调用渲染服务,确定出查询格式(S204);将查询格式发送至客户端,以便客户端通过加载查询格式进行页面渲染,完成统计数据的加载(S205)。

Description

一种查询动态列的实现方法、装置及设备 技术领域
本说明书涉及数据分析处理领域,尤其涉及一种查询动态列的实现方法、装置及设备。
背景技术
现在属于数据信息的时代,无论是个人还是企业每天都会产生大量的数据。电商、团购、外卖、新媒体都可以通过用户的行为习惯,为客户进行精准推送。企业同时也可以通过数据进行决策与规划。
对于数据的分析计算以及数据的展示要求越来越高,需求也越来越复杂,以往的查询报表只能针对单一需求,以固定的统计维度进行数据分析和展现。当需要从多维度、多角度进行数据的分析展示时,查询报表中默认的格式信息、查询参数等会根据分析统计的维度或角度而发生变化,需要创建不同的查询方式来实现。
基于此,需要一种灵活度和扩展性高的查询方式来支持动态列。
发明内容
本说明书一个或多个实施例提供了一种查询动态列的实现方法、装置及设备,用于解决如下技术问题:需要一种灵活度和扩展性高的查询方式来支持动态列。
本说明书一个或多个实施例采用下述技术方案:
本说明书一个或多个实施例提供一种查询动态列的实现方法,应用于服务器端,该方法包括:
接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析所述查询参数,确定出需要统计的数据信息;
对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
基于所述客户端调用渲染服务,确定出查询格式;
将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
可选地,所述解析所述查询参数,确定出需要统计的数据信息,具体包括:确定预先建立的查询对象,并对应所述查询对象新增处理单元;在所述处理单元中,解析所述查询参数;根据所述查询参数的排列组合,确定出需要统计的数据信息。
可选地,所述处理单元包括分页处理单元、汇总合计处理单元、排序处理单元、分组合计处理单元、数据格式化处理单元以及内置取数逻辑处理单元中的一项或多项。
可选地,所述对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,具体包括:对所述需要统计的数据信息进行工处理;将所述处理单元添加到执行队列中,以便内置的查询框架在执行查询流程时,自动处理执行队列中的处理单元,确定出动态列信息和统计数据。
可选地,所述基于所述客户端调用渲染服务,确定出查询格式,具体包括:基于所述客户端通过所述动态列信息调用所述渲染服务;确定所述渲染服务默认的查询格式信息;将所述默认的查询格式信息与所述动态列信息进行merge操作,确定出所述查询格式。
可选地,所述将所述默认查询格式信息与所述动态列信息进行merge操作,确定出所述查询格式,具体包括:将所述默认格式信息显示的列信息与所述动态列信息进行合并,得到需要统计和展示的数据列;根据所述需要统计和展示的数据列得到对应的列信息;其中,所述列信息包括绑定字段、列的宽度、字体、字号中的一项或多项;根据所述列信息确定出所述查询格式。
本说明书的一个或多个实施例提供了一种查询动态列的实现方法,应用于客户端,该方法包括:
向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
根据所述动态列信息调用渲染服务,获得查询格式;
根据所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书的一个或多个实施例提供了一种查询动态列的实现装置,应用于服务器端,所述装置包括:
接收单元,用于接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析单元,用于解析所述查询参数,确定出需要统计的数据信息;
处理单元,用于对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
渲染单元,用于基于所述客户端调用渲染服务,确定出查询格式;
结果单元,用于将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书的一个或多个实施例提供了一种查询动态列的实现装置,应用于客户端,所述装置包括:
发送单元,用于向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收单元,用于接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
渲染单元,用于根据所述动态列信息为参数调用渲染服务,获得查询格式;
结果单元,用于根据所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书的一个或多个实施例提供了一种查询动态列的实现设备,应用于服务器端,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析所述查询参数,确定出需要统计的数据信息;
对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
基于所述客户端调用渲染服务,确定出查询格式;
将所述查询格式发送至所述客户端,以便所述客户端通过加载所 述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书的一个或多个实施例提供了一种查询动态列的实现设备,应用于客户端,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
根据所述动态列信息调用渲染服务,获得查询格式;
根据所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书一个或多个实施例提供的一种非易失性计算机存储介质应用于服务器端,存储有计算机可执行指令,所述计算机可执行指令设置为:
接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析所述查询参数,确定出需要统计的数据信息;
对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
基于所述客户端调用渲染服务,确定出查询格式;
将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书一个或多个实施例提供的一种非易失性计算机存储介质应用于客户端,存储有计算机可执行指令,所述计算机可执行指令设置为:
向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
根据所述动态列信息调用渲染服务,获得查询格式;
根据所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书实施例采用的上述至少一个技术方案能够达到以下有 益效果:通过在查询对象中新增处理单元,对查询条件变化后的参数进行解析处理,以代码的方式动态组织需要统计的数据列信息,可以实现对查询报表进行多维度、多角度数据查询时的灵活度,也扩展了查询框架中处理单元执行队列的功能。在服务器端进行渲染服务生成查询格式的模板后,即生成缓存片段,当有相似的查询参数进行报表生成时,可以直接使用对应的查询格式,减少了在数据库中查询浪费的时间。
附图说明
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。在附图中:
图1为本说明书实施例提供的一种查询动态列的查询架构的示意图;
图2为本说明书实施例提供的一种应用于服务器端的查询动态列的实现方法的流程图;
图3为本说明书实施例提供的一种查询动态列中查询对象以及处理单元的设置示意图;
图4为本说明书实施例提供的一种应用于客户端的查询动态列的实现方法的流程图;
图5为本说明书实施例提供的一种应用于服务器端的查询动态列的实现装置的结构示意图;
图6为本说明书实施例提供的一种应用于服务器端的查询动态列的实现设备的结构示意图;
图7为本说明书实施例提供的一种应用于服务器端的查询动态列的实现介质的结构示意图;
图8为本说明书实施例提供的一种应用于客户端的查询动态列的实现装置的结构示意图;
图9为本说明书实施例提供的一种应用于客户端的查询动态列 的实现设备的结构示意图;
图10为本说明书实施例提供的一种应用于客户端的查询动态列的实现介质的结构示意图。
具体实施方式
本说明书实施例提供一种查询动态列的实现方法、装置及设备。
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。
随着数据信息的高速发展,在工作生活中对数据的分析计算以及数据的展示要求越来越高。传统的查询报表只能针对单一需求,以固定的统计维度进行数据的分析和展现。然而,在一些特殊场景下,检索的字段或查询的条件在程序运行期间是动态变化的,在处理不同检索字段或查询条件的查询结果集时,统计的数据会根据查询条件的不同相应的增加几行或几列。例如,科目余额表在默认情况下只统计某账簿、某科目下的初期金额、本期发生金额、余额,当查询条件发生变化后除了统计初期金额、本期发生金额、余额外,还要增加一列累计发生金额。因此,固定单一的查询报表无法从多维度、多角度对不同的数据进行分析展示。
为了解决单一查询报表无法对不同数据进行多维度、多角度的统计分析等问题。本说明书提供了一种查询动态列的实现方法、装置及设备。
以下结合附图,详细说明本说明书提供的技术方案。
如图1所示,图1为本说明书一个或多个实施例提供的一种查询动态列的查询架构的示意图。该查询框架包含了服务器端和客户端的在查询框架中进行查询的流程,以及服务器端与客户端之间的交互工作。为了清楚的表达查询动态列的实现方法,下面首先从服务器端对查询动态列的实现方法做出说明。
图2为本说明书实施例提供的一种应用于服务器端的查询动态列的实现方法的流程图。图2中的流程可以包括以下步骤:
S201:接收客户端发送的查询请求;其中,所述查询请求包括查询参数。
本说明书的一个或多个实施例中,客户端可以为电商、团购、外卖、新媒体等需要进行数据查询展示个人或企业的查询设备。
本说明书的一个或多个实施例中可以使用IGIX查询平台作为数据查询分析的平台,并以业务查询语言(Business Query Language,BQL)为基础进行数据查询。
需要说明的是,IGIX是基于云原生和微服务架构,包含技术、数据、业务的数字化能力平台,提供可视化、组件化的查询开发制作、发布工具,可以支撑企业技术、业务、数据与商业融合创新。业务查询语言,是在以往统计分析应用中提炼出的,可以利用其可视化界面对业务语言进行查询、分组汇总、过滤、排序等操作实现对数据库数据自由查询的需求,并且通过BQL引擎可以转换为数据库可执行的结构化查询语言。
S202:解析所述查询参数,确定出需要统计的数据信息。
在本说明的一个或多个实施例中,解析查询参数,确定出需要统计的数据信息,具体包括:
确定预先建立的查询对象,并对应所述查询对象新增处理单元;
在所述处理单元中,解析所述查询参数;
根据所述查询参数的排列组合,确定出需要统计的数据信息。
在本说明书的一个或多个实施例中,所述处理单元包括:分页处理单元、汇总合计处理单元、排序处理单元、分组合计处理单元、数据格式化处理单元以及内置取数逻辑处理单元中的一项或多项。
在进行报表查询的过程中,查询对象是数据加工的最小单元,是查询数据组织的核心载体,封装了数据处理的核心逻辑,查询对象的内部由处理单元的执行队列组成,而处理单元是进行数据处理的最小单元。
本说明书的一个或多个实施例中,查询框架基于过往的查询业务需求内置了分页处理单元、汇总合计处理单元、排序处理单元、分组 合计处理单元、数据格式化处理单元以及取数逻辑处理单元等多个处理单元。对数据进行处理和统计时,处理单元可以采用串行或者并行的方式在执行队列中进行,以自适应调节处理的过程,节省处理的时间,提高了报表查询的灵活度。
如果在预先建立的查询对象中,查询条件发生变化,使得过往的业务需求无法满足当前查询业务时。开发人员可以在相应的查询对象中新增处理单元,该新增处理单元可以是一个经过开发人员二次开发过的自定义处理单元,使得开发人员可以对新增处理单元进行自定义的功能设定,以对应相应的查询参数。在对处理单元进行二次开发的过程中,保留了开发人员的机动灵活性,使得查询框架可以不断根据业务需求进行同步更新。
通过新增处理单元的解析,获得查询请求中包含的查询参数后,根据参数的排列组合可以确定出需要统计的数据信息。当查询参数为A、B、C时,需要对数据1、数据2、数据3、数据4进行统计计算;而当查询的过滤条件发生变化后,查询参数变为A、B、C、D而此时需要统计的数据就变为了数据1、数据2、数据3、数据4、数据5、数据6。例如,当需要查询2020年度产品的销售数据量、销售金额以及销售增长率时,需要向数据库中调用的数据为2020年的销售数据量、2020年的销售金额和2019年的销售数量。而当需要查询2020年度产品的销售数量、销售金额、销售增长率和毛利时,就需要向数据库中调用2020年的销售数据量、2020年的销售金额和2019年的销售数量、产品的进价额以及包装购买额等。此时,需要统计的数据就根据查询参数的变化相应的发生了变化。需要说明的是,在进行数据统计的过程中,所需要统计的数据可能存储于图3中不同的数据库DataBase中,在进行数据统计的调用时可以跨数据库进行多数据库的查询统计工作。
通过在查询对象中新增处理单元,对查询条件变化后的参数进行解析处理,以代码的方式动态组织需要统计的数据列信息,可以实现对查询报表进行多维度、多角度数据查询时的灵活度,也扩展了查询框架中处理单元执行队列的功能。
S203:对所述需要统计的数据信息进行加工处理,确定出动态列 信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端。
本说明书的一个或多个实施例中,对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,具体包括:
对所述需要统计的数据信息进行加工处理;
将所述处理单元添加到执行队列中,以便内置的查询框架在执行查询流程时,自动处理执行队列中的处理单元,确定出动态列信息和统计数据。
需要说明的是,在处理和解析出客户端查询请求中包含的查询参数后,可以通过代码的方式确定出需要统计的数据信息,并通过处理单元对所述需要统计的数据进行加工处理。如图3所示为本申请中一个或多个实施例中查询对象以及单元处理的分布。由图3可以看出,经过内置取数获得参数数据后,需要统计的数据需要经过多个处理单元的加工处理。
例如,当包含年龄、身高性别等参数,并需要对不同年龄段不同性别的身高进行查询时,就需要处理单元进行排序分组的处理;当需要查询平均年龄时就需要经过处理单元进行聚合计算;当需要查询平均年龄超过30岁的性别及姓名时,需要进行分组和聚合的结合处理;当需要对上面三种情况进行查询个数以及每页报表中显示数据的个数进行限制时,则需要进行分页处理。
将处理单元添加到执行队列中,使得查询框架在执行查询流程时可以自动执行队列中的处理单元,从而确定出动态列信息和统计数据,并将动态列信息和统计数据返回客户端,以供客户端进行渲染服务。
S204:基于所述客户端调用渲染服务,确定出查询格式。
在本说明书的一个或多个实施例中,基于所述客户端调用渲染服务,确定出查询格式,具体包括:
基于所述客户端通过所述动态列信息调用所述渲染服务;
确定所述渲染服务默认的查询格式;
将所述默认的查询格式信息与所述动态列信息进行merge操作,确定出所述查询格式。
本说明书的一个或多个实施例中,将所述默认查询格式信息与所 述动态列信息进行merge操作,确定出所述查询格式,具体包括:
将所述默认格式信息显示的列信息与所述动态列信息进行合并,得到需要统计和展示的数据列;
根据所述需要统计和展示的数据列得到对应的列信息;其中,所述列信息包括绑定字段、列的宽度、字体、字号中的一项或多项;
根据所述列信息确定出所述查询格式。
本说明书的一个或多个实施例中,利用默认格式信息渲染初始页面的格式信息,获得默认格式信息下需要进行渲染的列信息。将默认格式信息和通过代码动态组织的动态列信息进行merge操作,获得最终需要统计和展示的数据列。
假设当查询参数为a、b、c时,默认格式信息下的列信息如下表1所示,包含列1,列2,列3的列信息。当查询的过滤条件发生变化后,查询参数做适应性改变对应的也需要多统计列信息,而此时就需要通过代码动态组织列A和列B。例如下表2所示,动态列信息为列A和列B,那么通过merge操作后,获得合并后的需要统计和展示的数据列如下表3所示。需要说明的是,列信息中包含了绑定字段,列的宽度,字体,字号等多种信息。其中,绑定字段是最简单的字段类型,它将数据简单的显示为文本包含了每个列中需要显示的数据。
列1 列2 列3
     
     
     
表1
列A 列B
   
   
   
表2
列1 列A 列B 列2 列3
         
         
         
         
表3
S205:将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
如图3所示,需要说明的是,服务器不仅将所述查询格式发送到了客户端,也将查询格式进行了缓存,当有相似的查询参数时可以直接服务器中调用查询格式以供客户端进行渲染。
上述说明从服务器端对查询动态列的实现方式做了说明,为了更加清楚的对查询流程进行说明,下面将从客户端来对查询动态列的实现方法进行说明。
图4为本说明书一个或多个实施例提供的一种应用于客户端的查询动态列的实现方法的流程图。
图4中的流程可以包括以下步骤:
S401:向服务器端发送查询请求;其中,所述查询请求包括查询参数。
S402:接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的架构处理得到的。
其中,动态列信息和统计数据的生成过程,参照上述步骤S203中的过程。
S403:根据所述动态列信息为参数调用渲染服务,获得查询格式。
客户端在接收动态列信息和统计数据后,将接收到的动态列信息作为参数向服务器端调用渲染服务,服务器端将默认的查询格式信息也就是报表的初始页面信息与动态列信息进行合并(merge)操作,将生成的完整的查询格式返回客户端。
需要说明的是,服务器端进行渲染服务时因为服务器端完成了查询格式的模板生成,只需要直接渲染出来。所以客户端的耗时较少,无需占用客户端资源。即生成查询格式的工作完全交由后端服务器来 做,客户端只要解析查询格式即可。这样对于客户端的资源占用更少,也可以节省电力资源。服务器端在生成查询格式的模板后,即生成缓存片段,可以减少数据库查询浪费的时间,对于数据变化不大的查询报表可以直接调用服务器端缓存的查询格式,使得查询流程变得更加便捷快速。
S404:根据所述查询格式进行页面渲染,完成所述统计数据的加载。
客户端在接收到查询格式后,根据所述查询格式对查询页面进行渲染,使得页面变为最终需要进行展示的样式。在进行页面渲染后客户端通过加载数据完成最终查询展示。
如图5所示为本说明书一个或多个实施例提供的一种应用于服务器端的查询动态列的实现装置的结构示意图。如图5所示,所述装置包括:
接收单元501,用于接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析单元502,用于解析所述查询参数,确定出需要统计的数据信息;
处理单元503,用于对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
渲染单元504,用于基于所述客户端调用渲染服务,确定出查询格式;
结果单元505,用于将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
图6为本说明书一个或多个实施例提供的一种应用于服务器端的查询动态列的实现设备的结构示意图。如图6所示,所述设备包括:
至少一个处理器601;以及,
与所述至少一个处理器通信连接的存储器602;其中,
所述存储器602存储有可被所述至少一个处理器601执行的指令,所述指令被所述至少一个处理器601执行,以使所述至少一个处理器 601能够:
接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析所述查询参数,确定出需要统计的数据信息;
对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
基于所述客户端调用渲染服务,确定出查询格式;
将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
图7为本说明书一个或多个实施例提供的一种应用于服务器端的查询动态列的实现介质的结构示意图。
如图7所示,本说明书一个或多个实施例提供的一种非易失性计算机存储介质应用于服务器端,存储有计算机可执行指令,所述计算机可执行指令701设置为:
接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
解析所述查询参数,确定出需要统计的数据信息;
对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
基于所述客户端调用渲染服务,确定出查询格式;
将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
图8为本说明书一个或多个实施例提供的一种应用于客户端的查询动态列的实现装置的结构示意图。如图8所示,所述装置包括:
发送单元801,用于向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收单元802,用于接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
渲染单元803,用于根据所述动态列信息为参数调用渲染服务,获得查询格式;
结果单元804,用于根据所述查询格式进行页面渲染,完成所述统计数据的加载。
图9为本说明书一个或多个实施例提供的一种应用于客户端的 查询动态列的实现设备的结构示意图。如图9所示,所述设备包括:
至少一个处理器901;以及,
与所述至少一个处理器通信连接的存储器902;其中,
所述存储器902存储有可被所述至少一个处理器901执行的指令,所述指令被所述至少一个处理器901执行,以使所述至少一个处理器901能够:
向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
根据所述动态列信息调用渲染服务,获得查询格式;
根据所述查询格式进行页面渲染,完成所述统计数据的加载。
图10为本说明书一个或多个实施例提供的一种应用于客户端的查询动态列的实现介质的结构示意图。如图10所示,所述计算机可执行指令1001设置为:
向服务器端发送查询请求;其中,所述查询请求包括查询参数;
接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
根据所述动态列信息调用渲染服务,获得查询格式;
根据所述查询格式进行页面渲染,完成所述统计数据的加载。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
以上所述仅为本说明书的一个或多个实施例而已,并不用于限制 本说明书。对于本领域技术人员来说,本说明书的一个或多个实施例可以有各种更改和变化。凡在本说明书的一个或多个实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书的权利要求范围之内。

Claims (10)

  1. 一种查询动态列的实现方法,其特征在于,所述方法应用于服务器端,该方法包括:
    接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
    解析所述查询参数,确定出需要统计的数据信息;
    对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
    基于所述客户端调用渲染服务,确定出查询格式;
    将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
  2. 根据权利要求1所述的方法,其特征在于,所述解析所述查询参数,确定出需要统计的数据信息,具体包括:
    确定预先建立的查询对象,并对应所述查询对象新增处理单元;
    在所述处理单元中,解析所述查询参数;
    根据所述查询参数的排列组合,确定出需要统计的数据信息。
  3. 根据权利要求2所述的方法,其特征在于,所述处理单元包括分页处理单元、汇总合计处理单元、排序处理单元、分组合计处理单元、数据格式化处理单元以及内置取数逻辑处理单元中的一项或多项。
  4. 根据权利要求1所述的方法,其特征在于,所述对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,具体包括:
    对所述需要统计的数据信息进行加工处理;
    将所述处理单元添加到执行队列中,以便内置的查询框架在执行查询流程时,自动处理执行队列中的处理单元,确定出动态列信息和统计数据。
  5. 根据权利要求1所述的方法,其特征在于,所述基于所述客户端调用渲染服务,确定出查询格式,具体包括:
    基于所述客户端通过所述动态列信息调用所述渲染服务;
    确定所述渲染服务默认的查询格式信息;
    将所述默认的查询格式信息与所述动态列信息进行merge操作,确定出所述查询格式。
  6. 根据权利要求5所述的方法,其特征在于,所述将所述默认查 询格式信息与所述动态列信息进行merge操作,确定出所述查询格式,具体包括:
    将所述默认格式信息显示的列信息与所述动态列信息进行合并,得到需要统计和展示的数据列;
    根据所述需要统计和展示的数据列得到对应的列信息;其中,所述列信息包括绑定字段、列的宽度、字体、字号中的一项或多项;
    根据所述列信息确定出所述查询格式。
  7. 一种查询动态列的实现方法,其特征在于,所述方法应用于客户端,该方法包括:
    向服务器端发送查询请求;其中,所述查询请求包括查询参数;
    接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
    根据所述动态列信息调用渲染服务,获得查询格式;
    根据所述查询格式进行页面渲染,完成所述统计数据的加载。
  8. 一种查询动态列的实现装置,应用于服务器端,其特征在于,所述装置包括:
    接收单元,用于接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
    解析单元,用于解析所述查询参数,确定出需要统计的数据信息;
    处理单元,用于对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
    渲染单元,用于基于所述客户端调用渲染服务,确定出查询格式;
    结果单元,用于将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
  9. 一种查询动态列的实现装置,应用于客户端,其特征在于,所述装置包括:
    发送单元,用于向服务器端发送查询请求;其中,所述查询请求包括查询参数;
    接收单元,用于接收动态列信息和统计数据;其中,所述动态列信息和统计数据是经过所述服务器端的加工处理得到的;
    渲染单元,用于根据所述动态列信息为参数调用渲染服务,获得查询格式;
    结果单元,用于根据所述查询格式进行页面渲染,完成所述统计数据的加载。
  10. 一种查询动态列的实现设备,应用于服务器端,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
    接收客户端发送的查询请求;其中,所述查询请求包括查询参数;
    解析所述查询参数,确定出需要统计的数据信息;
    对所述需要统计的数据信息进行加工处理,确定出动态列信息和统计数据,并将所述动态列信息和所述统计数据发送至所述客户端;
    基于所述客户端调用渲染服务,确定出查询格式;
    将所述查询格式发送至所述客户端,以便所述客户端通过加载所述查询格式进行页面渲染,完成所述统计数据的加载。
PCT/CN2021/082373 2021-02-24 2021-03-23 一种查询动态列的实现方法、装置及设备 WO2022178931A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110206502.X 2021-02-24
CN202110206502.XA CN112883082B (zh) 2021-02-24 2021-02-24 一种查询动态列的实现方法、装置及设备

Publications (1)

Publication Number Publication Date
WO2022178931A1 true WO2022178931A1 (zh) 2022-09-01

Family

ID=76054298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/082373 WO2022178931A1 (zh) 2021-02-24 2021-03-23 一种查询动态列的实现方法、装置及设备

Country Status (2)

Country Link
CN (1) CN112883082B (zh)
WO (1) WO2022178931A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101401062A (zh) * 2006-02-16 2009-04-01 移动容量网络公司 确定相关来源、查询及合并多个内容来源的结果的方法和系统
US20130073382A1 (en) * 2011-09-16 2013-03-21 Kontera Technologies, Inc. Methods and systems for enhancing web content based on a web search query
CN106407250A (zh) * 2015-07-28 2017-02-15 阿里巴巴集团控股有限公司 信息查询方法、装置、系统、服务器和客户端
CN108763527A (zh) * 2018-05-31 2018-11-06 北京明朝万达科技股份有限公司 一种业务数据的搜索方法和装置
CN108985981A (zh) * 2018-06-28 2018-12-11 北京奇虎科技有限公司 数据处理系统及方法

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727624A (zh) * 2009-12-17 2010-06-09 中国电力科学研究院 一种展现任务列表的方法及系统
US9569511B2 (en) * 2011-08-25 2017-02-14 Salesforce.Com, Inc. Dynamic data management
US8914353B2 (en) * 2011-12-20 2014-12-16 Sap Se Many-core algorithms for in-memory column store databases
CN102819424A (zh) * 2011-12-27 2012-12-12 金蝶软件(中国)有限公司 表格查询中动态构造查询窗体的方法及装置
US9256641B1 (en) * 2013-10-18 2016-02-09 Ca, Inc. Dynamic optimization of data aggregation
US10127206B2 (en) * 2014-07-16 2018-11-13 Oracle International Corporation Dynamic column groups in excel
CN109325053A (zh) * 2018-06-29 2019-02-12 平安科技(深圳)有限公司 报表系统的数据处理方法、装置及计算机可读存储介质
CN110211646B (zh) * 2019-05-22 2021-04-06 浙江大学 一种基于OCQL与openEHR的动态可配置医疗报表生成方法
CN110276059B (zh) * 2019-06-24 2023-10-27 银联商务股份有限公司 一种动态报表的处理方法和装置
CN111177231B (zh) * 2019-12-20 2023-09-22 中国建设银行股份有限公司 报表生成方法和报表生成装置
CN111597238A (zh) * 2020-06-10 2020-08-28 北京明朝万达科技股份有限公司 一种基于数据库的动态展示表格数据的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101401062A (zh) * 2006-02-16 2009-04-01 移动容量网络公司 确定相关来源、查询及合并多个内容来源的结果的方法和系统
US20130073382A1 (en) * 2011-09-16 2013-03-21 Kontera Technologies, Inc. Methods and systems for enhancing web content based on a web search query
CN106407250A (zh) * 2015-07-28 2017-02-15 阿里巴巴集团控股有限公司 信息查询方法、装置、系统、服务器和客户端
CN108763527A (zh) * 2018-05-31 2018-11-06 北京明朝万达科技股份有限公司 一种业务数据的搜索方法和装置
CN108985981A (zh) * 2018-06-28 2018-12-11 北京奇虎科技有限公司 数据处理系统及方法

Also Published As

Publication number Publication date
CN112883082B (zh) 2023-04-14
CN112883082A (zh) 2021-06-01

Similar Documents

Publication Publication Date Title
US20220035815A1 (en) Processing database queries using format conversion
US9418101B2 (en) Query optimization
US11989176B2 (en) Data query method and apparatus, device, and computer-readable storage medium
US10824614B2 (en) Custom query parameters in a database system
US20110218978A1 (en) Operating on time sequences of data
US20080082908A1 (en) Apparatus and method for data charting with adaptive learning
CN107229718B (zh) 处理报表数据的方法和装置
US10824620B2 (en) Compiling a relational datastore query from a user input
CN110633331B (zh) 一种关系数据库中数据提取方法、系统及相关设备
US7587416B2 (en) Advanced desktop reporting
US11163742B2 (en) System and method for generating in-memory tabular model databases
US20120173519A1 (en) Performing pre-aggregation and re-aggregation using the same query language
US10922328B2 (en) Method and system for implementing an on-demand data warehouse
US10942948B2 (en) Cloud-based pluggable classification system
CN111401023B (zh) 一种报表生成方法、装置、服务器及存储介质
US8095532B2 (en) Apparatus and method for generating report data in a multi-user environment
WO2022178931A1 (zh) 一种查询动态列的实现方法、装置及设备
US20150046881A1 (en) Archiving business objects
US20220335044A1 (en) Database query execution on multiple databases
US9053151B2 (en) Dynamically joined fast search views for business objects
CN111159991B (zh) 一种报表建模设计装置及方法
Kazi et al. MOLAP data warehouse of a software products servicing Call center
CA2663859C (en) Apparatus and method for updating a report through view time interaction
WO2023039212A1 (en) System and method for generating automatic insights of analytics data
CN117273593A (zh) 数据处理方法、装置、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21927365

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927365

Country of ref document: EP

Kind code of ref document: A1