CN109271180A - A kind of data processing method and device - Google Patents
A kind of data processing method and device Download PDFInfo
- Publication number
- CN109271180A CN109271180A CN201710565800.1A CN201710565800A CN109271180A CN 109271180 A CN109271180 A CN 109271180A CN 201710565800 A CN201710565800 A CN 201710565800A CN 109271180 A CN109271180 A CN 109271180A
- Authority
- CN
- China
- Prior art keywords
- field value
- field
- data
- converted
- initial data
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses a kind of data processing methods, for realizing the unserializing and serializing of data, this method comprises: determining the field name of field included by custom entities class;Corresponding first field value of field name is obtained from initial data;First field value progress unserializing is converted into the second field value with the first data format, the second field value is assigned to corresponding field in custom entities class;After the second field value is updated to third field value, the 4th field value is converted to after third field value is serialized;Corresponding field in initial data is written into 4th field value.Disclosed herein as well is a kind of data processing equipments.
Description
Technical field
This application involves technical field of data processing, and in particular to a kind of data processing method and device.
Background technique
In the software systems for realizing certain business, set of system generally comprises multiple functional modules, and data are in sequence
Successively pass through these functional modules, each functional module can carry out data using or modify.For the strongly-typed of object-oriented
Language, would generally define a set of general entity class in the prior art, and each functional module can use this set of general
Entity class.When initial data enters system, the data format unserializing that will be used for transmission used in initial data first
For data format used in general entity class, each functional module is all based on general entity class institute to the processing of data
The data format used, after the completion of the processing of each functional module, then by data format sequence used in general entity class
Turn to the data format being used for transmission.
But with the variation of business or the modification of module, general entity class is also required to be modified accordingly, often
The general entity class of secondary modification, modules require stopping business and upgrade entity class, once some module does not upgrade entity
Class can cause the loss of data in serializing.
Summary of the invention
In view of this, the application provides a kind of data processing method and device, to solve in the prior art, modification is logical every time
Entity class, modules require stopping business and upgrade entity class, once some module do not upgrade entity class can be in sequence
The technical issues of loss of data is caused when columnization.
To solve the above problems, technical solution provided by the present application is as follows:
A kind of data processing method, which comprises
Determine the field name of field included by custom entities class;
Corresponding first field value of the field name is obtained from initial data;
First field value progress unserializing is converted into the second field value with the first data format, it will be described
Second field value is assigned to corresponding field in the custom entities class;
After second field value is updated to third field value, converted after the third field value is serialized
For the 4th field value;
Corresponding field in the initial data is written into 4th field value.
Correspondingly, the method is also before obtaining corresponding first field value of the field name in initial data
Include:
Initial data is obtained, the initial data has the second data format;
The initial data is converted into the intermediate data with third data format.
Correspondingly, described obtain corresponding first field value of the field name from initial data, comprising:
Corresponding first field value of the field name is obtained from the intermediate data.
Correspondingly, it is described the third field value is serialized after be converted to the 4th field value, comprising:
The 4th field value with the third data format is converted to after the third field value is serialized.
Correspondingly, described be written corresponding field in the initial data for the 4th field value, comprising:
Corresponding field in the intermediate data is written into 4th field value;
The intermediate data is converted into the updated initial data with second data format.
A kind of data processing equipment, described device include:
Determination unit, for determining the field name of field included by custom entities class;
First acquisition unit, for obtaining corresponding first field value of the field name from initial data;
Unserializing unit, for being converted to first field value progress unserializing with the first data format
Second field value is assigned to corresponding field in the custom entities class by the second field value;
Serialization unit, for after second field value is updated to third field value, by the third field value
The 4th field value is converted to after being serialized;
Writing unit, for corresponding field in the initial data to be written in the 4th field value.
Correspondingly, described device further include:
Second acquisition unit, for obtaining initial data, the initial data has the second data format;
Converting unit, for the initial data to be converted to the intermediate data with third data format.
Correspondingly, the first acquisition unit is specifically used for:
Corresponding first field value of the field name is obtained from the intermediate data.
Correspondingly, the serialization unit is specifically used for:
After second field value is updated to third field value, converted after the third field value is serialized
For the 4th field value with the third data format.
Correspondingly, said write unit includes:
Subelement is written, for corresponding field in the intermediate data to be written in the 4th field value;
Conversion subunit, for being converted to the intermediate data with the updated original of second data format
Data.
It can be seen that the embodiment of the present application has the following beneficial effects:
Each functional module obtains the field name of field included by itself custom entities class in the embodiment of the present application,
The corresponding field value of these field names is obtained from initial data, it is customized only to carry out unserializing write-in to these field values
Corresponding field in entity class, after functional module is disposed, then by the field value of field included in custom entities class
It is serialized, corresponding field in initial data is written.Each functional module has different in the embodiment of the present application
Custom entities class, the unserializing of each functional module, serialization process are relatively independent, no longer due to each functional module
Other function module is had no effect on, there is no due to sequence when a functional module needs to modify using general entity class
Columnization cause the technical issues of loss of data.
Detailed description of the invention
Fig. 1 is the schematic diagram of data processing method in the prior art;
Fig. 2 is that the data processing method provided in the embodiment of the present application implements one flow chart;
Fig. 3 is that the data processing method provided in the embodiment of the present application implements two flow chart;
Fig. 4 is the schematic diagram of the data processing method provided in the embodiment of the present application;
Fig. 5 is the schematic diagram of the data processing equipment embodiment one provided in the embodiment of the present application;
Fig. 6 is the schematic diagram of the data processing equipment embodiment two provided in the embodiment of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real
Mode is applied to be described in further detail the embodiment of the present application.
Shown in Figure 1, in the prior art, in the software systems for realizing certain business, set of system is generally comprised
Multiple functional modules can define the general entity that a set of each functional module can use generally according to the structure of initial data
Class.Such as initial data includes 10 fields, then general entity class also will include this 10 fields.For the strong of object-oriented
Type language needs to carry out initial data for checking mechanisms such as the type, the fields that use strongly typed language compiler to provide
Unserializing is converted to data format used in general entity class, after the completion of each functional module processing, then will be general
Data format sequence used in entity class turns to the data format being used for transmission used in initial data.
But with the variation of business or the modification of module, general entity class is also required to be modified accordingly, often
The general entity class of secondary modification, modules require stopping business and upgrade entity class, once some module does not upgrade entity
Class can cause the loss of data in serializing.For example, original general entity class includes 10 fields, general entity after upgrading
Class includes 11 fields, the data of 10 fields is still handled if some functional module does not upgrade, it will cause in sequence
The data of a field are lost when columnization.
For this purpose, a kind of data processing method is provided in the embodiment of the present application, due to the software system in existing certain business
In system, each functional module not may require that the whole data of processing usually, and only need to handle a part of field therein, therefore
Can each functional module define itself custom entities class respectively, only included needed for each functional module in custom entities class
The field wanted, each functional module complete independently unserializing and serialization process, then each functional module is from initial data
The middle field value for obtaining field included by customized entity class only carries out unserializing to these field values and custom entities is written
Corresponding field in class, initial data is saved simultaneously, after functional module is disposed, then will be in custom entities class
The field value of included field is serialized, and the field value of respective field in initial data is updated.It can both handle in this way
Using the type of language definition when data, and then the fundamental errors checking mechanism provided using strongly typed language compiler, and can
To avoid the problems of each upgrading general entity class.
It is shown in Figure 2, the flow chart of the data processing method embodiment one provided in the embodiment of the present application is provided, this
Embodiment can be applied to the functional module in the software systems of realization business, and the present embodiment may comprise steps of:
Step 201: determining the field name of field included by custom entities class.
Each functional module not will use the data of whole fields in initial data usually, therefore can be for each
Functional module defines different custom entities classes, i.e., each functional module corresponds to a custom entities class, customized reality
Body class defines the field used required for corresponding functional module, and each functional module makes to required for this functional module
Field carries out unserializing and serializing.Field has field name and field value, and field name is for identifying this
Field for subsequent unserializing and is serialized firstly the need of the field name for determining field included by custom entities class
Claim.
Step 202: corresponding first field value of field name is obtained from initial data.
In the present embodiment, corresponding first field value of field included by custom entities class in initial data is only obtained,
Initial data is saved simultaneously.
In the embodiment of the present application in some possible implementations, initial data can also be obtained before step 202,
Convert raw data into the intermediate data with third data format.
Initial data has the data format being used for transmission, such as binary data format, in the present embodiment for passing
Defeated data format can be the second data format.The intermediate data with third data format is converted raw data into, the
Three data formats are analysable data format.
Corresponding first field value of field included by customized entity class can be then obtained from intermediate data, when from centre
When obtaining the first field value in data, the first field value has third data format, and the first field value can be understood as waiting anti-
The field value of serializing is deserialized as converting data to the process of data format used in custom entities class.
Step 203: the first field value progress unserializing is converted into the second field value with the first data format, it will
Second field value is assigned to corresponding field in custom entities class.
First field value is converted to the second field value by unserializing, and the second field value has the first data format, the
One data format can be understood as data format used in custom entities class.Second field value can be written into custom entities
Corresponding field in class completes unserializing process.For example, obtaining the corresponding field value of name field, year from initial data
The corresponding field value of age field is respectively written into custom entities after above-mentioned field value is then deserialized as the first data format
Name field and age field in class.
Step 204: after the second field value is updated to third field value, being converted after third field value is serialized
For the 4th field value.
Each functional module can be handled data, then one or more field values in custom entities class can be sent out
It changes more, i.e., the second field value is updated to third field value, and the 4th field is converted to after third field value is serialized
Value, sequence turn to the inverse process of unserializing.
In some possible implementations of the embodiment of the present application, be converted to after third field value being serialized
The 4th field value with third data format.
Step 205: corresponding field in initial data is written into the 4th field value.
In some possible implementations of the embodiment of the present application, the specific implementation of step 205 includes: by the 4th field value
Corresponding field in intermediate data is written;Intermediate data is converted into the updated initial data with the second data format.
After the completion of serializing, corresponding field in intermediate data is written into updated 4th field value, by mediant
According to the initial data with the second data format is converted to, initial data at this time is updated initial data, can be under
One functional module continues to use.
In this way, each functional module obtains the field of field included by itself custom entities class in the embodiment of the present application
Title obtains the corresponding field value of these field names from initial data, only carries out unserializing write-in to these field values
Corresponding field in custom entities class, after functional module is disposed, then by field included in custom entities class
Field value is serialized, and corresponding field in initial data is written.Each functional module has each in the embodiment of the present application
Different custom entities class, the unserializing of each functional module, serialization process are relatively independent, due to each function mould
Block does not use general entity class, when a functional module needs to modify, has no effect on other function module, there is no
The technical issues of loss of data is caused due to serializing.
It is shown in Figure 3, the flow chart of the data processing method embodiment two provided in the embodiment of the present application is provided, this
Embodiment can be applied to the functional module in the software systems of realization business, and the present embodiment completely illustrates the embodiment of the present application
The data processing method of middle offer, the present embodiment may comprise steps of:
Step 301: obtaining initial data, initial data has the second data format.
Initial data has the data format that is used for transmission, and the data format being used for transmission in the present embodiment can be the
Two data formats.
Step 302: converting raw data into the intermediate data with third data format.
The intermediate data with third data format is converted raw data into, third data format is analysable data
Format.
Step 303: corresponding first field value of field name is obtained from intermediate data.
When obtaining the first field value from intermediate data, the first field value has third data format, the first field value
It can be understood as waiting the field value of unserializing.
Step 304: the first field value progress unserializing is converted into the second field value with the first data format, it will
Second field value is assigned to corresponding field in custom entities class.
First field value is converted to the second field value by unserializing, and the second field value has the first data format, the
One data format can be understood as data format used in custom entities class.Second field value can be written into custom entities
Corresponding field in class completes unserializing process.
Step 305: after the second field value is updated to third field value, being converted after third field value is serialized
For the 4th field value with third data format.
Each functional module can be handled data, then one or more field values in custom entities class can be sent out
It changes more, i.e. the second field value is updated to third field value, and third field value also has the first data format.By third field
Value is converted to the 4th field value after being serialized, the 4th field value has third data format, and third data format is centre
Data say the analysable data format used.
Step 306: corresponding field in intermediate data is written into the 4th field value.
Step 307: intermediate data is converted into the updated initial data with the second data format.
Corresponding field in intermediate data is written into 4th field value, will be converted with the intermediate data of third data format
For the initial data with the second data format.
Shown in Figure 4, each functional module can obtain corresponding field value from initial data and complete unserializing
And serialization process, and field value is written back corresponding field in initial data, since each functional module no longer makes
Other function module is had no effect on, there is no due to sequence when a functional module needs to modify with general entity class
The technical issues of change causes loss of data.
It is shown in Figure 5, the schematic diagram of the data processing equipment embodiment one provided in the embodiment of the present application is provided, this
Embodiment can be applied to the functional module in the software systems of realization business, and the present embodiment may include:
Determination unit 501, for determining the field name of field included by custom entities class.
First acquisition unit 502, for obtaining corresponding first field value of field name from initial data.
Unserializing unit 503, for being converted to the first field value progress unserializing with the first data format
Second field value is assigned to corresponding field in custom entities class by the second field value.
Serialization unit 504, for after the second field value is updated to third field value, third field value to be carried out sequence
The 4th field value is converted to after columnization.
Writing unit 505, for corresponding field in initial data to be written in the 4th field value.
It is shown in Figure 6, the schematic diagram of the data processing equipment embodiment two provided in the embodiment of the present application is provided, this
Embodiment can be applied to the functional module in the software systems of realization business, and the present embodiment may include:
Second acquisition unit 601, for obtaining initial data, initial data has the second data format.
Converting unit 602, for converting raw data into the intermediate data with third data format.
Determination unit 501, for determining the field name of field included by custom entities class.
First acquisition unit 502, for obtaining corresponding first field value of field name from intermediate data.
Unserializing unit 503, for being converted to the first field value progress unserializing with the first data format
Second field value is assigned to corresponding field in custom entities class by the second field value.
Serialization unit 504, for after the second field value is updated to third field value, third field value to be carried out sequence
The 4th field value with third data format is converted to after columnization.
Writing unit 505, for corresponding field in initial data to be written in the 4th field value.
In some possible implementations of the embodiment of the present application, writing unit 505 may include:
Subelement 5051 is written, for corresponding field in intermediate data to be written in the 4th field value;
Conversion subunit 5052, for intermediate data to be converted to the updated original number with the second data format
According to.
In this way, each functional module obtains the field of field included by itself custom entities class in the embodiment of the present application
Title obtains the corresponding field value of these field names from initial data, only carries out unserializing write-in to these field values
Corresponding field in custom entities class, after functional module is disposed, then by field included in custom entities class
Field value is serialized, and corresponding field in initial data is written.Each functional module has each in the embodiment of the present application
Different custom entities class, the unserializing of each functional module, serialization process are relatively independent, due to each function mould
Block does not use general entity class, when a functional module needs to modify, has no effect on other function module, there is no
The technical issues of loss of data is caused due to serializing.
The data processing equipment includes processor and memory, and above-mentioned second acquisition unit, determines list at converting unit
Member, first acquisition unit, unserializing unit, serialization unit and writing unit etc. are stored in memory as program unit
In, above procedure unit stored in memory is executed by processor to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, general entity class is modified every time in the prior art by adjusting kernel parameter, and modules require to stop industry
It is engaged in and upgrades entity class, do not upgrade the technical issues of entity class can cause the loss of data in serializing once some module.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The existing data processing method.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
Data processing method described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program
Determine the field name of field included by custom entities class;
Corresponding first field value of the field name is obtained from initial data;
First field value progress unserializing is converted into the second field value with the first data format, it will be described
Second field value is assigned to corresponding field in the custom entities class;
After second field value is updated to third field value, converted after the third field value is serialized
For the 4th field value;
Corresponding field in the initial data is written into 4th field value.
Correspondingly, before obtaining corresponding first field value of the field name in initial data, further includes:
Initial data is obtained, the initial data has the second data format;
The initial data is converted into the intermediate data with third data format.
Correspondingly, described obtain corresponding first field value of the field name from initial data, comprising:
Corresponding first field value of the field name is obtained from the intermediate data.
Correspondingly, it is described the third field value is serialized after be converted to the 4th field value, comprising:
The 4th field value with the third data format is converted to after the third field value is serialized.
Correspondingly, described be written corresponding field in the initial data for the 4th field value, comprising:
Corresponding field in the intermediate data is written into 4th field value;
The intermediate data is converted into the updated initial data with second data format.
Equipment herein can be server, PC, PAD, mobile phone etc..
The embodiment of the present application also provides a kind of computer program products, when executing on data processing equipment, are suitable for
Execute the program of initialization there are as below methods step:
Determine the field name of field included by custom entities class;
Corresponding first field value of the field name is obtained from initial data;
First field value progress unserializing is converted into the second field value with the first data format, it will be described
Second field value is assigned to corresponding field in the custom entities class;
After second field value is updated to third field value, converted after the third field value is serialized
For the 4th field value;
Corresponding field in the initial data is written into 4th field value.
Correspondingly, before obtaining corresponding first field value of the field name in initial data, further includes:
Initial data is obtained, the initial data has the second data format;
The initial data is converted into the intermediate data with third data format.
Correspondingly, described obtain corresponding first field value of the field name from initial data, comprising:
Corresponding first field value of the field name is obtained from the intermediate data.
Correspondingly, it is described the third field value is serialized after be converted to the 4th field value, comprising:
The 4th field value with the third data format is converted to after the third field value is serialized.
Correspondingly, described be written corresponding field in the initial data for the 4th field value, comprising:
Corresponding field in the intermediate data is written into 4th field value;
The intermediate data is converted into the updated initial data with second data format.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (10)
1. a kind of data processing method, which is characterized in that the described method includes:
Determine the field name of field included by custom entities class;
Corresponding first field value of the field name is obtained from initial data;
First field value progress unserializing is converted into the second field value with the first data format, by described second
Field value is assigned to corresponding field in the custom entities class;
After second field value is updated to third field value, is converted to after the third field value is serialized
Four field values;
Corresponding field in the initial data is written into 4th field value.
2. the method according to claim 1, wherein corresponding obtaining the field name from initial data
Before first field value, the method also includes:
Initial data is obtained, the initial data has the second data format;
The initial data is converted into the intermediate data with third data format.
3. according to the method described in claim 2, it is characterized in that, described obtain the field name correspondence from initial data
The first field value, comprising:
Corresponding first field value of the field name is obtained from the intermediate data.
4. according to the method described in claim 2, it is characterized in that, it is described the third field value is serialized after convert
For the 4th field value, comprising:
The 4th field value with the third data format is converted to after the third field value is serialized.
5. according to the method described in claim 4, it is characterized in that, described be written the initial data for the 4th field value
In corresponding field, comprising:
Corresponding field in the intermediate data is written into 4th field value;
The intermediate data is converted into the updated initial data with second data format.
6. a kind of data processing equipment, which is characterized in that described device includes:
Determination unit, for determining the field name of field included by custom entities class;
First acquisition unit, for obtaining corresponding first field value of the field name from initial data;
Unserializing unit, for first field value progress unserializing to be converted to second with the first data format
Second field value is assigned to corresponding field in the custom entities class by field value;
Serialization unit, for after second field value is updated to third field value, the third field value to be carried out
The 4th field value is converted to after serializing;
Writing unit, for corresponding field in the initial data to be written in the 4th field value.
7. device according to claim 6, which is characterized in that described device further include:
Second acquisition unit, for obtaining initial data, the initial data has the second data format;
Converting unit, for the initial data to be converted to the intermediate data with third data format.
8. device according to claim 7, which is characterized in that the first acquisition unit is specifically used for:
Corresponding first field value of the field name is obtained from the intermediate data.
9. device according to claim 7, which is characterized in that the serialization unit is specifically used for:
After second field value is updated to third field value, tool is converted to after the third field value is serialized
There is the 4th field value of the third data format.
10. device according to claim 9, which is characterized in that said write unit includes:
Subelement is written, for corresponding field in the intermediate data to be written in the 4th field value;
Conversion subunit, for the intermediate data to be converted to the updated original number with second data format
According to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710565800.1A CN109271180B (en) | 2017-07-12 | 2017-07-12 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710565800.1A CN109271180B (en) | 2017-07-12 | 2017-07-12 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271180A true CN109271180A (en) | 2019-01-25 |
CN109271180B CN109271180B (en) | 2021-12-24 |
Family
ID=65147823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710565800.1A Active CN109271180B (en) | 2017-07-12 | 2017-07-12 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271180B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367988A (en) * | 2020-03-31 | 2020-07-03 | 中国建设银行股份有限公司 | Data import method and device |
CN114500647A (en) * | 2022-01-18 | 2022-05-13 | 聚好看科技股份有限公司 | Data transmission method and device |
CN114942750A (en) * | 2022-05-19 | 2022-08-26 | 北京金堤科技有限公司 | Method and device for processing field of external interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277161A (en) * | 2008-03-28 | 2008-10-01 | 中兴通讯股份有限公司 | Method for serialization and inverse serialization of electric service manual data |
US20130185810A1 (en) * | 2012-01-13 | 2013-07-18 | Microsoft Corporation | Controlled serialization and/or deserialization |
CN103532700A (en) * | 2013-09-25 | 2014-01-22 | 国家电网公司 | Communication message encryption and decryption model of electricity consumption information collecting system |
CN103605518A (en) * | 2013-11-19 | 2014-02-26 | 北京国双科技有限公司 | Object deserialization method and device |
CN106777292A (en) * | 2016-12-29 | 2017-05-31 | 北京神州绿盟信息安全科技股份有限公司 | A kind of Data Serialization method and device |
-
2017
- 2017-07-12 CN CN201710565800.1A patent/CN109271180B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277161A (en) * | 2008-03-28 | 2008-10-01 | 中兴通讯股份有限公司 | Method for serialization and inverse serialization of electric service manual data |
US20130185810A1 (en) * | 2012-01-13 | 2013-07-18 | Microsoft Corporation | Controlled serialization and/or deserialization |
CN103532700A (en) * | 2013-09-25 | 2014-01-22 | 国家电网公司 | Communication message encryption and decryption model of electricity consumption information collecting system |
CN103605518A (en) * | 2013-11-19 | 2014-02-26 | 北京国双科技有限公司 | Object deserialization method and device |
CN106777292A (en) * | 2016-12-29 | 2017-05-31 | 北京神州绿盟信息安全科技股份有限公司 | A kind of Data Serialization method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367988A (en) * | 2020-03-31 | 2020-07-03 | 中国建设银行股份有限公司 | Data import method and device |
CN114500647A (en) * | 2022-01-18 | 2022-05-13 | 聚好看科技股份有限公司 | Data transmission method and device |
CN114500647B (en) * | 2022-01-18 | 2023-07-11 | 聚好看科技股份有限公司 | Data transmission method and device |
CN114942750A (en) * | 2022-05-19 | 2022-08-26 | 北京金堤科技有限公司 | Method and device for processing field of external interface |
Also Published As
Publication number | Publication date |
---|---|
CN109271180B (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017053892A1 (en) | Method and apparatus for transferring data between databases | |
CN112529694B (en) | Credit granting processing method, device, equipment and system | |
CN109214193B (en) | Data encryption and machine learning model training method and device and electronic equipment | |
CN109271180A (en) | A kind of data processing method and device | |
CN113826070A (en) | Workflow engine tool | |
CN111198868A (en) | Intelligent sub-database real-time data migration method and device | |
CN110895544B (en) | Interface data processing method, device, system and storage medium | |
CN110471754A (en) | Method for exhibiting data, device, equipment and storage medium in job scheduling | |
CN110018984A (en) | A kind of conversion method and device of file format | |
CN110955714A (en) | Method and device for converting unstructured text into structured text | |
CN110019111A (en) | Data processing method, device, storage medium and processor | |
CN109542541A (en) | Unserializing method and device | |
CN116467061B (en) | Task execution method and device, storage medium and electronic equipment | |
CN111651950B (en) | Generation method, equipment and medium of clock domain crossing time sequence constraint file | |
JP2017174418A (en) | Data structure abstraction for model checking | |
US20190087160A1 (en) | System and method for creating domain specific language | |
CN107391529B (en) | Method and device for realizing Object Relation Mapping (ORM) | |
CN109166021A (en) | Bookkeeping methods, device and business finance integral system | |
CN106648567B (en) | Data acquisition method and device | |
CN110019784A (en) | A kind of file classification method and device | |
CN104765775B (en) | A kind of log preservation method and device | |
CN109582776B (en) | Model generation method and device, electronic device and storage medium | |
KR20210028088A (en) | Generating different traces for graphics processor code | |
CN109597695B (en) | Data processing method, device and equipment | |
CN109977317A (en) | Data query method and device |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |