CN107273104B - Processing method and device for configuration data structure - Google Patents

Processing method and device for configuration data structure Download PDF

Info

Publication number
CN107273104B
CN107273104B CN201610214925.5A CN201610214925A CN107273104B CN 107273104 B CN107273104 B CN 107273104B CN 201610214925 A CN201610214925 A CN 201610214925A CN 107273104 B CN107273104 B CN 107273104B
Authority
CN
China
Prior art keywords
data
configuration
configuration file
matching field
source
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
CN201610214925.5A
Other languages
Chinese (zh)
Other versions
CN107273104A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201610214925.5A priority Critical patent/CN107273104B/en
Publication of CN107273104A publication Critical patent/CN107273104A/en
Application granted granted Critical
Publication of CN107273104B publication Critical patent/CN107273104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method and a device for processing a configuration data structure. The method can include the steps of obtaining source data to be processed, and loading a preset data configuration file matched with a source data service scene; searching a second matching field matched with the first matching field of the source data in the data configuration file; and assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data. By utilizing the embodiments in the application, the repeated data configuration of a plurality of job tasks under the same service scene can be avoided, the code redundancy is reduced, the encoding operation efficiency is improved, and the operation experience of a user is improved.

Description

Processing method and device for configuration data structure
Technical Field
The present application relates to the field of computer data processing, and in particular, to a method and an apparatus for processing a configuration data structure.
Background
Data visualization originated in the 18 th century, and the main purpose of data visualization is to perform visualization processing on data and mapping data to graphs so as to realize more explicit and effective information transmission, such as graph drawing in a website webpage, real-time image display of user attention information in APP, and the like.
Generally, when a webpage is designed or data visualization processing is applied to a terminal, data modeling is generally required for a current job task. The created data model is mainly used for expressing the bottom description of data, and generally can include definition, type and data formatting of the data, operation functions of different data types and the like, for example, floating point numbers can be provided with addition, subtraction, multiplication, division and the like. Specifically, for example, when a data visualization processing job task is received, a designer needs to design and construct a data model conforming to a current application scenario for the current job task, and set data structure configuration information for data in a data source to be processed. For example, a certain data configuration set by the mapping mechanism provided by the visualization library d3.js, which is popular in the prior art, is described as follows:
when setting drawing attributes of a circle using d3.js, such as cx, cy, width, height, fill, it is necessary to call the attr () method 5 times on the method chain:
circleObj.attr("cx",0).attr("cy",0).attr("width",50).attr("height",50).attr("fill","teal");
alternatively, the prior art may also adopt a multi-value mapping mechanism provided by d3.js, which allows the designer to set multiple values at one time, i.e. encapsulate all configurations into one object, still using attr () method:
Figure BDA0000960514010000011
however, in the prior art, the data structure configuration of each job task is defined and set manually by a designer. When a plurality of job tasks of the same type of service scene face, a plurality of charts are generally drawn in different job tasks, and especially when data models of certain dimensionalities in data of the charts are the same, a designer needs to define the data of each chart once and configure the data model for generating source data. Code like data model of chart in certain job task 1:
Figure BDA0000960514010000021
when processing job task 2 and job task 3, the data model code that causes three charts of chart1, chart2, and chart3 is often repeatedly defined for the same type of source data. This not only results in redundancy of the code but also is detrimental to the readability of the code and sometimes results in inconsistency of the data displayed on the graph. And when the data of the service needs to have a certain professional background, the user needs to know how the data is defined, errors are easy to occur, and the operation experience of the code designer is reduced.
In the prior art, for example, a manual configuration method is adopted for a data model of graph data in a webpage, so that not only is the configuration efficiency of a data structure low, but also a large amount of work of repeatedly configuring the data structure is increased when the business data of the same business scene is faced, the coding operation efficiency is reduced, the risk of code errors is increased, and the operation experience of a user is reduced.
Disclosure of Invention
The application aims to provide a processing method and device for configuring a data structure, which can avoid repeated data configuration of a plurality of job tasks in the same service scene, reduce code redundancy, improve coding operation efficiency and improve operation experience of a user.
The method and the device for processing the configuration data structure are realized as follows:
a method of processing a configuration data structure, the method comprising:
acquiring source data to be processed, and loading a preset data configuration file matched with the service scene of the source data;
searching a second matching field matched with the first matching field of the source data in the data configuration file;
and assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data.
A processing apparatus for configuring a data structure, the apparatus comprising:
the data loading module is used for acquiring source data to be processed and loading a data configuration file matched with the service scene of the source data;
the configuration matching module is used for storing a preset data configuration file based on service scene definition and searching a second matching field matched with the first matching field of the source data in the data configuration file matched with the source data service scene;
and the data configuration module is used for assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data.
A data structure configuration apparatus, the apparatus comprising:
the storage unit is used for storing at least one preset data configuration file defined based on the service scene;
and the processing unit is used for searching a second matching field matched with the first matching field of the source data in a data configuration file matched with a source data service scene to be processed, and assigning the data structure configuration information of the searched second matching field to the corresponding first matching field in the source data.
The method and the device for processing the configuration data structure can provide a general data structure configuration processing method adaptive to a service scene. When data models are built for different job tasks under the same type of service scenes, a preset general data configuration file under the type of service scenes can be used, and then pairing search can be automatically carried out in the data configuration file according to the set matching key fields such as data attribute names. And then, loading the searched data configuration structure information under the attribute name, assigning corresponding data in the data source to generate the chart, configuring and generating a final data structure of the corresponding attribute name in the data source, and finishing data definition. Obviously, by adopting the processing method and device for configuring the data structure, the data definition in the source data can be rapidly completed, the data structure configuration can be completed by loading the data configuration file when in use, the repeated work of configuring the data structure by a user is reduced, and the coding operation efficiency is greatly improved. And the data of the same type of service scene can adopt a unified data configuration file, and unified and standardized data definition is used, so that code redundancy is greatly reduced, the risk of code errors is reduced, and the operation experience of a user and the processing efficiency of the whole operation task are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic method flow diagram illustrating an embodiment of a method for processing a configuration data structure provided herein;
FIG. 2 is a flowchart illustrating a method of another embodiment of a processing device for configuring a data structure according to the present application;
fig. 3 is a schematic block diagram of an embodiment of a data result configuration apparatus provided in the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
FIG. 1 is a flow chart of a method of one embodiment of a method for processing a configuration data structure as described herein. Although the present application provides method operational steps or apparatus configurations as illustrated in the following examples or figures, more or fewer operational steps or module configurations may be included in the method or apparatus based on conventional or non-inventive efforts. In the case of steps or structures where there is no logically necessary cause-and-effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure provided in the embodiments of the present application. The described methods or modular structures, as applied to a device or end product in practice, may be executed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) in accordance with the embodiments or with the modular structures illustrated in the figures.
Specifically, as shown in fig. 1, a method for processing a configuration data structure according to an embodiment of the present application may include:
s1: and acquiring source data to be processed, and loading a preset data configuration file matched with the service scene of the source data.
The source data described in the present application may generally include data in a data source that needs to perform data visualization to generate a chart in a specific application scenario. Generally, when a data visualization job task is received, source data to be processed can be determined, and a data source of the job task is set.
Further, after the source data to be processed is obtained, a corresponding data configuration file may be loaded according to the service scenario of the source data of the data visualization job task, and in this embodiment, the data configuration file may be loaded specifically by loading a data modeling tool. In the application, a general data configuration file of a service scene under a job task can be preset, and the data configuration file can be suitable for configuring data structures of different job tasks belonging to the same service scene. Generally, in the data visualization process, some common visual elements are usually included, such as:
(1) coordinates are as follows: the position of the numerical value is corresponded to a rectangular coordinate system or a polar coordinate system;
(2) size: the magnitude of the numerical value is corresponded to the magnitude of the figure;
(3) color: the classification and the limit of the numerical value and the like are corresponding to the difference of the color;
(4) labeling: the characteristics of the values are marked with labels;
(5) and (3) association: the association between the values is connected by the association line.
When drawing a graph, mapping of data to the graph is performed, that is, mapping of a measure of a data value in source data, mapping of a data attribute, and the like. Data in a data visualization job task can be viewed as a collection of data objects and attributes of the data objects. In the application, the attributes of the set data and the types and formats of the attribute values can be predefined for different service scenes, and a general data configuration file suitable for a specific certain type of service scenes is formed.
In this embodiment of the application, the data structure may include an attribute and an attribute value of the data, where the attribute may specifically include a variable, a value range, a feature, a characteristic, or the like of the data, and the attribute value may be understood as a data value that specifically expresses a numerical value or a symbol of the data. In most real-world applications, the type and format of data is typically fixed for each data in a particular business scenario. For example, in the drawing of web page charts of financial services, system security, service orders and the like, a large number of the same or similar configuration modes often exist for data definition, value taking, calling modes and the like related to the same service scene. Therefore, in the embodiment of the application, a data configuration file adaptive to a specific service scene can be predefined and set, and the data configuration file can be loaded through a provided general configuration tool in the implementation process, so that a user can avoid defining the same data configuration for each chart, the redundancy of codes is reduced, and the coding efficiency is improved.
Specifically, in the application scenario of the webpage data visual rendering page diagram, the data configuration file may adopt a JSON-described file format, and the data structure configuration information of the service scenario predefined by the user is stored in the JSON data description format. The json (javascript Object notification) is a lightweight data exchange format, adopts a text format completely independent of a language, is an ideal data exchange language, is easy to read and write by a human, and is also easy to parse and generate by a machine (generally used for increasing a network transmission rate). The written format of JSON data is typically: name/value pairs. Specifically, the configuration content in a configuration file provided by the application scenario of the present embodiment in the JSON format may include: PropertyName represents the attribute name of the data, as the key of the data structure, for pairing, name represents the display name of the data (for display on a chart), type represents the type of the data, and format defines the formatting information of the data (e.g., display the decimal point, how the time type data should be displayed, etc.). Code implementations can include the following data structure configuration information:
Figure BDA0000960514010000051
the user may preset a data profile for a certain class of service scenarios. Therefore, when processing different job tasks in the service scene, the user can load the data configuration file of the service scene to complete the data definition of the source data. The data configuration file contains data structure configuration information of all data which can be used in a service scene defined by a user. When the method is used, the preset data configuration file matched with the source data service scene can be loaded according to the requirement after the source data to be processed is obtained.
S2: and searching a second matching field matched with the first matching field of the source data in the data configuration file.
The source data described in this embodiment may generally perform normalization processing on the data attribute name and the attribute in the data configuration file before loading the data, and unify the set attribute name of the source data in the data source and the attribute name expressing the same meaning in the data configuration file. Thus, the provided data modeling tool can search the loaded data configuration file for the pairing according to the attribute name. In the application scenario of this embodiment, the search configuration may be set according to an attribute name, that is, in this embodiment, both the first matching field of the source data and the second matching field of the data configuration file that are paired in the search are data attribute names. Of course, in other embodiments, the first matching field and the second matching field may also be other data fields configured for finding a pair. Or, even in some embodiments, the first matching field and the second matching field may not be the same data field, but the matching is searched through the corresponding relationship between the first matching field and the second matching field. Therefore, in another embodiment of the processing method for configuring a data structure according to the present application, the first matching field and the second matching field may be attribute names of data.
In a specific application, for example, when a data visualization job task of a financial business scenario is processed, a data configuration file "FinCfgUtil" in JSON format suitable for the financial business scenario is configured in advance. The data configuration file "FinCfgUtil" defines attributes and types of attribute values of 100 data that can be used in a financial service scene in advance, and includes data structure configuration information of attribute names, data types, value-taking modes, and the like. When data is modeled (defined) in actual financial development, the source data in the data source of the loading setting actually uses 30 data, and the attribute names of the 30 source data can be uniformly normalized to be the same as the attribute names of the data expressing the same meaning in the data configuration file before the loading processing. Then, the same attribute name (second matching field) as the attribute name (first matching field) of the source data can be searched one by one in the data profile "FinCfgUtil" according to the attribute name.
In this embodiment, after the source data is acquired and the corresponding data configuration file is loaded, a second matching field matched with the first matching field of the source data may be searched in the data configuration file.
S3: and assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data.
As described above, through searching and matching in the data configuration file, the second matching field matched with the first matching field in the data configuration file can be found, and then the data structure configuration information of the found second matching field can be assigned to the corresponding first matching field in the source data, so as to generate the final data definition, and complete the data structure configuration. In the application scenario of the embodiment, a series of operations such as loading, searching, pairing, assigning, generating data definition and the like of the data configuration file can be completed by executing and processing inside through a set data modeling tool, so that data definition of source data is automatically realized, and the work processing efficiency is greatly improved.
For example, corresponding data structure configuration information of 30 source data is found in all the data configuration files "FinCfgUtil" in JSON format applicable to the financial service scene, the data structure configuration information under 30 attribute names which are the same as the attribute names of the source data in the data configuration files can be assigned to the 30 source data, and code definitions, values, calling modes and the like of the 30 source data can be generated quickly and automatically.
Of course, in some application scenarios, the data configuration file may not necessarily include all data fields of the source data under the current job task, for example, the data configuration file "FinCfgUtil" may include only data structure configuration information of 29 source data of 30 source data, and there is no relevant data structure configuration information for the attribute name "AntFanyi". The data structure configuration for the source data having the attribute name "AntFanyi" at this time can be set by the user himself using manual encoding. Of course, the user may also add configuration information defined by the related data of the attribute name "AntFanyi" in the data configuration file "FinCfgUtil", and then reload the data configuration file "FinCfgUtil", thereby completing the data structure configuration of all source data including the attribute name "AntFanyi".
Therefore, by adopting the implementation scheme provided by the embodiment of the application, when data is visualized to perform data modeling processing, rapid and automatic data definition (data modeling) can be realized by loading the set data configuration tool, repeated data configuration of different operation tasks under the same service scene is reduced, code redundancy is greatly reduced, and the operation efficiency is improved. For example, the execution code for the web page charting data visualization process setting may be as follows:
var dataFrame ═ new Frame (data); // conversion of raw data to data set
dataFrame ═ frame, rename ('original', 'new'); // Uniform Attribute name
var FinCfgUtil ═ require ('FinCfgUtil'); // load data configuration tool
Source (dataFrame, FinCfgUtil); generating final data definition and loading it as data source into chart object
The user only needs to input the unified data configuration tool as a second parameter when the user loads data (namely, the data source is loaded in the chart instance) at chat. Compared with the mode in the prior art, the type, the format and the like of each attribute of the data do not need to be defined once, and a new model can be generated for all data needing to be redefined once, so that the development efficiency is greatly improved, the code quantity and the configuration items of drawing the chart are reduced, the codes are clear and easy to read, the maintenance is realized, and the whole job task processing efficiency and the user job operation experience are provided.
The processing method for configuring the data structure provided by the application can be applied to data model construction for performing visualization processing on webpage chart drawing, and correspondingly, in the application scenario, the source data in one implementation mode of the source data can include: graph data in data visualization processing in a web page graph drawing job. Of course, it should be noted that the processing method of the configuration data structure provided by the present application is not limited to related operations drawn by a webpage diagram, and in other application scenarios, such as terminal application presentation interface design, information interaction interface design, and the like, a technical solution provided by the processing method can be used to implement rapid and automatic generation of data definitions for source data in an operation task according to a pre-configured general data configuration file based on a service scenario.
In an embodiment of the application, the data configuration file may be described in a JSON format, and particularly in a service scene of a web page graph drawing job, JSON provides a general data interaction format, so that a processor is easy to parse and generate, and the overall processing efficiency of the web page graph drawing job can be improved. Therefore, in an embodiment of the processing method for configuring a data structure according to the present application, the data configuration file is set to adopt a json (javascript Object notification) data description format. Of course, the present application is not limited to the data configuration file being described in the JSON data format, and other data description formats may be adopted in other alternative embodiments.
As mentioned above, the user may preset a data profile for a certain type of service scenario. Therefore, when processing different job tasks in the service scene, the user can load the data configuration file of the service scene to complete the data definition of the source data. Of course, the user may generate a corresponding data configuration file for each of different service scenarios according to analysis, demand design, and the like of the different service scenarios. When a user faces different service scenes, the data configuration file under the corresponding service scene can be loaded, and then the data definition of the source data can be completed. Therefore, in another embodiment of the present application, the data configuration file is configured to include structural configuration information of data defined based on a service scenario.
The data configuration tool under the scene can be provided for each service scene, repeated and low-efficiency data configuration work of a user is reduced, data display formats on charts under the same service scene can be unified, code redundancy is greatly reduced, the risk of coding operation errors is reduced, the scene adaptation is flexible, codes are clear and easy to read, the maintenance is convenient, and the coding efficiency is greatly improved.
The above-mentioned processing method of the configuration data structure can be implemented by adopting a page or a terminal application programming design language in combination with a necessary processor and a necessary memory. For example, when the web page chart drawing is used for data definition of source data, a data configuration tool can be generated by adopting Javascript language, the data configuration tool is additionally arranged to realize the rapid data definition of the source data and the field completion, and the processing efficiency of data visualization coding operation is improved. Therefore, based on the method for processing the configuration data structure, the present application provides a processing apparatus for configuring a data structure. Fig. 2 is a schematic block diagram of an embodiment of a configuration data structure processing apparatus provided in the present application. As shown in fig. 2, the apparatus in this embodiment may include:
the data loading module 101 may be configured to acquire source data to be processed and load a data configuration file matched with the source data service scenario;
the configuration matching module 102 may be configured to store a preset data configuration file defined based on a service scenario, and search a second matching field matched with the first matching field of the source data in the data configuration file matched with the source data service scenario;
the data configuration module 103 may be configured to assign the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data.
In some embodiments, the configuration matching module 102 may store a data configuration file in a current service scenario, and when processing a data visualization job task in the service scenario, the data configuration file may be used to implement a fast and automatic generation of a final data definition of source data. Of course, in another embodiment of the apparatus described in the present application, the configuration matching module 102 may provide a data configuration file in each service scenario based on different service scenarios, so as to further improve an applicable scenario range of the processing apparatus configured with a data structure, so that data visualization operation processing is more flexible and boundary. Therefore, in another embodiment of the apparatus of the present application, the data configuration file stored by the configuration matching module 102 may include:
at least one data profile is stored, the data profile being arranged to configure information based on a data structure of a service scenario definition.
The processing method for the configuration data structure is further used for business scenes of various data visualization processing such as application interfaces and drawing of web page diagrams. Especially in the drawing operation of the graph of the web page, the repeated and inefficient data setting work of a user can be greatly reduced, the data display format on the graph displayed on the web page can be unified, and the coding operation efficiency and the display efficiency are improved. Therefore, in an embodiment of the apparatus of the present application, the acquired source data to be processed may include chart data in a data visualization process in a web page chart drawing job.
Correspondingly, in the application scene of the drawing operation of the web page diagram, the stored data configuration file can be in a JSON data format, and the data can be searched according to the attribute name of the data when the data is searched and matched. Therefore, in another embodiment of the present application, the configuration matching module 102 stores a preset data configuration file configured to be described in JSON data format. And, in another optional implementation, the first matching field and the second matching field are attribute names of data. Specifically, the data configuration file described in the JSON data format and the description for searching for a match according to the attribute name may refer to the description related to the foregoing method, which is not described herein again.
By adopting the processing method and device for configuring the data structure, data definition in source data can be completed quickly, data structure configuration can be completed through direct loading when the device is used, repeated work of configuring the data structure by a user is reduced, and coding operation efficiency is improved greatly. And the data of the same type of service scene can adopt a unified data configuration file, and unified and standardized data definition is used, so that code redundancy is greatly reduced, the risk of code errors is reduced, and the operation experience of a user and the processing efficiency of the whole operation task are improved.
Of course, based on the description of the embodiments of the method and the apparatus for processing a configuration data structure provided in the present application, a data configuration tool may also be separately generated to perform data configuration on data of a job task in a certain service scenario, including but not limited to data definition for performing data visualization on chart data. In some terminal application design coding operations, the data configuration described in the present application can also be used to complete automatic and fast data structure configuration. Therefore, the present application further provides a data structure configuration apparatus, which may be formed by using a programming language such as Javascript in combination with necessary hardware, and specifically, the data structure configuration apparatus may include:
the storage unit 201 may be configured to store at least one preset data configuration file defined based on a service scenario;
the processing unit 202 may be configured to search, in a data configuration file matched with a source data service scenario to be processed, a second matching field matched with the first matching field of the source data, and assign data structure configuration information of the searched second matching field to a corresponding first matching field in the source data.
Fig. 3 is a schematic block diagram of an embodiment of a data result configuration apparatus provided in the present application. The data structure configuration device provided by the embodiment of the application can be in the form of data configuration tool components, modules, third-party applications and the like which can be loaded in a data modeling tool or coding operation, can be flexibly applied to various service scenes, greatly reduces repeated data configuration in a data model, has clear and readable codes, is convenient to maintain, and improves the operation processing efficiency.
Although the present application refers to the data configuration file in JSON data format, the data format of propertylame attribute name shown in the embodiment, the data format setting such as searching and matching by attribute name, drawing web page diagram, javascript language, etc., the information interaction mode, the application scenario, and the description of the programming design language, the present application is not limited to the case that the data configuration file completely conforms to the standard design language, the information interaction, or the description of the embodiment. The implementation of some design languages, application scenarios, information interactions, or embodiments described in the embodiments may be modified slightly to implement the same, equivalent, similar, or expected implementation results after modification. Of course, even if the data processing and determining manners such as javascript language or attribute name matching and searching are not adopted, the same application can be still implemented as long as the data definition, information interaction, and information determination feedback manners of the embodiments described above are met, and further description is omitted here.
Although the present application provides method steps as described in an embodiment or flowchart, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The units, devices or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the present application, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of a plurality of sub-modules or sub-units, and the like.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (11)

1. A method of processing a configuration data structure, the method comprising:
acquiring source data to be processed, and loading a preset data configuration file matched with the service scene of the source data; the source data comprises data of a data visualization job task which needs data visualization to generate a chart, and the data configuration file comprises a data configuration file which is predefined and set aiming at different service scenes drawn by the chart;
searching a second matching field matched with the first matching field of the source data in the data configuration file;
and assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data so as to complete the data structure configuration of the source data.
2. A method for processing configuration data structure according to claim 1, characterized in that said data configuration file is arranged to include configuration information of the structure based on data defined by service scenarios.
3. A process of configuring a data structure as claimed in claim 1 or 2, wherein the source data comprises charting data in a data visualization process in a web page charting job.
4. A method of processing a configuration data structure according to claim 3, wherein the data configuration file is arranged to be described in JSON data format.
5. A method according to claim 3, wherein said first matching field and said second matching field are attribute names of data.
6. A processing apparatus for configuring a data structure, the apparatus comprising:
the data loading module is used for acquiring source data to be processed and loading a data configuration file matched with the service scene of the source data; the source data comprises data of a data visualization job task which needs data visualization to generate a chart, and the data configuration file comprises a data configuration file which is predefined and set aiming at different service scenes drawn by the chart;
the configuration matching module is used for storing a preset data configuration file based on service scene definition and searching a second matching field matched with the first matching field of the source data in the data configuration file matched with the source data service scene;
and the data configuration module is used for assigning the data structure configuration information of the second matching field in the searched data configuration file to the corresponding first matching field in the source data so as to complete the data structure configuration of the source data.
7. The apparatus for processing a configuration data structure as claimed in claim 6, wherein the configuration matching module stores a data configuration file comprising:
at least one data profile is stored, the data profile being arranged to configure information based on a data structure of a service scenario definition.
8. The apparatus according to any one of claims 6 or 7, wherein the obtained source data to be processed includes diagram data in a data visualization process in a web page diagram drawing job.
9. A configuration data structure handling apparatus according to claim 8, wherein the configuration matching module stores a data configuration file arranged to be described in JSON data format.
10. A processing apparatus for configuring a data structure as recited in claim 8, wherein the first matching field and the second matching field are attribute names of data.
11. An apparatus for configuring a data structure, the apparatus comprising:
the storage unit is used for storing at least one preset data configuration file defined based on the service scene; the data configuration file comprises a preset data configuration file which is predefined and set aiming at different service scenes drawn by charts;
the processing unit is used for searching a second matching field matched with the first matching field of the source data in a data configuration file matched with a source data service scene to be processed, and assigning the data structure configuration information of the searched second matching field to the corresponding first matching field in the source data so as to complete the data structure configuration of the source data; the source data comprises data of a data visualization job task that needs to be data visualized to generate a chart.
CN201610214925.5A 2016-04-08 2016-04-08 Processing method and device for configuration data structure Active CN107273104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610214925.5A CN107273104B (en) 2016-04-08 2016-04-08 Processing method and device for configuration data structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610214925.5A CN107273104B (en) 2016-04-08 2016-04-08 Processing method and device for configuration data structure

Publications (2)

Publication Number Publication Date
CN107273104A CN107273104A (en) 2017-10-20
CN107273104B true CN107273104B (en) 2021-05-28

Family

ID=60052388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610214925.5A Active CN107273104B (en) 2016-04-08 2016-04-08 Processing method and device for configuration data structure

Country Status (1)

Country Link
CN (1) CN107273104B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766519B (en) * 2017-10-24 2021-01-26 四川长虹电器股份有限公司 Method for visually configuring data structure
CN108984178B (en) * 2018-06-26 2022-02-18 北京百悟科技有限公司 Communication method and device
CN109359199A (en) * 2018-08-27 2019-02-19 平安科技(深圳)有限公司 Fund manager's group dividing method, system, computer equipment and storage medium
CN109710676B (en) * 2018-12-26 2021-07-06 新华三技术有限公司 Data acquisition method and device of CMDB model and electronic equipment
CN112422476A (en) * 2019-08-20 2021-02-26 北京嗨动视觉科技有限公司 Data processing method, device and system
CN111726390B (en) * 2020-05-06 2022-11-25 上海融客软件科技有限公司 Interface data interaction method, device, equipment and storage medium based on Teamcenter
CN113407163A (en) * 2021-05-18 2021-09-17 中广核工程有限公司 Module association assignment method and device, computer equipment and readable storage medium
CN113986380B (en) * 2021-10-27 2024-02-06 北京百度网讯科技有限公司 Data processing method, device and system, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249422A (en) * 2006-03-14 2007-09-27 Fuji Electric Holdings Co Ltd Organization constitution management system, and program therefor
CN101075247A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 System and method for allocating service of geographical information system
CN103455516A (en) * 2012-06-01 2013-12-18 腾讯科技(北京)有限公司 Operation platform and maintaining method for database
CN104346377A (en) * 2013-07-31 2015-02-11 克拉玛依红有软件有限责任公司 Method for integrating and exchanging data on basis of unique identification
CN104657396A (en) * 2013-11-25 2015-05-27 腾讯科技(深圳)有限公司 Data migration method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110055809A1 (en) * 2009-08-28 2011-03-03 International Business Machines Corporation Typed configuration management in programming languages
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server
CN102508669A (en) * 2011-11-14 2012-06-20 浙江鸿程计算机***有限公司 Automatic program code generating method
CN104021147B (en) * 2014-05-16 2017-07-21 上海大唐移动通信设备有限公司 A kind of code stream analyzing method and device
CN105608088B (en) * 2014-11-19 2019-03-19 中国航空工业集团公司西安飞机设计研究所 A kind of database based on configuration file automatically creates and data dynamic recording method
CN105120002B (en) * 2015-09-09 2019-01-25 中国银行股份有限公司 A kind of information processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249422A (en) * 2006-03-14 2007-09-27 Fuji Electric Holdings Co Ltd Organization constitution management system, and program therefor
CN101075247A (en) * 2007-06-22 2007-11-21 上海众恒信息产业有限公司 System and method for allocating service of geographical information system
CN103455516A (en) * 2012-06-01 2013-12-18 腾讯科技(北京)有限公司 Operation platform and maintaining method for database
CN104346377A (en) * 2013-07-31 2015-02-11 克拉玛依红有软件有限责任公司 Method for integrating and exchanging data on basis of unique identification
CN104657396A (en) * 2013-11-25 2015-05-27 腾讯科技(深圳)有限公司 Data migration method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"一种可配置数据结构模型在汽车工程数据库中的应用";马颖 等;《计算机应用与软件》;20150515;第32卷(第5期);第46-49页 *

Also Published As

Publication number Publication date
CN107273104A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107273104B (en) Processing method and device for configuration data structure
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN109408102B (en) Version comparison method and device, household electrical appliance and network equipment
CN111061833B (en) Data processing method and device, electronic equipment and computer readable storage medium
US11314808B2 (en) Hybrid flows containing a continous flow
CN104298496B (en) data analysis type software development framework system
CN107015791B (en) Processing method, device and system for generating chart component system
CN107273979B (en) Method and system for performing machine learning prediction based on service level
CN105512265A (en) Method and device for displaying data through figure
EP3279816A1 (en) Data analysis processing method, apparatus, computer device, and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN111259318A (en) Intelligent data optimization method and device and computer readable storage medium
CN110990445A (en) Data processing method, device, equipment and medium
CN110647564A (en) Hive table establishing method, electronic device and computer readable storage medium
US20150007079A1 (en) Combining parallel coordinates and histograms
CN116301735B (en) Method, device and storage medium for organizing software elements into software data links
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN112130723B (en) Method and system for performing feature processing on data
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN115469849A (en) Service processing system, method, electronic device and storage medium
KR102099362B1 (en) Device and method for a data preparation using a micro service
CN113971074A (en) Transaction processing method and device, electronic equipment and computer readable storage medium
CN117573199B (en) Model difference comparison analysis method, device, equipment and medium
US20230359970A1 (en) Automated estimation and capture of greenhouse gas emissions from performance of software-based processes using cloud-based integration platform
CN111338941B (en) Information processing method and device, electronic 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant