CN108959417B - Method for dynamically generating column based on quick retrieval template - Google Patents

Method for dynamically generating column based on quick retrieval template Download PDF

Info

Publication number
CN108959417B
CN108959417B CN201810585982.3A CN201810585982A CN108959417B CN 108959417 B CN108959417 B CN 108959417B CN 201810585982 A CN201810585982 A CN 201810585982A CN 108959417 B CN108959417 B CN 108959417B
Authority
CN
China
Prior art keywords
template
templates
content
matrix
quick retrieval
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.)
Active
Application number
CN201810585982.3A
Other languages
Chinese (zh)
Other versions
CN108959417A (en
Inventor
巫自友
胡德义
王钧甲
卢文波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Zhiwang Information Technology Co ltd
Original Assignee
Anhui Zhiwang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Zhiwang Information Technology Co ltd filed Critical Anhui Zhiwang Information Technology Co ltd
Priority to CN201810585982.3A priority Critical patent/CN108959417B/en
Publication of CN108959417A publication Critical patent/CN108959417A/en
Application granted granted Critical
Publication of CN108959417B publication Critical patent/CN108959417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for dynamically generating columns based on a quick retrieval template, and belongs to the technical field of information systems. The method comprises the following specific steps: step 1: the system is provided with a template group which supports a large number of template matching; step 2: the system carries out quick retrieval and matching on a large number of templates through a quick retrieval algorithm according to user setting; and step 3: after the template is searched, the system automatically analyzes the template according to the display mode of the content in the set template area, loads the content in the template area, acquires the display mode of the content and displays the loaded content to the user. The method solves the problems of complex maintenance, limited support to massive template libraries and low template retrieval efficiency caused by interface calling, and has the advantages of realizing rapid template retrieval and matching and reducing the maintenance amount of column dynamic maintenance.

Description

Method for dynamically generating column based on quick retrieval template
Technical Field
The invention belongs to the technical field of information systems, and particularly relates to a method for dynamically generating columns based on a quick retrieval template.
Background
At present, with the popularization and application of Internet network technology and the rapid development of information technology, the construction requirement of the portal is continuously increased. With the continuous expansion of column requirements, a mode of automatically generating columns based on a dynamic template technology is particularly important when background column maintenance is performed.
In the prior art, an invention patent (publication No. CN102096699A, publication date 2011, 6/15) discloses a display method and system based on a dynamic template, which includes: establishing a connection relationship with a CMS content management system, and allocating a data template for the CMS content management system, wherein the data template comprises: a content model template, a column data display template and a portal template; receiving the required content of a user, selecting a corresponding content model template according to the required content, and changing the content of an additional field in the content model template; calling a column data display template according to the content model template subjected to content modification to add column data, and managing the column data; and displaying the managed column data through the column data display template and the portal template. The display method and system based on the dynamic template disclosed by the application display the content data needing to be changed in the form of the dynamic template on the basis of a common single management system. The invention patent (publication number is CN103019684A, publication date is 2013, 4, 3) discloses a display method and a system based on a dynamic template, which comprises the steps of decomposing page elements into control functional units; different assembly combinations are carried out on the control functional units according to the content of the service page to be generated to form various dynamic templates; establishing association between the relevant attribute of the page and the required dynamic template according to the service type of the page to be generated; based on the incidence relation established between the page and the required dynamic template, the page calls the required dynamic template to form the required service page; when the service page needs to be modified, the dynamic template used by the service page can be configured and realized. The page elements are decomposed into the control functional units, so that the page elements can be used by different dynamic templates, and the reusability of the elements is improved; the configuration of the dynamic template enables different elements to be flexibly displayed on the page, the configuration is that the dragging of the control function unit is realized through a visual interface, the dynamic display of various pages is realized, the development time is saved, and the workload is reduced.
In the prior art, the method and system for displaying a dynamic template in the above document use an interface calling mode, when the display content needs to be changed arbitrarily, the display content cannot be implemented only by setting the template, but in most cases, the display content needs to be implemented by adjusting the interface code, which may result in an increase in the maintenance amount of the code, and the system does not provide a large number of templates for selection, and the number of templates to be selected is limited.
Therefore, the prior art has the problems of complex maintenance, limited support to a massive template library and low template retrieval efficiency caused by interface calling.
Disclosure of Invention
1. Problems to be solved
Aiming at the problems that the change of content data in the prior art causes the modification of a data interface and the increase of maintenance workload and the problem of low efficiency in the search of massive templates, the invention provides a method for dynamically generating columns based on a quick search template. By adopting the scheme of the invention, the rapid retrieval and matching of the content template and the expansion maintenance work of the dynamic column can be realized, and the maintenance amount of the dynamic column maintenance is reduced.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
A method for dynamically generating columns based on a quick retrieval template comprises the following specific steps:
step 1: the system is provided with a template group which supports a large number of template matching;
step 2: the system carries out quick retrieval and matching on a large number of templates through a quick retrieval algorithm according to user setting;
and step 3: after the template is searched, the system automatically analyzes the template according to the display mode of the content in the set template area, loads the content in the template area, acquires the display mode of the content and displays the loaded content to the user.
Preferably, the step 1 of configuring the template group specifically includes:
step 1.1: uploading N sets of templates to a system template library by the system, supporting free screening of users, and forming a template cluster by all templates in the template library;
step 1.2: abstracting the integer mark of the template into a matrix structure for storage;
preferably, the fast search algorithm in step 2 specifically includes the steps of:
step 2.1: each template is provided with an integer mark, and the integer marks of all the templates are extracted to form a matrix object;
step 2.2: designing a matrix structure in accordance with
Figure BDA0001689488820000021
Is represented by Aij, where n>1000,;
Step 2.3: 1000 elements are arranged in each row and are divided into m rows, and Aij represents the ith row and the jth column;
step 2.4: if (x% 1000 ═ 0), r ═ x/1000, then r +1 denotes the number of rows in the matrix, if (x% 1000 ═ 0), then r ═ x/1000 denotes the number of rows in the matrix for the element, where r > -0;
step 2.5: q ═ x% 1000 denotes the number of columns in which the matrix is located, where 0< ═ q < ═ 1000;
step 2.6: and x is Arq, namely the data needed to be found.
Preferably, the template includes a selection unit, an allocation unit, a management unit and a presentation unit, wherein:
the selection unit is used for providing a template selection process and screening out templates meeting the requirements of users;
the distribution unit is used for dividing the selected template into a plurality of areas, and each area has different data distribution;
the management unit is used for providing template data management and carrying out replacement processing on data and labels;
and the display unit is used for displaying the replaced template according to the setting.
3. Advantageous effects
Compared with the prior art, the invention has the beneficial effects that:
(1) the method adopts a system configuration template group, and the system carries out quick retrieval matching on a large number of templates through a quick retrieval algorithm according to user setting; the system supports a fully automatic analysis template according to the display mode of the regional content of the set template, presets regional content, and has more perfect support on the preset content, thereby realizing the rapid retrieval and matching of the template and the extended maintenance of dynamic columns and reducing the maintenance amount of the dynamic maintenance of the columns;
(2) the system of the invention uploads N sets of templates to the system template library by adopting the system, supports the free screening of users, forms a template cluster by all templates in the template library, provides a plurality of template clusters which can reach thousands of templates, and has the capability of quickly retrieving the templates based on the support of mass templates, thereby greatly reducing the maintenance cost of the system and improving the efficiency;
(3) the invention forms all templates into a matrix, abstracts out the identification of the template, can determine the corresponding template only by determining the row and the column of the matrix, calls out the template for data loading, preferentially searches from the constructed matrix object, generates the positions of each element of the matrix according to the calculation rule of the program unification, and can quickly determine the searched elements, thereby greatly improving the work efficiency of searching, saving the searching time and realizing the effect of quick searching;
(4) the template comprises a selection unit, a distribution unit, a management unit and a display unit, and each function is designed into a module structure and can be combined with a newly designed function module, so that the template has good system function and high reliability, and the expandability of the system is improved.
Drawings
FIG. 1 is a flow chart of a method for dynamically generating columns based on a fast search template according to the present invention;
FIG. 2 is a flow chart of the fast search algorithm of the present invention;
FIG. 3 is a schematic diagram of an analysis process according to the present invention;
FIG. 4 is a schematic diagram of the template components of the present invention.
Detailed Description
In order to more clearly describe the present invention, a detailed description of the present invention will be given below with reference to the accompanying drawings.
The invention is further described with reference to specific examples.
Example 1
Referring to fig. 1 and fig. 3, the specific steps of the method for dynamically generating a column based on a quick search template of the present invention include 3 steps.
Step 1 is to adopt a database system, upload a template library based on a file distributed storage technology to form a template cluster, and support a large amount of template matching. And step 2, the system carries out quick retrieval matching on a large number of templates through a quick retrieval algorithm according to user setting, and based on the support of massive templates, the system greatly reduces the maintenance cost and improves the efficiency. And 3, after the template is retrieved, the system automatically analyzes the template according to the template analysis technology according to the display mode of the content in the set template area, the display method comprises a single record and a plurality of records, the program automatically analyzes the template according to the template analysis technology, the content in the template area is loaded, the display mode of the content is obtained, the loaded content is displayed to a user, and when the content of the design column changes, the code is prevented from being modified.
The method realizes the rapid retrieval and matching of the template and the expanded maintenance of the dynamic column, and reduces the maintenance amount of the dynamic column maintenance.
In this embodiment, the fast search algorithm includes a matrix search method, a binary search method, and other algorithms.
The invention adopts a low coupling design mode on a code architecture to extract each flow step, and each flow step is respectively designed with a corresponding function to control, thereby greatly reducing the dependence between codes in the application process and integrally achieving the low coupling of the algorithm.
The method for dynamically generating the column based on the quick retrieval template has the advantages that the back end is complicated as much as possible, the operation of the front end is simplified, the operation experience of a user is improved, the maintenance workload is reduced, the quick maintenance can be carried out according to unified operation steps, each step corresponds to the unified processing logic and algorithm of the background, and unnecessary operation is not needed. And the interface is prevented from calling display data, simpler operation is provided, the requirement on maintenance personnel is not high, the trouble brought to the maintenance personnel by complex operation is avoided, and the method has the advantage of quick maintenance.
Example 2
Referring to fig. 1, different from embodiment 1, the specific step of configuring the template group in step 1 includes:
step 1.1: the system uploads N sets of templates to a system template library to support free screening of users, all templates in the template library form a template cluster, and the adopted technology comprises IO stream, distributed storage of the templates, file analysis and compression.
Step 1.2: the integer mark of the template is abstracted to a matrix structure for storage, and binary number can also be adopted for integer mark.
The embodiment provides a plurality of template clusters which can reach thousands of templates, and based on the support of massive templates, the template quick retrieval capability is realized, the maintenance cost of the system is greatly reduced, and the efficiency is improved.
Example 3
In the prior art, all templates are generally stored in a distributed manner, a database stores corresponding attribute values, and a corresponding template path is retrieved through the database, so that the templates are loaded. When a large amount of data is searched, the existing method is generally realized by adopting a hash searching method, a hash table is constructed, and hash conflicts are solved.
The embodiment provides a matrix formed by all templates, the identifiers of the templates are abstracted, the corresponding templates can be determined only by determining the rows and columns where the matrices are located, the templates are called for data loading, retrieval is preferentially performed from the constructed matrix objects, the positions of all elements of the matrices are generated according to the calculation rule unified by the program, the searched elements can be determined quickly, the searching efficiency can be greatly improved, the searching time is saved, and the effect of quick retrieval is realized.
Referring to fig. 2, fig. 2 is a flowchart of the fast retrieval algorithm in this embodiment, and in the fast retrieval algorithm in step 2, the method adopts a matrix grouping fast retrieval search method to realize fast positioning and retrieval of the template, so as to improve the retrieval efficiency, specifically, the method includes:
step 2.1: each template is provided with an integer mark, and the integer marks of all the templates are extracted to form a matrix object;
step 2.2: designing a matrix structure in accordance with
Figure BDA0001689488820000051
Is represented by Aij, where n>1000;
Step 2.3: 1000 elements are arranged in each row and are divided into m rows, and Aij represents the ith row and the jth column;
step 2.4: if (x% 1000 ═ 0), r ═ x/1000, then r +1 denotes the number of rows in the matrix, if (x% 1000 ═ 0), then r ═ x/1000 denotes the number of rows in the matrix for the element, where r > -0;
step 2.5: q ═ x% 1000 denotes the number of columns in which the matrix is located, 1000 columns being indicated if q ═ 0, where 0< ═ q < ═ 1000;
step 2.6: and x is Arq, namely the data needed to be found.
For example, when the template No. 2018 needs to be searched, the specific searching steps are as follows:
first, determine the row of the element, where r is 2018% 1000! When the value is 0, the action r of the element is (2018/1000) +1 is 3;
then, determining the column where the element is located, wherein q is 2018%, 1000 is 18, and q is 18;
then, the position of the element in the matrix is Arq, that is, the data to be found corresponds to the 3 rd row and the 18 th column.
It should be noted that in other embodiments, each row may be set to 2000 or 3000 elements according to the user's needs, and the algorithm may be automatically adjusted according to the parameters set by the user.
According to the analysis and algorithm design, the template can be quickly searched, the sequencing time is saved, and the system performance is greatly improved.
In the embodiment, a matrix search algorithm is adopted, all templates form a matrix, the corresponding template can be determined only by determining the row and the column of the matrix, and the template is called out for data loading, so that the operation of searching a large number of matrices is reduced, the searched content and workload are greatly reduced, the working efficiency is improved by 40%, the search time is saved, and the function of quick search is realized.
Example 4
In the prior art, the template mainly comprises a connection establishing unit, a template distributing unit, a content changing unit, an adding unit, a managing unit and a displaying unit, the number of the forming units is large, the operation complexity is high, and the operation convenience is reduced.
In order to improve the operability of the system, the embodiment reduces the number of the constituent units through reasonable design, and the constituent units mainly comprise a selection unit, a distribution unit, a management unit and a display unit. Referring to the schematic diagram of the template composition unit of fig. 4, the selection unit is used to provide a template selection process to screen out the templates meeting the requirements of the user; the distribution unit is used for dividing the selected template into a plurality of areas, and each area has different data distribution; the management unit is used for providing template data management and carrying out replacement processing on data and labels; and the display unit is used for displaying the replaced template according to the setting.
The invention designs each function as a module structure, has high reliability level, can be combined with a newly designed function module, and has good system function and high reliability, thereby improving the expandability of the system.
The invention and its embodiments have been described above schematically, without limitation, and the embodiments shown in the drawings are only one of the embodiments of the invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art receives the teachings of the present invention, without inventive design, a similar structure and an embodiment to the above technical solution should be covered by the protection scope of the present patent.

Claims (3)

1. A method for dynamically generating columns based on a quick retrieval template is characterized by comprising the following specific steps:
step 1: the system is provided with a template group which supports a large number of template matching;
step 1.1: uploading N sets of templates to a system template library by the system, supporting free screening of users, and forming a template cluster by all templates in the template library;
step 2: the system carries out quick retrieval and matching on a large number of templates through a quick retrieval algorithm according to user setting;
and step 3: after retrieving the template, the system automatically analyzes the template according to the display mode of the content in the set template area, loads the content in the template area, acquires the display mode of the content, and displays the loaded content to the user;
the quick retrieval algorithm in the step 2 specifically comprises the following steps:
step 2.1: each template is provided with an integer mark, and the integer marks of all the templates are extracted to form a matrix object;
step 2.2: designing a matrix structure, and marking as Aij according to expression, wherein n is more than 1000;
step 2.3: 1000 elements are arranged in each row and are divided into m rows, and Aij represents the ith row and the jth column;
step 2.4: if (x% 1000 ═ 0), r ═ x/1000, then r +1 denotes the number of rows in the matrix, if (x% 1000 ═ 0), then r ═ x/1000 denotes the number of rows in the matrix for the element, where r > -0;
step 2.5: q ═ x% 1000 denotes the number of columns in which the matrix is located, where 0< ═ q < ═ 1000;
step 2.6: and x is Arq, namely the data needed to be found.
2. The method for dynamically generating hurdles based on quick retrieval templates as claimed in claim 1, wherein the specific step of configuring the template group in step 1 includes:
step 1.2: and abstracting the integer mark of the template into a matrix structure for storage.
3. The method for dynamically generating columns based on the quick search template according to claim 1 or 2, wherein the template comprises a selection unit, an allocation unit, a management unit and a presentation unit, wherein:
the selection unit is used for providing a template selection process and screening out templates meeting the requirements of users;
the distribution unit is used for dividing the selected template into a plurality of areas, and each area has different data distribution;
the management unit is used for providing template data management and carrying out replacement processing on data and labels;
and the display unit is used for displaying the replaced template according to the setting.
CN201810585982.3A 2018-06-08 2018-06-08 Method for dynamically generating column based on quick retrieval template Active CN108959417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810585982.3A CN108959417B (en) 2018-06-08 2018-06-08 Method for dynamically generating column based on quick retrieval template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810585982.3A CN108959417B (en) 2018-06-08 2018-06-08 Method for dynamically generating column based on quick retrieval template

Publications (2)

Publication Number Publication Date
CN108959417A CN108959417A (en) 2018-12-07
CN108959417B true CN108959417B (en) 2022-03-29

Family

ID=64493379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810585982.3A Active CN108959417B (en) 2018-06-08 2018-06-08 Method for dynamically generating column based on quick retrieval template

Country Status (1)

Country Link
CN (1) CN108959417B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096699A (en) * 2010-12-14 2011-06-15 山东中创软件工程股份有限公司 Dynamic template-based display method and system
CN103246350A (en) * 2013-05-14 2013-08-14 中国人民解放军海军航空工程学院 Man-machine interface device and method for achieving auxiliary information prompting based on regions of interest
CN103607588A (en) * 2013-09-03 2014-02-26 电子科技大学 Residual error transformation coefficient significance map coding method based on template
CN105809087A (en) * 2014-12-30 2016-07-27 清华大学 Radiation examination system and vehicle model template search method
CN107103056A (en) * 2017-04-13 2017-08-29 哈尔滨工业大学 A kind of binocular vision indoor positioning database building method and localization method based on local identities

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096699A (en) * 2010-12-14 2011-06-15 山东中创软件工程股份有限公司 Dynamic template-based display method and system
CN103246350A (en) * 2013-05-14 2013-08-14 中国人民解放军海军航空工程学院 Man-machine interface device and method for achieving auxiliary information prompting based on regions of interest
CN103607588A (en) * 2013-09-03 2014-02-26 电子科技大学 Residual error transformation coefficient significance map coding method based on template
CN105809087A (en) * 2014-12-30 2016-07-27 清华大学 Radiation examination system and vehicle model template search method
CN107103056A (en) * 2017-04-13 2017-08-29 哈尔滨工业大学 A kind of binocular vision indoor positioning database building method and localization method based on local identities

Also Published As

Publication number Publication date
CN108959417A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US11907244B2 (en) Modifying field definitions to include post-processing instructions
JP5298117B2 (en) Data merging in distributed computing
CN111400408A (en) Data synchronization method, device, equipment and storage medium
CN102541529B (en) A kind of query page generating device and method
US9141703B1 (en) Systems and methods for browsing historical content
CN112015412A (en) Device and method for generating business model based on form engine
US7386793B2 (en) Apparatus, method and program for supporting a review
CN101136027B (en) System and method for database indexing, searching and data retrieval
CN111339171B (en) Data query method, device and equipment
CN110321383A (en) Big data platform method of data synchronization, device, computer equipment and storage medium
CN102779138A (en) Hard disk access method of real time data
CN112163048A (en) Method and device for realizing OLAP analysis based on ClickHouse
CN113094442B (en) Full data synchronization method, device, equipment and medium
CN111782703A (en) Method and system for automatically managing and displaying incidence relation between irrigation area object data
JP6642435B2 (en) Data processing device, data processing method, and program
CN108959417B (en) Method for dynamically generating column based on quick retrieval template
CN111159991B (en) Report modeling design device and method
CN115936017B (en) Main data management method supporting interface multilingual and data multilingual
CN107577809A (en) Offline small documents processing method and processing device
CN101661507A (en) Method for merging data and system thereof
US7966333B1 (en) User segment population techniques
CN106599144A (en) Monitoring and recording method for operational dynamics of equipment used for intelligent building project
JP2021197130A (en) Information processing device
CN104850402A (en) Style adjusting method and device for page content
KR20080061501A (en) Web history archive system and method for web pages management

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