Unlock instant, AI-driven research and patent intelligence for your innovation.

An Elasticsearch code generation method and tool based on a java language

A code generation and language technology, applied in the direction of creating/generating source code, can solve time-consuming and labor-intensive problems, and achieve the effect of improving efficiency and improving user satisfaction

Active Publication Date: 2019-05-07
杭州费尔斯通科技有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Sometimes elasticsearch has a lot of classes that need to be mapped, so it will be very time-consuming and labor-intensive to check the properties of the elasticsearch mapping and then write java entity classes one by one

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
  • An Elasticsearch code generation method and tool based on a java language
  • An Elasticsearch code generation method and tool based on a java language
  • An Elasticsearch code generation method and tool based on a java language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0056] like figure 1 As shown, a kind of elasticsearch code generation method based on java language provided by the present invention, the steps are as follows:

[0057] Step 1: Create a java project and import several related elasticsearch packages in two ways:

[0058] (1.1) Add elasticsearch dependencies in pom.xml;

[0059] (1.2) Download the corresponding package from the elasticsearch official website, put the package into the lib folder of the java project, and import the package (add build path) through the development tool (eclipse or idea); create a class package in the project.

[0060] Step 2: Create several configuration classes under the class package, including data source configuration class, package name configuration class, template configuration class, global configuration class, and injection configuration class...

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 discloses an Elasticsearch code generation method and tool based on a java language. The method comprises the following steps: firstly, establishing a java project; introducing A plurality of related elasicsearch packets; and then establishing a plurality of configuration classes under the class packet, including a data source configuration class, a packet name configuration class, atemplate configuration class, a global configuration class, an injection configuration class; creating an execution class for code generation, creating an execution method in the execution class, andcompleting one-key generation of codes according to information needing to be configured. The invention provides an Elasticsearch code mapping tool based on java code writing. The efficiency of javadevelopment when the Elasticsearch is used is improved, and some java entity classes of rapid development projects are achieved, so that the use satisfaction of java developers on the Elasticsearch isimproved.

Description

technical field [0001] The invention belongs to the field of Internet big data, relates to a java language-based elasticsearch code generation method and tool, and mainly covers document mapping of elasticseatch. Background technique [0002] Elasticsearch is an open source search engine product based on Apache Luncene. It was first released in 2010. Elasticsearch has the characteristics of open source, distributed, quasi-real-time, RESTFul, and easy for secondary development. The code is exquisite and the system is stable and reliable. [0003] Elasticsearch is a document-oriented database. A data here is a document. JSON is used as the document serialization format. The index (index) of elasticsearch is equivalent to the database in the relational database, and the type (type) is equivalent to the table and document of the relational database. (documents) are equivalent to rows in a relational database, and fields (fields) are equivalent to columns in a relational database...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30
Inventor 杨红飞
Owner 杭州费尔斯通科技有限公司