CN107590076A - Obtain method, the method and device in generation business datum source of business datum - Google Patents

Obtain method, the method and device in generation business datum source of business datum Download PDF

Info

Publication number
CN107590076A
CN107590076A CN201710864972.9A CN201710864972A CN107590076A CN 107590076 A CN107590076 A CN 107590076A CN 201710864972 A CN201710864972 A CN 201710864972A CN 107590076 A CN107590076 A CN 107590076A
Authority
CN
China
Prior art keywords
business datum
data
converted
data structure
classes
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
Application number
CN201710864972.9A
Other languages
Chinese (zh)
Other versions
CN107590076B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710864972.9A priority Critical patent/CN107590076B/en
Publication of CN107590076A publication Critical patent/CN107590076A/en
Application granted granted Critical
Publication of CN107590076B publication Critical patent/CN107590076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention proposes a kind of method for obtaining business datum, the method and device in generation business datum source.A kind of method for obtaining business datum, including:Inquiry obtains business datum from the Proto files of textual form;By the business datum, the business datum for setting data structure is converted to;Wherein, the data structure for setting data structure and can identifying and reading as advertisement delivery system.The above method reads business datum from readable Proto files, reconvert realizes readableization of business datum, therefore into the recognizable data structure of engine is launched, it can be tested for advertisement delivery system and readable business datum is provided, facilitated technical staff and test launching engine.

Description

Obtain method, the method and device in generation business datum source of business datum
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method for obtaining business datum, generation business number According to the method and device in source.
Background technology
Advertisement delivery system is when carrying out advertisement putting, it is necessary to use business datum.Under normal circumstances, advertisement delivery system By single data storage under user in MySQL database, when forms data is launched under needing to user, advertisement delivery system Dispensing engine forms data under user exported from MySQL database be configured to internal memory as business datum, and by business datum Mapped file.Business datum is loaded into internal memory by loading the Memory Mapping File can, advertisement is launched for launching engine Use.
When the dispensing engine to advertisement delivery system does unit testing or automatic test, almost all of test Interface is required for calling the Memory Mapping File generated in above-mentioned advertisement release process, also, tester is needed according to business Data, judge whether the test result of each test case is correct.However, the data in MySQL database are adapted to machine storage But without readability, i.e., derived business datum is also without readability from MySQL database.Therefore, using above-mentioned side The business datum that method obtains, it is impossible to make the test result of technical staff's intuitively verification test use-case whether correct, can not apply Tested in launching engine.
The content of the invention
The defects of based on above-mentioned prior art and deficiency, the present invention propose a kind of method for obtaining business datum, generation industry The method and device for data source of being engaged in, readable business datum can be provided to launch engine, it is convenient to test launching engine.
A kind of method for obtaining business datum, including:
Inquiry obtains business datum from the Proto files of textual form;
By the business datum, the business datum for setting data structure is converted to;Wherein, the data structure that sets is wide Accuse the data structure that jettison system can be identified and read.
Preferably, it is described by the business datum, the business datum of setting data structure is converted to, including:
Obtain the business datum field name and the field name corresponding to data;
According to data corresponding to the field name and the field name, the business datum is converted into setting data knot The business datum of structure.
Preferably, this method also includes:
The business datum of setting data structure is read from MySQL database.
A kind of method for generating business datum source, including:
By the Proto files of the textual form of storage service data, the message classes of storage service data are converted to;
By the message classes of the storage service data, the ProtoTable classes of storage service data are converted to, and by institute State ProtoTable classes and be set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, with reading The method of data in MySQL database is identical.
Preferably, this method also includes:
The business datum of setting data structure is read from MySQL database;
By the business datum of the setting data structure of reading, the message classes of storage service data are converted into;
By the message classes of the storage service data, the ProtoTable classes of storage service data are converted to, and by institute State ProtoTable classes and be set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, with reading The method of data in MySQL database is identical.
Preferably, the business datum of the setting data structure by reading, it is converted into the message of storage service data Class, including:
Obtain it is described setting data structure business datum field name and the field name corresponding to data;
According to data corresponding to the field name and the field name, the business datum of the setting data structure is turned It is changed to the message classes of storage service data.
A kind of device for obtaining business datum, including:
Data-reading unit, business datum is obtained for being inquired about from the Proto files of textual form;
Date Conversion Unit, for by the business datum, being converted to the business datum of setting data structure;Wherein, institute State and set the data structure that data structure can be identified and read as advertisement delivery system.
Preferably, the Date Conversion Unit is by the business datum, when being converted to the business datum of setting data structure, It is specifically used for:
Obtain the business datum field name and the field name corresponding to data;According to the field name and institute Data corresponding to field name are stated, the business datum is converted to the business datum of setting data structure.
Preferably, the data-reading unit is additionally operable to:
The business datum of setting data structure is read from MySQL database.
A kind of device for generating business datum source, including:
First converting unit, for by the Proto files of the textual form of storage service data, being converted to storage service number According to message classes;
Second converting unit, for by the message classes of the storage service data, being converted to storage service data ProtoTable classes, and the ProtoTable classes are set as business datum source;Wherein, read in the ProtoTable classes Data method, with read MySQL database in data method it is identical.
Preferably, the device also includes reading unit, for reading the business of setting data structure from MySQL database Data;
First converting unit is used to, by the business datum of the setting data structure of reading, be converted into storage service data Message classes.
Preferably, the business datum of the setting data structure of reading is converted into storage service by first converting unit During the message classes of data, it is specifically used for:
Obtain it is described setting data structure business datum field name and the field name corresponding to data;According to institute Data corresponding to field name and the field name are stated, the business datum of the setting data structure is converted into storage service number According to message classes.
The method proposed by the present invention for obtaining business datum, can inquire about from the Proto files of textual form and obtain industry It is engaged in data, the data structure that then will be inquired about obtained business datum and be converted to advertisement delivery system and can identify and read.On State method and business datum is read from readable Proto files, reconvert realizes into the recognizable data structure of engine is launched Readableization of business datum, therefore, it can be tested for advertisement delivery system and readable business datum is provided, facilitate technical staff Test launching engine.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for obtaining business datum provided in an embodiment of the present invention;
Fig. 2 is a kind of system architecture schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of method for generating business datum source provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method in another generation business datum source provided in an embodiment of the present invention;
Fig. 5 is another system architecture schematic diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of device for obtaining business datum provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of device for generating business datum source provided in an embodiment of the present invention;
Fig. 8 is the structural representation of the device in another generation business datum source provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method for obtaining business datum, shown in Figure 1, this method includes:
S101, inquiry obtains business datum from the Proto files of textual form;
Specifically, the embodiment of the present invention builds the Proto files of the business datum of storage readable form in advance, for building The business datum of Proto files, can be the test business datum for being tested advertisement delivery system, or from The readable business datum for reading and being converted in MySQL database.The specific data knot of business datum in Proto files Structure, can be google::Protobuf::The data of Message forms.Reading for Proto files, have existing usual Read method, the embodiment of the present invention reads the business datum in Proto files using read method customary in the art, or adopts With any known available read method, the embodiment of the present invention repeats no more.
It should be noted that the purpose of technical scheme of the embodiment of the present invention is that readable business is provided to advertisement delivery system Data, to realize the test to advertisement delivery system.Specifically, in embodiments of the present invention, by readable textual form The business datum of Proto files storage changes into the readable data structure of advertisement delivery system, and so, tester can be from can What the Proto files determination of reading inputed to advertisement delivery system is any data, so as to realize to advertisement delivery system Test.And textual form is common artificial readable data storage format, therefore the embodiment of the present invention is using textual form Proto files.It is appreciated that the Proto files of other readable forms can also be used by the embodiment of the present invention.
S102, by the business datum, be converted to the business datum of setting data structure;Wherein, the setting data knot Structure is the data structure that advertisement delivery system can be identified and read.
Specifically, google::Protobuf::The data of Message data structures, it is the number for being adapted to technical staff to read According to, but it is not the data type that advertisement delivery system can be identified and read.Advertisement delivery system is generally set directly Connect and business datum read from MySQL database, therefore, advertisement delivery system can be with the data of Direct Recognition and reading from The mysqlpp that MySQL database checks out::The data of StoreQueryResult forms.Therefore, from Proto files After inquiry obtains readable business datum, also by the data structure of readable business datum, being converted into advertisement delivery system can With the data structure for identifying and reading, i.e., by google::Protobuf::The data of Message data structures are converted to mysqlpp::The data of StoreQueryResult forms.
The data structure of readable business datum is converted into the data structure that advertisement delivery system can identify and read Afterwards, advertisement delivery system can any change so that it goes without doing, it is possible to reads the business datum.And for the technician, by In the particular content for having known the business datum for inputing to advertisement delivery system, therefore intuitively it can observe and test and be wide Accuse jettison system.
The method for the acquisition business datum that the embodiment of the present invention proposes, can be inquired about from the Proto files of textual form Business datum is obtained, the data knot that then will be inquired about obtained business datum and be converted to advertisement delivery system and can identify and read Structure.The above method reads business datum from readable Proto files, reconvert into launching the recognizable data structure of engine, Readableization of business datum is realized, therefore, can be tested for advertisement delivery system and readable business datum is provided, facilitate skill Art personnel are tested launching engine.
Optionally, in another embodiment of the present invention, it is described by the business datum, be converted to setting data structure Business datum, including:
Obtain the business datum field name and the field name corresponding to data;According to the field name and institute Data corresponding to field name are stated, the business datum is converted to the business datum of setting data structure.
Specifically, the data result gone out from Proto file pollings is converted to the data query result of MySQL database Data structure is, it is necessary to reflex mechanism by Proto.Proto reflex mechanism calls mysqlc api by simulating mysqlpp Query Result, such as return to the row name and type (ResultBase) of query statement, return to the data row of query statement (mysqlpp::Row), length etc., can be by google::Protobuf::The data of Message data structures are converted to mysqlpp::The data of StoreQueryResult forms.Specifically, utilize google::Protobuf::Message is provided GetDescriptor can obtain google::Protobuf::The field name information of Message data, corresponding to mysql The row name of data;Google can be obtained using GetReflection::Protobuf::The field name of Message data is corresponding Data, corresponding to mysqlpp::Row each row of data content, finally can be by google::Protobuf::Message classes Type data are converted to mysqlpp::StoreQueryResult structures.
Optionally, in another embodiment of the present invention, this method also includes:
The business datum of setting data structure is read from MySQL database.
Specifically, in embodiments of the present invention, digital independent interface can not only read business number from Proto files According to business datum can also be directly read from MySQL database.System architecture as shown in Figure 2, ProtoFileSourcer The BusinessDataSource base class for reading business datum is inherited with MysqlDataSourcer, ProtoFileSourcer and MysqlDataSourcer provides same interface, and data are obtained according to specified data_id, and And all it is mysqlpp::StoreQueryResult data format.Wherein, for ProtoFileSourcer, it is certainly The dynamic conversion realized to the data structure of Query Result, is converted into mysqlpp::StoreQueryResult data format.
Said system framework, equivalent on the premise of original digital independent interface is retained, being advertisement delivery system Digital independent interface, add the function of reading the business datum in Proto files.Therefore, original advertisement delivery system is not It is used as other improvement, just can both realizes normal advertisement putting work, can realizes again and read readable business number in test According to, only need to change data source.It will be apparent that the advertisement that this method is only applicable to read MySQL database data is thrown Place system uses, and for the advertisement delivery system using other categorical data sources, then needs the business datum in Proto files Being converted into the applicable data structure of advertisement delivery system can just be used by advertisement delivery system.
The embodiment of the invention discloses a kind of method for generating business datum source, shown in Figure 3, this method includes:
S301, the Proto files by the textual form of storage service data, be converted to the message of storage service data Class;
Specifically, above-mentioned message classes are to realize to be converted to obtain the mediant of ProtoTable classes by Proto texts According to type, the data in Message classes are google::Protobuf::The data of Message forms.
In embodiments of the present invention, it is necessary to the readable Proto texts of the business datum of the textual form of structure storage in advance File, and the text data of storage is converted into message classes.Call google::Protobuf::TextFormat's Proto text data files are resolved to Message classes by Parse methods can.Wherein, Parse methods are google:: A kind of disclosed functional based method in Protobuf, this method can realize above-mentioned data parsing transfer process.
S302, the message classes by the storage service data, the ProtoTable classes of storage service data are converted to, And the ProtoTable classes are set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, It is identical with the method for reading the data in MySQL database.
Specifically, by the google in Message classes::Protobuf::The data of Message forms are ultimately converted to ProtoTable classes.ProtoTable is provided and reading interface same MySQL, can circulate each row of data, and grasp by [] Make symbol to read by field name.Concrete methods of realizing also with Proto reflex mechanism, by google::Protobuf:: The repeated message stored in Message classes are stored in vector, and vector each element is one ProtoRow.ProtoRow provides the function of being searched by field name using reflex mechanism, so, extensively by providing [] operator Accuse in jettison system and reused by the code of [] operator reading database each row of data without any change can, Only data source need to be replaced by ProtoTable, so that it may so that advertisement delivery system reads the readable business datum of technical staff, Technical staff is facilitated to test advertisement delivery system.
The method in generation business datum source provided in an embodiment of the present invention, will store the Proto files of readable business datum In business datum, be converted into ProtoTable classes, ProtoTable classes provide the reading interface same with MySQL database, It can realize that advertisement delivery system reads readable business datum, be tested beneficial to technical staff to advertisement delivery system When, observe the business datum and output result of input, test advertisements jettison system performance.
Optionally, in another embodiment of the present invention, shown in Figure 4, this method also includes:
S401, the business datum for setting data structure is read from MySQL database;
Specifically, in embodiments of the present invention, digital independent structure can not only read business number from Proto files According to data can also be read from MySQL database.System architecture as shown in Figure 5, BusinessDataSource base class GetData Virtual Functions, represent and data is obtained according to given data_id, and be google::Protobuf::Message classes Type;MysqlDataSourcer and ProtoFileSourcer inherits BusinessDataSource, realizes GetData side respectively Method.For MySQL, data-oriented item, corresponding data list is obtained with by inquiring about sql sentences, for every row Data, corresponding data cell can be found by arranging name;For Proto files, the data storage of data-oriented item In Proto files, by using Proto reflex mechanism, corresponding data sheet can also be searched or reset by field name Member.
It should be noted that the business datum read from MySQL database is mysqlpp::StoreQueryResult The data of structure.
S402, the business datum by the setting data structure of reading, it is converted into the message classes of storage service data;
Specifically, the mysqlpp read from MySQL database::The business datum of StoreQueryResult structures, And without readability, therefore carried out conversion and make it have readability.Specific transfer process is the storage of change data Form, is converted into the storage form of message classes, and the data stored in message classes are google::Protobuf:: The data of Message forms.
S403, the message classes by the storage service data, the ProtoTable classes of storage service data are converted to, And the ProtoTable classes are set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, It is identical with the method for reading the data in MySQL database.
Specifically, by the google in Message classes::Protobuf::The data of Message forms are ultimately converted to ProtoTable classes.ProtoTable is provided and reading interface same MySQL, can circulate each row of data, and grasp by [] Make symbol to read by field name.Concrete methods of realizing also with Proto reflex mechanism, by google::Protobuf:: The repeated message stored in Message classes are stored in vector, and vector each element is one ProtoRow.ProtoRow provides the function of being searched by field name using reflex mechanism, so, extensively by providing [] operator Accuse in jettison system and reused by the code of [] operator reading database each row of data without any change can, By selecting different data sources, it is possible to which business number is read or read from Proto files in selection from MySQL database According to.When advertisement delivery system normal work, business datum is read from MySQL database;When technical staff is to advertisement putting When system is tested, only MySQL data sources need to be replaced by ProtoTable, so that it may so that advertisement delivery system reads technology The readable business datum of personnel, facilitates technical staff to test advertisement delivery system.
The embodiment of the present invention directly carries out conversion processing to the business datum in MySQL database, it is not necessary to special structure Proto files, it is more convenient in actual application.
Optionally, in another embodiment of the present invention, the business datum of the setting data structure by reading, turn Change the message classes of storage service data into, including:
Obtain it is described setting data structure business datum field name and the field name corresponding to data;According to institute Data corresponding to field name and the field name are stated, the business datum of the setting data structure is converted into storage service number According to message classes.
Specifically, by the way that the tables of data for inquiring about to obtain from MySQL database is mapped as into repeated message, its In, the Message that there is same field name with the row name of sql query statements is mapped as per a line, it is possible to will be inquired about from MySQL Obtained data are read and stored in the message with corresponding name by row name.Google can be used in specific practice:: Protobuf::The GetDescriptor that Message is provided, which obtains subMessage, (to be had and sql query statement same column names Repeatedmessage) field name, then, every a line in ergodic data table, take out the data of corresponding field, and profit With GetReflection methods, corresponding be worth is set.
The embodiment of the invention discloses a kind of device for obtaining business datum, shown in Figure 6, the device includes:
Data-reading unit 601, business datum is obtained for being inquired about from the Proto files of textual form;
Date Conversion Unit 602, for by the business datum, being converted to the business datum of setting data structure;Wherein, The data structure for setting data structure and can identifying and reading as advertisement delivery system.
Specifically, the specific works content of the unit in the present embodiment, refers to the interior of corresponding embodiment of the method Hold, here is omitted.
Optionally, in another embodiment of the present invention, Date Conversion Unit 602 is converted to the business datum When setting the business datum of data structure, it is specifically used for:
Obtain the business datum field name and the field name corresponding to data;According to the field name and institute Data corresponding to field name are stated, the business datum is converted to the business datum of setting data structure.
Specifically, the specific works content of the Date Conversion Unit 602 in the present embodiment, refers to corresponding method and implements The content of example, here is omitted.
Optionally, in another embodiment of the present invention, data-reading unit 601 is additionally operable to:
The business datum of setting data structure is read from MySQL database.
Specifically, the specific works content of the data-reading unit 601 in the present embodiment, refers to corresponding method and implements The content of example, here is omitted.
The embodiment of the invention discloses a kind of device for generating business datum source, shown in Figure 7, the device includes:
First converting unit 701, for by the Proto files of the textual form of storage service data, being converted to storage industry The message classes for data of being engaged in;
Second converting unit 702, for by the message classes of the storage service data, being converted to storage service data ProtoTable classes, and the ProtoTable classes are set as business datum source;Wherein, the ProtoTable classes are read In data method, with read MySQL database in data method it is identical.
Specifically, the specific works content of the unit in the present embodiment, refers to the interior of corresponding embodiment of the method Hold, here is omitted.
Optionally, in another embodiment of the present invention, shown in Figure 8, the device also includes reading unit 703, For reading the business datum of setting data structure from MySQL database;
First converting unit 701 is used to, by the business datum of the setting data structure of reading, be converted into storage service data Message classes.
Specifically, the specific works content of the unit in the present embodiment, refers to the interior of corresponding embodiment of the method Hold, here is omitted.
Optionally, in another embodiment of the present invention, the first converting unit 701 is by the setting data structure of reading Business datum, when being converted into the message classes of storage service data, it is specifically used for:
Obtain it is described setting data structure business datum field name and the field name corresponding to data;According to institute Data corresponding to field name and the field name are stated, the business datum of the setting data structure is converted into storage service number According to message classes.
Specifically, the specific works content of the first converting unit 701 in the present embodiment, refers to corresponding method and implements The content of example, here is omitted.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (12)

  1. A kind of 1. method for obtaining business datum, it is characterised in that including:
    Inquiry obtains business datum from the Proto files of textual form;
    By the business datum, the business datum for setting data structure is converted to;Wherein, the data structure that sets is thrown as advertisement The data structure that place system can be identified and read.
  2. 2. according to the method for claim 1, it is characterised in that it is described by the business datum, be converted to setting data knot The business datum of structure, including:
    Obtain the business datum field name and the field name corresponding to data;
    According to data corresponding to the field name and the field name, the business datum is converted into setting data structure Business datum.
  3. 3. according to the method for claim 1, it is characterised in that this method also includes:
    The business datum of setting data structure is read from MySQL database.
  4. A kind of 4. method for generating business datum source, it is characterised in that including:
    By the Proto files of the textual form of storage service data, the message classes of storage service data are converted to;
    By the message classes of the storage service data, be converted to the ProtoTable classes of storage service data, and will described in ProtoTable classes are set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, with reading The method of data in MySQL database is identical.
  5. 5. according to the method for claim 4, it is characterised in that this method also includes:
    The business datum of setting data structure is read from MySQL database;
    By the business datum of the setting data structure of reading, the message classes of storage service data are converted into;
    By the message classes of the storage service data, be converted to the ProtoTable classes of storage service data, and will described in ProtoTable classes are set as business datum source;Wherein, the method for reading the data in the ProtoTable classes, with reading The method of data in MySQL database is identical.
  6. 6. according to the method for claim 5, it is characterised in that the business datum of the setting data structure by reading, The message classes of storage service data are converted into, including:
    Obtain it is described setting data structure business datum field name and the field name corresponding to data;
    According to data corresponding to the field name and the field name, the business datum of the setting data structure is converted to The message classes of storage service data.
  7. A kind of 7. device for obtaining business datum, it is characterised in that including:
    Data-reading unit, business datum is obtained for being inquired about from the Proto files of textual form;
    Date Conversion Unit, for by the business datum, being converted to the business datum of setting data structure;Wherein, it is described to set It is the data structure that advertisement delivery system can be identified and read to determine data structure.
  8. 8. device according to claim 7, it is characterised in that the Date Conversion Unit is by the business datum, conversion During to set the business datum of data structure, it is specifically used for:
    Obtain the business datum field name and the field name corresponding to data;According to the field name and the word Data corresponding to section name, the business datum is converted to the business datum of setting data structure.
  9. 9. device according to claim 7, it is characterised in that the data-reading unit is additionally operable to:
    The business datum of setting data structure is read from MySQL database.
  10. A kind of 10. device for generating business datum source, it is characterised in that including:
    First converting unit, for by the Proto files of the textual form of storage service data, being converted to storage service data Message classes;
    Second converting unit, for by the message classes of the storage service data, being converted to storage service data ProtoTable classes, and the ProtoTable classes are set as business datum source;Wherein, read in the ProtoTable classes Data method, with read MySQL database in data method it is identical.
  11. 11. device according to claim 10, it is characterised in that the device also includes reading unit, for from MySQL numbers According to the business datum that setting data structure is read in storehouse;
    First converting unit is used to, by the business datum of the setting data structure of reading, be converted into storage service data Message classes.
  12. 12. device according to claim 11, it is characterised in that first converting unit is by the setting data knot of reading The business datum of structure, when being converted into the message classes of storage service data, it is specifically used for:
    Obtain it is described setting data structure business datum field name and the field name corresponding to data;According to the word Data corresponding to section name and the field name, the business datum of the setting data structure is converted into storage service data Message classes.
CN201710864972.9A 2017-09-22 2017-09-22 Method for acquiring service data, method and device for generating service data source Active CN107590076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710864972.9A CN107590076B (en) 2017-09-22 2017-09-22 Method for acquiring service data, method and device for generating service data source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710864972.9A CN107590076B (en) 2017-09-22 2017-09-22 Method for acquiring service data, method and device for generating service data source

Publications (2)

Publication Number Publication Date
CN107590076A true CN107590076A (en) 2018-01-16
CN107590076B CN107590076B (en) 2021-08-13

Family

ID=61047620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710864972.9A Active CN107590076B (en) 2017-09-22 2017-09-22 Method for acquiring service data, method and device for generating service data source

Country Status (1)

Country Link
CN (1) CN107590076B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885532A (en) * 2019-02-11 2019-06-14 中国银行股份有限公司 A kind of transaction data standardized method and device
CN112950370A (en) * 2021-02-25 2021-06-11 未鲲(上海)科技服务有限公司 Service processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029681A1 (en) * 2009-06-01 2011-02-03 Trion Worlds, Inc. Web client data conversion for synthetic environment interaction
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN103970737A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Data constitution method and device
CN105677805A (en) * 2015-12-31 2016-06-15 北京奇艺世纪科技有限公司 Data storing and reading method and device using protobuf

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029681A1 (en) * 2009-06-01 2011-02-03 Trion Worlds, Inc. Web client data conversion for synthetic environment interaction
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN103970737A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Data constitution method and device
CN105677805A (en) * 2015-12-31 2016-06-15 北京奇艺世纪科技有限公司 Data storing and reading method and device using protobuf

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EMILIO563: "ProtocolBuffer + MySQL++实现消息反射查询返回数据", 《HTTPS://BLOG.CSDN.NET/EMILIO563/ARTICLE/DETAILS/50820199》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885532A (en) * 2019-02-11 2019-06-14 中国银行股份有限公司 A kind of transaction data standardized method and device
CN112950370A (en) * 2021-02-25 2021-06-11 未鲲(上海)科技服务有限公司 Service processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107590076B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN106528400A (en) MOCK testing method and device
CN103390258B (en) Updating and inquiring method and management system of laboratory object information and based on information code
CN109510824A (en) A kind of method of calibration and device of interface packets
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN109558525B (en) Test data set generation method, device, equipment and storage medium
CN108446115A (en) A kind of method and device of code reuse
CN109635016A (en) Data transfer device, device, equipment and computer readable storage medium
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN111932413B (en) Case element extraction method, case element extraction device, case element extraction equipment and case element extraction medium
CN105005543A (en) Interface generation apparatus and method
CN107590076A (en) Obtain method, the method and device in generation business datum source of business datum
CN110069366A (en) A kind of reloading method, apparatus and server
CN106446064A (en) Data conversion method and device
CN114266170B (en) Gas supply range identification method and device in gas distribution pipe network
CN107291486A (en) The installation method and device of a kind of operating system
CN115016968A (en) Exception handling method, device, equipment and medium
CN114691782A (en) Database table increment synchronization method and device and storage medium
CN112463596B (en) Test case data processing method, device and equipment and processing equipment
CN114416049A (en) Configuration method and device of service interface combining RPA and AI
EP2675111A1 (en) Identification of character sets in network traffic through deep packet inspection
CN106892134B (en) Virtual instrument testing method and device
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN109446686B (en) Method for analyzing logical connection relation between devices in equipment
CN112749308A (en) Data labeling method and device and electronic equipment
CN110334328B (en) Automatic generation method and device for object list based on machine learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant