Data query method and device based on domain-specific language

A data query and language technology, applied in the computer field, can solve the problems of inability to guarantee query efficiency, high development cost, complex parameters, etc., and achieve the effect of improving system availability, improving development efficiency, and ensuring data query efficiency.

Pending Publication Date: 2022-03-11
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, ES Domain-Specific Language (Domain-Specific Language, DSL) syntax and query application programming interface (Application Programming Interface, API) parameters are relati

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data query method and device based on domain-specific language
  • Data query method and device based on domain-specific language
  • Data query method and device based on domain-specific language

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0079] Aiming at the problem of poor system availability in the prior art, in order to improve system availability while ensuring data query efficiency, an embodiment of the present disclosure provides a solution for data query based on a domain-specific language.

[0080] The solution is: if the received data query statement sent by the business platform is a non-Chinese SQL statement, the basic parser set is used to parse the data query statement to generate an AST containing each rule node, and then, based on the AST, get Each parsing result corresponding to each rule node, and based on each parsing result, generate the corresponding ES DSL, and then receive the data query result returned by the ES search engine, and send the data query result to the business platform.

[0081] In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computers, in particular to a data query method and device based on a domain-specific language, which are used for improving the availability of a system while ensuring the data query efficiency, and the method comprises the following steps of: analyzing a received data query statement by adopting a set basic analyzer to generate a corresponding abstract syntax tree; and based on the abstract syntax tree, obtaining each analysis result corresponding to each rule node, generating a corresponding elastic search field specific language, and then receiving and sending a data query result returned by an elastic search engine. Therefore, conversion between the structured query language statement and the specific language in the elastic search field is realized by following the structured query language grammar, so that developers can quickly realize data query of an elastic search engine, and the development efficiency is greatly improved, so that the system availability is improved, and meanwhile, the data query efficiency is ensured.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to a data query method and device based on a domain-specific language. Background technique [0002] With the explosive growth of business system data and the increasing complexity of the system, the system search capabilities based on relational databases are difficult to meet the increasing search needs of users. [0003] Currently, data search is usually performed in the following ways: [0004] The first way is to introduce the Elasticsearch (ES) search engine as the core of the system's search capabilities, and build multiple business models stored in the database into system-wide objects of the search engine, so that the database can focus on data storage. ES Search engines focus on data searches. [0005] The second way is to introduce Apache Calcite, the structure of Apache Calcite is as follows figure 1 As shown, Apache Calcite can provide standard Structured ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/2453G06F16/242G06F16/22
CPCG06F16/24534G06F16/2433G06F16/2246G06F16/2453G06F16/22G06F16/242
Inventor 焦阳王宁
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products