CN104537012B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN104537012B
CN104537012B CN201410790379.0A CN201410790379A CN104537012B CN 104537012 B CN104537012 B CN 104537012B CN 201410790379 A CN201410790379 A CN 201410790379A CN 104537012 B CN104537012 B CN 104537012B
Authority
CN
China
Prior art keywords
data
file
template
processing
specified
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
CN201410790379.0A
Other languages
Chinese (zh)
Other versions
CN104537012A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201410790379.0A priority Critical patent/CN104537012B/en
Publication of CN104537012A publication Critical patent/CN104537012A/en
Application granted granted Critical
Publication of CN104537012B publication Critical patent/CN104537012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data processing method and device, belong to field of computer technology.The described method includes: generating template file, the template file includes multiple data processing code blocks and template data, wherein data processing code block is for handling the template data;Template data in the template file is replaced with to specified data to be processed, obtains processing file, so that the data processing code block in the processing file is for handling the specified data;Based on multiple data processing code blocks in the processing file, the specified data are handled.Present invention utilizes for different data, the similar feature of the data processing code of identical data processing operation, all data processing codes are inputted without developer, it is easy to operate, greatly reduce the workload of developer, unnecessary waste of human resource is avoided, and reduces the probability for mistake occur, improves development efficiency.

Description

Data processing method and device
Technical field
The present invention relates to field of computer technology, in particular to a kind of data processing method and device.
Background technique
In systems development process, developer would generally write on computers code according to the functional requirement of system, When writing completion, computer can run the code, according to the instruction of the code, execute the operation of developer's setting.
And with the continuous increase of data volume in system, data processing operation is essential.Machine executes for ease of calculation Data processing operation, developer can write corresponding data processing code, when computer runs the data processing code, i.e., Data can be handled according to the instruction of the data processing code.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
All data processing codes are inputted by developer, cumbersome, and workload is very big, and is likely to out Existing mistake, system development efficiency are very low.Further, for different data, when the data processing operation to be executed is identical When, the data processing code that developer is write is similar, and when such as needing to delete data A, data processing code is " delete number According to A ", and when needing to delete data B, data processing code is " delete data B ".At this point, if at the data of each data Reason code is all inputted by developer, has been resulted in the repeated work of developer, has been wasted unnecessary human resources.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of data processing method and device.It is described Technical solution is as follows:
In a first aspect, providing a kind of data processing method, which comprises
Template file is generated, the template file includes multiple data processing code blocks and template data, wherein at data Reason code block is for handling the template data;
Template data in the template file is replaced with to specified data to be processed, processing file is obtained, so that institute The data processing code block in processing file is stated for handling the specified data;
Based on multiple data processing code blocks in the processing file, the specified data are handled.
Optionally, the template data includes multiple attribute datas, each data processing code in the template file Block is for handling multiple attribute datas of the template data;
Correspondingly, the template data by the template file replaces with specified data to be processed, handled File includes:
Generate the object of the specified data;
The object is parsed, multiple specified attribute data of the specified data are obtained;
Multiple attribute datas of template data described in the template file are replaced with to the phase of the specified data respectively Specified attribute data are answered, the processing file is obtained.
Optionally, the multiple specified attribute data include class name, field type, field data and the institute of the object State the data tag table of specified data.
Optionally, the template data by the template file replaces with specified data to be processed, is handled File includes:
By the way of inlet flow, the template file is read;
Template data in the template file is replaced with into the specified data;
By the way of output stream, replaced data are written in specified directory, the processing file is obtained.
Optionally, multiple data processing code blocks based in the processing file, carry out the specified data Processing includes:
When receiving the open instructions to the processing file, the processing file is opened;
When detecting the edit operation to the multiple data processing code block, according to the edit operation, to described Multiple data processing code blocks are edited;
Run edited multiple data processing code blocks.
Second aspect, provides a kind of data processing equipment, and described device includes:
Template file generation module, for generating template file, the template file includes multiple data processing code blocks And template data, wherein data processing code block is for handling the template data;
Replacement module obtains everywhere for the template data in the template file to be replaced with to specified data to be processed File is managed, so that the data processing code block in the processing file is for handling the specified data;
Processing module, for based on it is described processing file in multiple data processing code blocks, to the specified data into Row processing.
Optionally, the template data includes multiple attribute datas, each data processing code in the template file Block is for handling multiple attribute datas of the template data;
Correspondingly, the replacement module is used to generate the object of the specified data;The object is parsed, is obtained Multiple specified attribute data of the specified data;Multiple attribute datas of template data described in the template file are distinguished The corresponding specified attribute data for replacing with the specified data, obtain the processing file.
Optionally, the multiple specified attribute data include class name, field type, field data and the institute of the object State the data tag table of specified data.
Optionally, the replacement module is also used to by the way of inlet flow, reads the template file;By the template Template data in file replaces with the specified data;By the way of output stream, specified mesh is written into replaced data In record, the processing file is obtained.
Optionally, the processing module is used to open the place when receiving the open instructions to the processing file Manage file;When detecting the edit operation to the multiple data processing code block, according to the edit operation, to described more A data processing code block is edited;Run edited multiple data processing code blocks.
Technical solution provided in an embodiment of the present invention has the benefit that
Method and apparatus provided in an embodiment of the present invention, by generating the template file, will be to specified data at When reason, the template data in the template file is replaced with into the specified data, obtains processing file, then based in the processing file Multiple data processing code blocks, specify data to handle this.It is utilized for different data, identical data processing The similar feature of the data processing code of operation is generated by the template file handled template data to the specified number According to the processing file handled, all data processing codes are inputted without developer, it is easy to operate, it greatly reduces out The workload of hair personnel avoids unnecessary waste of human resource, and reduces the probability for mistake occur, improves exploitation effect Rate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 3 A is the object identification code schematic diagram of specified data provided in an embodiment of the present invention;
Fig. 3 B is the code schematic diagram of template file provided in an embodiment of the present invention;
Fig. 3 C is the code schematic diagram of processing file provided in an embodiment of the present invention;
Fig. 4 is a kind of data processing equipment structural diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of data processing method provided in an embodiment of the present invention, referring to Fig. 1, this method comprises:
101, template file is generated, which includes multiple data processing code blocks and template data, wherein data Processing code block is for handling the template data.
102, the template data in the template file is replaced with to specified data to be processed, obtains processing file, so that Data processing code block in the processing file is for specifying data to handle this.
103, based on multiple data processing code blocks in the processing file, data are specified to handle this.
Method provided in an embodiment of the present invention, will when will handle specified data by generating the template file Template data in the template file replaces with the specified data, obtains processing file, then based on multiple in the processing file Data processing code block specifies data to handle this.It is utilized for different data, identical data processing operation The similar feature of data processing code, by the template file handled template data, generation specifies data to carry out this The processing file of processing inputs all data processing codes without developer, easy to operate, greatly reduces developer Workload, avoid unnecessary waste of human resource, and reduce occur mistake probability, improve development efficiency.
Optionally, which includes multiple attribute datas, and each data processing code block in the template file is used It is handled in multiple attribute datas to the template data;
Correspondingly, the template data in the template file is replaced with specified data to be processed by this, processing file is obtained Include:
Generate the object of the specified data;
The object is parsed, multiple specified attribute data of the specified data are obtained;
Multiple attribute datas of the template data in the template file are replaced with into the corresponding specified of the specified data respectively Attribute data obtains the processing file.
Optionally, multiple specified attribute data include the class name of the object, field type, field data and this is specified The data tag table of data.
Optionally, the template data in the template file is replaced with specified data to be processed by this, obtains processing file Include:
By the way of inlet flow, the template file is read;
Template data in the template file is replaced with into the specified data;
By the way of output stream, replaced data are written in specified directory, the processing file is obtained.
Optionally, data should be specified to carry out processing packet this based on multiple data processing code blocks in the processing file It includes:
When receiving the open instructions to the processing file, the processing file is opened;
When detecting the edit operation to multiple data processing code block, according to the edit operation, to multiple number It is edited according to processing code block;
Run edited multiple data processing code blocks.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
Fig. 2 is a kind of flow chart of data processing method provided in an embodiment of the present invention.The execution master of the inventive embodiments Body is data processing equipment, referring to fig. 2, this method comprises:
201, the data processing equipment obtains multiple data processing code blocks and template data, according to the template data and is somebody's turn to do Multiple data processing code blocks, generate template file, which includes operation code.
Wherein, which can be the equipment having data processing function such as computer, server, exploit person Member can write code on the data processing equipment, then the data processing equipment obtains the code that developer writes, alternatively, Developer writes code in other equipment, which is sent to the data processing equipment for the code, at the data Reason device obtains the code.When the data processing equipment gets the code that developer writes, the code is run, thus right Data are handled.
In embodiments of the present invention, which is used to indicate the position that data to be processed should replace, and is not practical Data to be processed, then, which can choose arbitrary sample data, as template data, or will be empty Quasi- mark is used as template data, as included virtual identifying " Tablename (data table name) " in the template file, indicates herein For replacing data table name to be processed.The template data can be pre-generated by the data processing equipment, can also be by opening Hair personnel pre-enter into the data processing equipment, the embodiment of the present invention to this without limitation.
Multiple data processing code block is for handling the template data, to realize corresponding data processing function Energy.The data processing code block can be a function realizing method, can be compiled by developer according to the template data It writes.The language that multiple data processing code block uses can be Java language, SQL (Structured Query Language, structured query language) or other language etc., it is not limited in the embodiment of the present invention.Optionally, multiple Data processing code block can be based on JDBC (connection of Java Data Base Connectivity, Java database) and realize, JDBC can provide unified access for multitype database, then when realizing code based on JDBC, can uniformly access multiple data Data in library.
It include operation code in the template file, the operation code is by multiple data processing code block and the template data Composition.It can also include identifier in the template file for the ease of distinguishing, which is used to indicate the position of the template data It sets, can be the additional characters such as " # ", " * ", " ", it is not limited in the embodiment of the present invention.
In embodiments of the present invention, multiple data processing code block is respectively used to carry out different type to the template data Data processing operation, such as read operation, write operation, delete operation, inquiry operation, caching, moving operation.One Kind data processing operation corresponds to a kind of function, then the function that multiple data processing code block is realized is different, the present invention Embodiment to the function of multiple data processing code without limitation.
It may include subsequent processing in the template file to improve the function of data processing code block in the template file The data code block for the every kind of data processing operation that may be used when data, the then processing that the subsequent data processing equipment obtains Include the data processing code block for the every kind of data processing operation that may be used in file, ensure that the comprehensive of code block function Property, input other data processing code blocks again without developer.
202, the data processing equipment reads the template file by the way of inlet flow, by the mould in the template file Plate data replace with specified data to be processed, by the way of output stream, replaced data are written in specified directory, are obtained To the processing file.
When to handle specified data, which can be based on the template file, by the template Template data in file replaces with the specified data, obtains processing file, then includes multiple data processings in the processing file Code block and the specified data, multiple data code block can specify data to carry out different types of data processing behaviour to this Make, to realize different functions.Wherein, which refers to data to be processed, can be the data, interior in database Data during the data deposited, local transmission or the data in network transmission process etc., in Redis database Tables of data, it is not limited in the embodiment of the present invention.
Optionally, the template data can be an object in the template file, when specifying at data to this When reason, which can be generated the object of the specified data, and the object in the template file is replaced with this and is specified The object of data obtains processing file, subsequent to apply the processing file, specifies data to handle this.Further, The template data may include multiple attribute datas, and each data processing code block in the template file is used for multiple category Property data are handled, then when to handle specified data, which can specify data to map this In pairs as being parsed to the object, obtaining multiple specified attribute data of the object, by multiple attributes in the template file Data replace with the corresponding specified attribute data of the specified data respectively, obtain the processing file.Wherein, multiple specified attribute Data include the title of the class name of the object, field type, field data and the specified data, the embodiment of the present invention to this not It limits.
For example, with reference to Fig. 3 A, which is tables of data, and the code of the object of the specified data can be such as Fig. 3 A institute Show.Wherein, tables of data is entitled " User ", includes four fields in the object: major key " id ", user name " userName ", close Code " password " and mobile phone " phone ".Caching code in the template file can be as shown in Figure 3B, wherein identifier " $ " Indicate that subsequent data are template data, " { name } " indicates data table name, and " { nameLower } " indicates the tables of data of small letter Title, then when tables of data " User " indicated by Fig. 3 A to be cached, by the template data in the caching code of the template file " { name } " and " { nameLower } " replaces with corresponding data in tables of data " User ", i.e., by the caching of the template file " $ { name } " in code replaces with " User ", and " $ { nameLower } " in the caching code of the template file is replaced with " user " obtains processing file, and the caching code in the processing file can be as shown in Figure 3 C.
In practical applications, which can generate the processing file by the way of IO (read-write) stream.Tool Body, which creates an inlet flow, which is read into memory, in memory by template text Template data in part replaces with the specified data, and creates an output stream, this is written in data replaced in memory and is referred to Determine in catalogue, obtains the processing file.FreeMarker engine can be used in the data processing equipment, executes according to template text Part, the step of obtaining the processing file, it is not limited in the embodiment of the present invention.
Wherein, which can specify data to determine by the data processing equipment according to this, the inlet flow and output Stream can be character stream or byte stream, and the inlet flow and the format of the output stream can be binary data format, such as PB (Protocol Buffer, agreement buffer area) binary data format etc., it is not limited in the embodiment of the present invention.By adopting With binary data format, binary data stream can be created, object to be processed is serialized, reduces the interior of occupancy It deposits, saves memory overhead, reduce hardware cost.
In embodiments of the present invention, when to handle the specified data, which can also provide display circle Face includes that data select option in the display interface, when the data processing equipment detects the point to data selection option When hitting operation, data object catalogue is shown, obtain the object that developer selects from the data object catalogue, indicate exploit person Member will be handled the object.When the data processing equipment shows the data object catalogue, all selection choosings can also be shown , when detecting developer in the clicking operation of whole selection option, expression will be to every in the data object catalogue A object is handled, then for each object in the data object catalogue, which will be in the template file The object of template data replace with each object in the data object catalogue respectively, obtain the corresponding processing text of each object Part.
In addition, multiple data processing code block can be used for carrying out the template data different in the template file The data processing operation of type, so as to realize different functions, then the data processing equipment obtains each data processing generation Function corresponding to code block, and display function selects option, when detecting the clicking operation to function selection option, display Function corresponding to each data processing code block, and obtain the function that developer selects from multiple functions of display, then The data processing equipment, can be only by the template file when the template data in the template file is replaced with the specified data In, the template data in data processing code block corresponding to the function of developer's selection replaces with specified data, and will open Data processing code block corresponding to the non-selected function of hair personnel is deleted, and the processing file is obtained.When being not detected to the function When can select the clicking operation of option, which can default in all data code blocks by the template file Template data replaces with the specified data, obtains the processing file.
The data processing equipment generates the processing file, and data and preset rules can be specified according to this, are determined at this The title of file is managed, which can be initial caps, each word initial caps etc., for example, the preset rules Each word small letter specified in specification or SQL specification can be write for Javax, add underscore etc., the present invention between word Embodiment does not limit this.And when the template data is replaced with the specified data by the data processing equipment, it can also adopt With hump nomenclature, data are specified according to this, the variable in the processing file is renamed, for example, by user name The initial of one word is revised as capitalization, and the initial of other words is revised as small letter etc., the embodiment of the present invention pair This is without limitation.
203, when the data processing equipment receives the open instructions to the processing file, the processing file is opened, when When detecting the edit operation to multiple data processing code block, according to the edit operation, to multiple data processing code Block is edited, and edited multiple data processing code blocks are run.
Multiple data processing code blocks in the processing file may be implemented multiple functions, and it is subsequent to this specify data into When row processing, many functions may not be needed to realize, then realizes that the data processing code block of these functions will not be used.For This, developer can trigger edit operation, edit to multiple data processing code block.Wherein, which can Think the operation of selection data processing code block, the operation modified to data code block, the operation of mobile data code block, The operation etc. for deleting data code block, correspondingly, developer can be more from this according to the process demand for specifying data to this Selection will realize data code block corresponding to function in a data code block, and in any data of selection processing code block Code modify, alternatively, the position of any data processing code block of mobile selection, to multiple data processing code The sequence of block is adjusted.Developer can also delete data code block corresponding to the function of being not required to realize, the present invention is real Example is applied not limit this.
When the data processing equipment receives the processing file, the processing file is saved, developer can be in the number According to the open instructions triggered in processing unit to the processing file, then the data processing equipment, which receives, plays the processing file Instruction is opened, the processing file is opened.It include multiple data processing code blocks in the processing file, which can examine Edit operation of the developer to multiple data processing code block is surveyed, according to the edit operation, to multiple data code block It is edited, obtains edited multiple data processing code blocks.When the data processing equipment runs edited multiple numbers When according to processing code block, data can be specified to handle this.
In embodiments of the present invention, most of data processing that developer may use in the processing file has been included Code block, developer only need to slightly edit, and the work for writing code can be completed, and no longer need to be manually entered at all data Code is managed, the workload of developer is greatly reduced, moreover, reducing the probability for input error occur.
It should be noted that the embodiment of the present invention is illustrated so that the data processing equipment executes step 201-203 as an example, In fact, step 201-203 can be executed by multiple devices.For example, developer can write on the first device Code, inputs multiple data processing code block and the template data, which obtains multiple data processing code block With the template data, the template file is generated, which sends the template file to second device, which receives When to the template file, the template file can be first saved, in subsequent process, which can be according to be processed specified Template data in the template file is replaced with the specified data, obtains the processing file, sending to 3rd device should by data File is handled, the specified data, then when the 3rd device receives the processing file, Ke Yiyun are preserved in the 3rd device The row processing file, specifies data to handle this.The embodiment of the present invention does not do the executing subject of the data processing method It limits.
Method provided in an embodiment of the present invention, will when will handle specified data by generating the template file Template data in the template file replaces with the specified data, obtains processing file, then based on multiple in the processing file Data processing code block specifies data to handle this.It is utilized for different data, identical data processing operation The similar feature of data processing code, by the template file handled template data, generation specifies data to carry out this The processing file of processing inputs all data processing codes without developer, easy to operate, greatly reduces developer Workload, avoid unnecessary waste of human resource, and reduce occur mistake probability, improve development efficiency.Into One step, by using binary data format, creates binary data stream and save memory to obtain the processing file and open Pin, reduces hardware cost.
Fig. 4 is a kind of data processing equipment structural diagram provided in an embodiment of the present invention, and referring to fig. 4, which includes:
Template file generation module 401, for generating template file, which includes multiple data processing code blocks And template data, wherein data processing code block is for handling the template data;
Replacement module 402 obtains everywhere for the template data in the template file to be replaced with to specified data to be processed File is managed, so that the data processing code block in the processing file is for specifying data to handle this;
Processing module 403, for specifying data to carry out this based on multiple data processing code blocks in the processing file Processing.
Device provided in an embodiment of the present invention, will when will handle specified data by generating the template file Template data in the template file replaces with the specified data, obtains processing file, then based on multiple in the processing file Data processing code block specifies data to handle this.It is utilized for different data, identical data processing operation The similar feature of data processing code, by the template file handled template data, generation specifies data to carry out this The processing file of processing inputs all data processing codes without developer, easy to operate, greatly reduces developer Workload, avoid unnecessary waste of human resource, and reduce occur mistake probability, improve development efficiency.
Optionally, which includes multiple attribute datas, and each data processing code block in the template file is used It is handled in multiple attribute datas to the template data;
Correspondingly, the replacement module 402 is used to generate the object of the specified data;The object is parsed, is somebody's turn to do Multiple specified attribute data of specified data;Multiple attribute datas of the template data in the template file are replaced with this respectively The corresponding specified attribute data of specified data, obtain the processing file.
Optionally, multiple specified attribute data include the class name of the object, field type, field data and this is specified The data tag table of data.
Optionally, which is also used to by the way of inlet flow, reads the template file;By template text Template data in part replaces with the specified data;By the way of output stream, replaced data are written in specified directory, Obtain the processing file.
Optionally, which is used for when receiving the open instructions to the processing file, opens processing text Part;When detecting the edit operation to multiple data processing code block, according to the edit operation, to multiple data processing Code block is edited;Run edited multiple data processing code blocks.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
It should be understood that data processing equipment provided by the above embodiment is when handling data, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of data processing equipment is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, data processing equipment provided by the above embodiment and data processing method embodiment belong to same design, Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of data processing method, which is characterized in that the described method includes:
Template file is generated, the template file includes multiple data processing code blocks and template data, and the template data is Object, including multiple attribute datas, each data processing code block in the template file are used for the template data Multiple attribute datas are handled;
Template data in the template file is replaced with to specified data to be processed, processing file is obtained, so that the place Data processing code block in reason file is for handling the specified data;
Based on multiple data processing code blocks in the processing file, the specified data are handled;
The template data by the template file replaces with specified data to be processed, obtains processing file and includes:
It shows that data select option in display interface, when detecting the clicking operation to data selection option, shows number According to object directory;
Determining in the data object catalogue whether there is selected object, using the selected object as the finger The object of fixed number evidence;
The object is parsed, multiple specified attribute data of the specified data are obtained;
Multiple attribute datas of template data described in the template file are replaced with to the corresponding finger of the specified data respectively Determine attribute data, obtains the processing file;
The template data by the template file replaces with specified data to be processed, obtains processing file, comprising:
Option is selected in the display interface display function, when detecting the clicking operation for function selection option, Show the corresponding function of each data processing code block;
It determines with the presence or absence of selected function in the corresponding function of the data processing code block, by the selected function Template data in corresponding data processing code block replaces with specified data to be processed, and not selected function institute is right The data processing code block answered is deleted, and the processing file is obtained.
2. the method according to claim 1, wherein the multiple specified attribute data include the class of the object Name, field type, field data and the specified data data tag table.
3. the method according to claim 1, wherein the template data by the template file replaces with Specified data to be processed, obtaining processing file includes:
By the way of inlet flow, the template file is read;
Template data in the template file is replaced with into the specified data;
By the way of output stream, replaced data are written in specified directory, the processing file is obtained.
4. the method according to claim 1, wherein multiple data processings based in the processing file Code block, carrying out processing to the specified data includes:
When receiving the open instructions to the processing file, the processing file is opened;
When detecting the edit operation to the multiple data processing code block, according to the edit operation, to the multiple Data processing code block is edited;
Run edited multiple data processing code blocks.
5. a kind of data processing equipment, which is characterized in that described device includes:
Template file generation module, for generating template file, the template file includes multiple data processing code blocks and mould Plate data, the template data are object, including multiple attribute datas, each data processing code block in the template file It is handled for multiple attribute datas to the template data;
Replacement module obtains processing text for the template data in the template file to be replaced with to specified data to be processed Part, so that the data processing code block in the processing file is for handling the specified data;
Processing module, for based on it is described processing file in multiple data processing code blocks, at the specified data Reason;
The replacement module be used for display interface show data select option, when detect to the data selection option point When hitting operation, data object catalogue is shown;Determining in the data object catalogue whether there is selected object, will be described Object of the selected object as the specified data;The object is parsed, the multiple of the specified data are obtained Specified attribute data;Multiple attribute datas of template data described in the template file are replaced with into the specified data respectively Corresponding specified attribute data, obtain the processing file;
The replacement module is also used to select option in the display interface display function;It is selected when detecting for the function When the clicking operation of option, the corresponding function of each data processing code block is shown;Determine that the data processing code block is corresponding Function in the presence or absence of selected function, by the template in data processing code block corresponding to the selected function Data replace with specified data to be processed, and data processing code block corresponding to not selected function is deleted, institute is obtained State processing file.
6. device according to claim 5, which is characterized in that the multiple specified attribute data include the class of the object Name, field type, field data and the specified data data tag table.
7. device according to claim 5, which is characterized in that the replacement module is also used to by the way of inlet flow, Read the template file;Template data in the template file is replaced with into the specified data;Using the side of output stream Replaced data are written in specified directory, obtain the processing file by formula.
8. device according to claim 5, which is characterized in that the processing module is used for literary to the processing when receiving When the open instructions of part, the processing file is opened;When detecting the edit operation to the multiple data processing code block, According to the edit operation, the multiple data processing code block is edited;Run edited multiple data processing generations Code block.
CN201410790379.0A 2014-12-17 2014-12-17 Data processing method and device Active CN104537012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410790379.0A CN104537012B (en) 2014-12-17 2014-12-17 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410790379.0A CN104537012B (en) 2014-12-17 2014-12-17 Data processing method and device

Publications (2)

Publication Number Publication Date
CN104537012A CN104537012A (en) 2015-04-22
CN104537012B true CN104537012B (en) 2019-03-26

Family

ID=52852540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410790379.0A Active CN104537012B (en) 2014-12-17 2014-12-17 Data processing method and device

Country Status (1)

Country Link
CN (1) CN104537012B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106200653B (en) * 2016-10-08 2019-11-19 中船航海科技有限责任公司 A kind of track automatic control device peculiar to vessel
CN106648645B (en) * 2016-12-13 2020-07-17 北京护航科技股份有限公司 Code generation system
CN107798035A (en) * 2017-04-10 2018-03-13 平安科技(深圳)有限公司 A kind of data processing method and terminal
CN108170458A (en) * 2017-12-29 2018-06-15 广州品唯软件有限公司 A kind of Website page update method and system
CN109787768B (en) * 2018-12-12 2021-08-03 平安科技(深圳)有限公司 Identity authentication configuration method and device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192250A (en) * 2007-12-21 2008-06-04 天津汽车模具有限公司 Method for quickly designing mould using computer
CN101751382A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Data acquisition method based on labels and system thereof
CN103136317A (en) * 2011-11-29 2013-06-05 北京建龙重工集团有限公司 Implement method of on-line examination and approval informatization of engineering contracts in engineering management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120323A1 (en) * 2006-11-17 2008-05-22 Lehman Brothers Inc. System and method for generating customized reports

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192250A (en) * 2007-12-21 2008-06-04 天津汽车模具有限公司 Method for quickly designing mould using computer
CN101751382A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Data acquisition method based on labels and system thereof
CN103136317A (en) * 2011-11-29 2013-06-05 北京建龙重工集团有限公司 Implement method of on-line examination and approval informatization of engineering contracts in engineering management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于Internet/Intranet工作流的ERP***研究与实现";梅丽刚;《中国优秀硕士学位论文全文数据库 信息科技辑》;20040315;论文正文第4.3节
"基于模型驱动架构的医学影像信息管理***领域建模研究";曹密;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130615;论文正文第4章、第5章

Also Published As

Publication number Publication date
CN104537012A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
US11487772B2 (en) Multi-party data joint query method, device, server and storage medium
CN104537012B (en) Data processing method and device
CN106897322B (en) A kind of access method and device of database and file system
JP5710851B2 (en) System and method for impact analysis
KR20210104928A (en) Technologies for file sharing
CN104881466B (en) The processing of data fragmentation and the delet method of garbage files and device
JP5791149B2 (en) Computer-implemented method, computer program, and data processing system for database query optimization
US9015608B2 (en) Regenerating a user interface area
CN105677904B (en) Small documents storage method and device based on distributed file system
CN107025253A (en) A kind of method, database operation method and device for creating database interface
KR102230245B1 (en) Computer program for processing a pivot query
CN110399377A (en) Optimization method, device, electronic equipment and the computer readable storage medium of SQL
CN109885585A (en) Support the distributed data base system and method for storing process, trigger and view
CN104516864A (en) Report generating method and report generating device
US11928083B2 (en) Determining collaboration recommendations from file path information
CN107346317A (en) A kind of data query method and apparatus
CN102171696B (en) The generation method and apparatus of customization data
US20200012649A1 (en) System and method for adaptive information storage management
Cheung et al. Provenance explorer–customized provenance views using semantic inferencing
CN106991116A (en) The optimization method and device of database executive plan
CN108153745A (en) A kind of application data calling method and application development system
KR20180077830A (en) Processing method for a relational query in distributed stream processing engine based on shared-nothing architecture, recording medium and device for performing the method
Meddah et al. Discovering patterns using process mining
CN106802922B (en) Tracing storage system and method based on object
CN111159203B (en) Data association analysis method, platform, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant