WO2022222577A1 - Procédé et appareil de conversion de format de données, dispositif et support de stockage lisible par ordinateur - Google Patents

Procédé et appareil de conversion de format de données, dispositif et support de stockage lisible par ordinateur Download PDF

Info

Publication number
WO2022222577A1
WO2022222577A1 PCT/CN2022/075563 CN2022075563W WO2022222577A1 WO 2022222577 A1 WO2022222577 A1 WO 2022222577A1 CN 2022075563 W CN2022075563 W CN 2022075563W WO 2022222577 A1 WO2022222577 A1 WO 2022222577A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
format
information
title
array
Prior art date
Application number
PCT/CN2022/075563
Other languages
English (en)
Chinese (zh)
Inventor
张丽雅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022222577A1 publication Critical patent/WO2022222577A1/fr

Links

Images

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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • 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/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a data format conversion method, apparatus, device, and computer-readable storage medium.
  • a hard-coded conversion method is used to develop a product release version according to the requirements put forward by the customer. Since this data format conversion method needs to be released with the product version, it not only has a long development cycle, but also a long release cycle and high customization costs.
  • the present application proposes a data format conversion method, device, device and computer-readable storage medium, which are used to improve the conversion efficiency of the data format, realize the controllable structure of the converted target data, and are suitable for a wide range of source data structures. .
  • a first aspect provides a data format conversion method, including: a device obtains source data and mapping information, where the mapping information is obtained based on business requirements; the device obtains target data based on the mapping information and the source data,
  • the mapping information includes a mapping relationship, and the mapping relationship includes a corresponding relationship between the first position information and the second position information of at least one data object in the source data; wherein, the first position information is the at least one piece of data the position of the object in the data structure of the source data, the second position information is the position of the at least one data object in the data structure of the target data, the data in the position corresponding to the second position information
  • the object includes a data object in a location corresponding to the first location information.
  • the method obtains the mapping information according to the business requirements, and converts the data structure of the source data based on the mapping information to obtain the target data, so that the conversion efficiency of the data format is higher.
  • the mapping information since the data conversion is performed according to the mapping information, the mapping information includes the correspondence between the first position information and the second position information of at least one data object in the source data, so that the structure of the converted target data is controllable .
  • the target data converted according to the same mapping information has the same format, and this method is applicable to a wide range of source data structures.
  • the mapping information further includes an information identifier and conversion mode information; the information identifier is used to identify the mapping information; the conversion mode information is used to indicate the conversion mode, the source data The format and the format of the target data, the conversion mode is used to indicate the conversion from the format of the source data to the format of the target data.
  • the mapping information can be quickly acquired through the information identification.
  • the format of the source data is an object-oriented data format
  • the format of the target data is a two-dimensional data format
  • the mapping information is used to convert the source data in the object-oriented data format. into the target data in the two-dimensional data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes the attribute path, and the second position information includes the title column ;
  • the device obtains target data based on the mapping information and the source data, including: the device generates target data based on the title column in the mapping relationship, the attribute path corresponding to the title column and the source data.
  • the device generates the target data based on the title column in the mapping relationship, the attribute path corresponding to the title column, and the source data, including: the device generates the target data from the mapping relationship Obtain a first title column, and generate a first title array according to the first title column, where the first title array includes the attribute path, the array count value, and the quantity value of the attribute path under the first title array ; Determine that the attribute path is not the last attribute path under the first title array based on the array count value and the quantity value, and change the attribute path corresponding to the first title array from the Obtain a data object from the source data and output it as a row of target data in the two-dimensional data format.
  • the format of the source data is a two-dimensional data format
  • the format of the target data is an object-oriented data format
  • the mapping information is used to convert the source data of the two-dimensional data format. into the target data in the object-oriented data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes the title column, and the second position information includes the attribute path ;
  • the device obtains target data based on the mapping information and the source data, including: the device generates target data based on the title column in the mapping relationship, the attribute path corresponding to the title column and the source data.
  • the device generates the target data based on the title column in the mapping relationship, the attribute path corresponding to the title column, and the source data, including: the device generates the target data from the mapping relationship Obtain a second title column, and generate a second title array according to the second title column, where the second title array includes a property path and an array count value; in response to the current row of the source data being less than the total number of rows, the source data The data object indicated by the current row in the data is filled into the data structure of the target data according to the position specified by the attribute path and the array count value.
  • the business requirement includes associated information for acquiring the mapping information; the obtaining the mapping information, the mapping information is obtained based on the business requirement, includes: based on the business requirement to obtain the mapping information from the associated information.
  • the mapping information is obtained through the associated information, and the method for obtaining the mapping information in this method is more flexible.
  • the association information includes an information identifier of the mapping information.
  • the obtaining of the mapping information includes: obtaining user-specified mapping information or default mapping information based on the business requirements.
  • the acquired mapping information may also be specified mapping information or default mapping information acquired based on business requirements. This method acquires the mapping information in a more flexible way.
  • the format of the source data is JSON format
  • the format of the target data is CSV format
  • the format of the source data is CSV format
  • the format of the target data is JSON format
  • the type of the device includes at least one of a network management system, a software-defined network SDN controller network element device, a terminal, and a server.
  • the method realizes the conversion between the object-oriented data format and the two-dimensional data format, and the conversion between the two-dimensional data format and the object-oriented data format.
  • the transformation process of the data structure is reversible.
  • the object-oriented data format before and after the conversion is the same.
  • a data format conversion device including:
  • an acquisition module for acquiring source data and mapping information, where the mapping information is acquired based on business requirements
  • a conversion module configured to obtain target data based on the mapping information and the source data, where the mapping information includes a mapping relationship, and the mapping relationship includes first position information and second position information of at least one data object in the source data Corresponding relationship of location information; wherein, the first location information is the location of the at least one data object in the data structure of the source data, and the second location information is the at least one data object in the target
  • the position in the data structure of the data, the data object in the position corresponding to the second position information includes the data object in the position corresponding to the first position information.
  • the mapping information further includes an information identifier and conversion mode information; the information identifier is used to identify the mapping information; the conversion mode information is used to indicate the conversion mode, the source data The format and the format of the target data, the conversion mode is used to indicate the conversion from the format of the source data to the format of the target data.
  • the format of the source data is an object-oriented data format
  • the format of the target data is a two-dimensional data format
  • the mapping information is used to convert the source data in the object-oriented data format. into the target data in the two-dimensional data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes the attribute path, and the second position information includes the title column ;
  • the conversion module is configured to generate target data based on the title column in the mapping relationship, the attribute path corresponding to the title column and the source data.
  • the conversion module is configured to obtain a first title column from the mapping relationship, and generate a first title array according to the first title column, where the first title array includes the property path, array count value, and quantity value of the property path under the first title array; determining that the property path is not the last one under the first title array based on the array count value and the quantity value an attribute path, obtaining a data object from the source data according to the attribute path corresponding to the first title array according to the array count value and outputting it as a row of the target data in the two-dimensional data format.
  • the format of the source data is a two-dimensional data format
  • the format of the target data is an object-oriented data format
  • the mapping information is used to convert the source data of the two-dimensional data format. into the target data in the object-oriented data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes the title column, and the second position information includes the attribute path ;
  • the conversion module is configured to generate target data based on the title column in the mapping relationship, the attribute path corresponding to the title column and the source data.
  • the conversion module is configured to obtain a second title column from the mapping relationship, and generate a second title array according to the second title column, where the second title array includes an attribute path and an array count value; in response to the current row of the source data being less than the total number of rows, the data object indicated by the current row in the source data is filled into the target data according to the location specified by the attribute path and the array count value in the data structure.
  • the business requirement includes association information for obtaining the mapping information; the obtaining module is configured to obtain the mapping information based on the association information in the business requirement.
  • the association information includes an information identifier of the mapping information.
  • the obtaining module is configured to obtain user-specified mapping information or default mapping information based on the business requirement.
  • the format of the source data is JSON format
  • the format of the target data is CSV format
  • the format of the source data is CSV format
  • the format of the target data is JSON format
  • the type of the device includes at least one of a network management system, an SDN controller network element device, a terminal, and a server.
  • a data format conversion device including a processor and a computer program.
  • the processor executes the computer program, the data format conversion device implements the data format conversion method according to any one of the first aspect above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the data format conversion method according to any one of the first aspect above is implemented.
  • a computer program product including a computer program.
  • the computer program When the computer program is executed by a computer, the data format conversion method according to any one of the above first aspect is implemented.
  • a communication apparatus comprising: a transceiver, a memory and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals , and when the processor executes the instructions stored in the memory, the processor is caused to execute the method in the first aspect or any possible implementation manner of the first aspect.
  • processors there are one or more processors and one or more memories.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the memory can be a memory, for example, a read only memory (ROM), which can be integrated with the processor on the same chip, or can be respectively set on different chips.
  • ROM read only memory
  • a chip including a processor for invoking and executing instructions stored in the memory from a memory, so that a communication device on which the chip is installed executes the first aspect or any of the first aspects possible. method in an embodiment.
  • another chip comprising: an input interface, an output interface, a processor, and a memory, the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the processor is used to execute codes in the memory , when the code is executed, the processor is configured to execute the method in the first aspect or any possible implementation manner of the first aspect.
  • FIG. 1 is a schematic diagram of an implementation environment of a data format conversion method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for converting a data format provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of service planning information provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a conversion interaction process of a data format provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an object-oriented data provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a two-dimensional data provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a mapping information provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another mapping information provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a target data provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another target data provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a data format conversion device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a data format conversion device provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another data format conversion device provided by an embodiment of the present application.
  • An embodiment of the present application provides a method for converting a data format, taking the method applied to the conversion between an object-oriented data format and a two-dimensional data format as an example, wherein the object-oriented data format includes but is not limited to javascript object notation (javascript object notation, JSON), extensible markup language (extensible markup language, xml), two-dimensional data formats including but not limited to comma separated values (comma separated values, CSV), EXCEL.
  • JSON javascript object notation
  • JSON extensible markup language
  • xml extensible markup language
  • two-dimensional data formats including but not limited to comma separated values (comma separated values, CSV), EXCEL.
  • the implementation environment of this method can be shown in the JSON and CSV conversion interface architecture diagram in FIG. 1 .
  • an operation support system is an operator's operation and maintenance support system, including a business planning system and a resource system.
  • the business planning system is used to plan business requirements, such as outputting data files such as business requirements in a two-dimensional data format
  • the resource system is used to collect resource information on the network, such as receiving data files such as business requirements in a two-dimensional data format.
  • the business application (application, APP) interacts with the OSS, receives the two-dimensional data format file of business requirements input by the OSS, and outputs the two-dimensional data format file to the OSS.
  • the business creation process is used to import files in two-dimensional data format.
  • a user inputs order requirements to the business planning system, and the business planning system inputs files in two-dimensional data format of business requirements to the business APP, so that the business APP imports the two-dimensional data. format file.
  • the user directly operates the business APP, and imports a file in a two-dimensional data format into the business APP.
  • the business creation process is also used to invoke a conversion model that converts the two-dimensional data format and the object-oriented data format, also called a converter. The converter reads the corresponding mapping information and parses the two-dimensional data format into object-oriented data.
  • Format for example, calling the converter of the two-dimensional data format and the object-oriented data format through the business interface to parse the two-dimensional data format file, and converting the two-dimensional data format file into JSON through the mapping information of the two-dimensional data format to the object-oriented data format format file.
  • the business export process is used to output data in object-oriented format, such as JSON data, call the converter, convert the data in object-oriented format into two-dimensional data format, and pass it to the resource system.
  • the converter of the two-dimensional data format and the object-oriented data format is used to receive the object-oriented data format file, and realize the controllable mutual conversion between the object-oriented data format file and the two-dimensional data format file according to the mapping information.
  • mapping information is used to control the content of conversion, wherein the mapping information is used to convert source data in object-oriented data format into target data in two-dimensional data format or for converting source data in two-dimensional data format target data in an object-oriented data format.
  • the method flow shown in FIG. 2 is taken as an example to explain the conversion process of the data format provided by the embodiment of the present application.
  • the methods provided in the embodiments of the present application may be applied to the implementation environment shown in FIG. 1 , including but not limited to step 201 and step 202 .
  • the method is performed by a data format conversion device, hereinafter referred to as a device, and the types of the device include but are not limited to network management systems, software defined networks (software defined network, SDN) controller network element devices, terminals and servers. at least one.
  • step 201 the device obtains source data and mapping information, and the mapping information is obtained based on business requirements.
  • the source data is the data that needs to be converted into a data format.
  • the source data and the service requirements may be input by the user, and the embodiment of the present application does not limit the acquisition method of the source data and the service requirements.
  • multiple mapping information may be pre-configured, and the multiple mapping information corresponds to different service requirements.
  • business requirements may include business planning information.
  • the service planning information is shown in Figure 3.
  • the service planning information includes service name, service type, source site, source network element, source port, sink site, sink network element, sink port, actual bandwidth, customer name and service remarks .
  • the service requirements include but are not limited to: service name, service type, source network element, source port, sink network element, and service remarks.
  • multiple pieces of mapping information may be pre-configured by a user, and then the device can perform the method provided in this embodiment of the present application based on the multiple pieces of mapping information.
  • the user configures multiple mapping information, specifies source data and business requirements, and inputs the multiple mapping information, source data and business requirements into the data format conversion system
  • the The data format conversion system includes the device; the device executes the method provided by the embodiment of the present application based on the mapping information, source data and business requirements.
  • a conversion model is stored in the device, and the conversion model is used to obtain the target data based on the mapping information and the source data.
  • the input of the conversion model includes source data and mapping information
  • the output of the conversion model includes target data after data format conversion.
  • mapping information, source data and business requirements when the user inputs the plurality of mapping information, source data and business requirements into the conversion system of the data format, he can directly input them into the device, or he can input the data that can communicate with the device in the conversion system of the data format. other devices. Therefore, the device can receive mapping information, source data, and service requirements sent by other devices, and then execute the methods provided by the embodiments of the present application based on the mapping information, source data, and service requirements.
  • the business requirements include, but are not limited to, association information for acquiring mapping information.
  • the mapping information is obtained based on the associated information in the business requirement. That is to say, to obtain the mapping information, the mapping information is obtained based on the business requirement, including: obtaining the mapping information based on the associated information in the business requirement.
  • the associated information includes an information identifier of the mapping information. According to different types of information identifiers, the acquisition of mapping information based on the associated information in business requirements includes but is not limited to the following two ways.
  • Manner 1 Obtain the mapping information based on the name of the mapping information in the business requirement.
  • the first method is used to obtain the mapping information. For example, if the name of the mapping information included in the associated information is ABC, based on the ABC, the mapping information with the name ABC is acquired from a plurality of pre-configured mapping information.
  • Manner 2 Obtain the mapping information based on the number of the mapping information in the business requirement.
  • the second method is used to obtain the mapping information.
  • the user is preconfigured with a mapping information list, where the mapping information list includes the multiple preconfigured mapping information and a number corresponding to each mapping information. For example, if the number of the mapping information included in the associated information is 1, the first mapping information in the mapping information list is acquired based on the number.
  • the mapping information is user-specified mapping information or default mapping information obtained based on business requirements. That is to say, the mapping information is obtained, and the mapping information is obtained based on business requirements, including: obtaining user-specified mapping information or default mapping information based on business requirements. For example, for any business requirement converted from data format 1 to data format 2, obtain mapping information 1; for any business requirement converted from data format 2 to data format 1, obtain mapping information 2.
  • the mapping information includes an information identifier, and the information identifier is used to identify the mapping information.
  • the mapping information also includes conversion mode information, where the conversion mode information is used to indicate the conversion mode (transMode), the format of the source data (objectType), and the format of the target data (fileType), and the conversion mode is used to indicate the conversion mode of the source data. format to convert to the format of the target data.
  • Step 202 the device obtains target data based on the mapping information and the source data.
  • the device performs data format conversion on the source data based on the mapping information to obtain the target data.
  • the mapping information includes a mapping relationship, and the mapping relationship includes a corresponding relationship between the first location information and the second location information of at least one data object in the source data.
  • the first location information is the location of at least one data object in the data structure of the source data
  • the second location information is the location of the at least one data object in the data structure of the target data
  • the object includes a data object in a location corresponding to the first location information.
  • the format of the source data is JSON format and the format of target data is CSV format, or the format of source data is CSV format and the format of target data is JSON format.
  • the data format of the source data and the data format of the target data may also be other data formats that need to be converted, which are not limited in this embodiment of the present application.
  • the representation of the first location information corresponds to the data format of the source data
  • the representation of the second location information corresponds to the data format of the target data. The embodiments of the present application are described by taking the representation of the location information corresponding to the object-oriented data as an attribute path, and the representation of the location information corresponding to the two-dimensional data as a title column as an example.
  • the source data is the object-oriented data shown in FIG. 5
  • the target data is the two-dimensional data shown in FIG. 6
  • the second position information of the data object is the root node of the title column.
  • the source data is the two-dimensional data shown in FIG. 6
  • the target data is the object-oriented data shown in FIG. 5 .
  • the first position information of the data object is the root node of the title column
  • the representation form of the location information corresponding to the data format can be determined, and the format conversion is performed by using the method provided in the embodiment of the present application, which is not repeated here. .
  • the target data is obtained based on the mapping information and the source data, including but not limited to the following two cases.
  • the format of the source data is the object-oriented data format
  • the format of the target data is the two-dimensional data format
  • the conversion mode is used to indicate the conversion from the object-oriented data format to the two-dimensional data format
  • the mapping information is used to convert the object-oriented data format into the two-dimensional data format.
  • the source data is converted into target data in a two-dimensional data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes an attribute path, and the second position information includes a title column; the device obtains the target data based on the mapping information and the source data, including: the device obtains the target data based on the mapping information and the source data.
  • the title column in the relationship, the attribute path corresponding to the title column, and the source data generate the target data.
  • the device generates the target data based on the title column in the mapping relationship, the attribute path corresponding to the title column, and the source data, including: the device obtains the first title column from the mapping relationship, and generates the first title array according to the first title column,
  • the first title array includes the attribute path, the array count value (index), and the number value (max) of the attribute path under the first title array; it is determined based on the array count value and the number value that the attribute path is not the last attribute under the first title array path, obtains the data object from the source data according to the attribute path corresponding to the first title array according to the array count value, and outputs it as a row of the target data in the two-dimensional data format.
  • the array count value (index) of the attribute path is 0, and the number value (max) of the attribute path under the first title array is 1. If the number of attribute paths in the first title array is 2, the array count value (index) of one attribute path is 0, and the array count value (index) of the other attribute path is 1. The number value (max) under a title array is 2.
  • mapping information 1 the information of the mapping information is identified as mapping information 1, and the mapping information is used to convert the source data in the object-oriented data format into the target data in the two-dimensional data format.
  • the conversion mode information included in the mapping information indicates that the conversion mode is from an object-oriented data format to a two-dimensional data format (JSON-to-CSV), the format of the source data is JSON, and the format of the target data is CSV.
  • the title column includes the root node, network branch, network sub-branch and other branch information; the attribute path (mappingScript) corresponding to the root node includes $Root[*].Branch, and the attribute path corresponding to the network branch includes $Root[*] .NstBranch[*].Branch, the attribute path corresponding to the network sub-branch includes $Root[*].NstBranch[*].Twig, and the attribute path corresponding to other branch information includes $Root[*].OthNstBranch[*].
  • the first title column obtained from the mapping relationship by calling the transformation model includes: root node, network branch, network sub-branch and other branch information.
  • the first title array generated according to the first title column includes: [$Root[index, max].Branch, $Root[index, max].NstBranch[index, max].Branch, $Root[index, max]. NstBranch[index, max].Twig, $Root[index, max].OthNstBranch[index, max]].
  • $Root[index, max].Branch, $Root[index, max].NstBranch[index, max].Branch, $Root[index, max].NstBranch[index, max].Twig and $Root[index , max].OthNstBranch[index, max] is the array node in the first title array.
  • the first title array may not include the quantity value. That is, if the number of property paths in the first header array is 1, the first header array includes property paths and an array count value.
  • the source data is the object-oriented data shown in FIG. 5
  • the value of the property path $Root[*].Branch under the first title array is 2, that is, max is equal to 2.
  • the array count value is initially 0, in response to the array count value being less than max-1, the property path is not the last property path under the first title array.
  • Branch that is, branch1 is the attribute path $Root[*].
  • Branch obtained from the source data according to index 0 Data object;
  • the output target data in a two-dimensional data format is shown in FIG. 6 .
  • the data object is outputted as a row of target data in two-dimensional data format, and the last attribute path in the array node that satisfies the If the array count value is less than max-1, add 1 to the array count value, reset the other array count value and the quantity value corresponding to the array count value.
  • the second line of the output target data includes: nbranch1.2, twig1.2.
  • the second row of the target data does not include other branch information corresponding to data object.
  • the third line of the output target data includes: branch2, nbranch2.1, twig2.1, 1.
  • the fourth line of the output target data includes: nbranch2.2, twig2.2, 2.
  • the property path in response to the array count value being not less than max-1, is the last property path under the first title array.
  • the attribute path corresponding to the first title array is obtained from the source data according to the array count value and outputs the data object.
  • the format of the source data is a two-dimensional data format
  • the format of the target data is an object-oriented data format
  • the conversion mode is used to indicate the conversion from a two-dimensional data format to an object-oriented data format
  • the mapping information is used to convert the two-dimensional data format
  • the source data is converted into target data in an object-oriented data format.
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first location information includes a title column, and the second location information includes an attribute path; the device obtains the target data based on the mapping information and the source data, including: the device obtains the target data based on the mapping information and the source data.
  • the title column in the relationship, the attribute path corresponding to the title column, and the source data generate the target data.
  • generating the target data based on the title column in the mapping relationship, the attribute path corresponding to the title column, and the source data includes: the device obtains a second title column from the mapping relationship, generates a second title array according to the second title column, The second title array includes the attribute path and the array count value; in response to the current row of the source data being less than the total number of rows, the data object indicated by the current row in the source data is filled into the data structure of the target data according to the position specified by the attribute path and the array count value .
  • the initial value of the current row is 0.
  • mapping information 2 the information of the mapping information is identified as mapping information 2, and the mapping information is used to convert the source data in the two-dimensional data format into the target data in the object-oriented data format.
  • the conversion mode information included in the mapping information indicates that the conversion mode is to convert from a two-dimensional data format to an object-oriented data format (CSV-to-JSON), the format of the source data is CSV, and the format of the target data is JSON.
  • CSV-to-JSON object-oriented data format
  • the format of the source data is CSV
  • the format of the target data is JSON.
  • the title column includes root node, network branch, network sub-branch and other branch information; the attribute path corresponding to the root node includes $Root[*].Branch, and the attribute path corresponding to the network branch includes $ Root[*].NstBranch[*].Branch, the attribute path corresponding to the network sub-branch includes $Root[*].NstBranch[*].Twig, and the attribute path corresponding to other branch information includes $Root[*].OthNstBranch[* ]. Then, the second title column obtained from the mapping relationship by calling the transformation model includes: root node, network branch, network sub-branch and other branch information.
  • the second title array generated according to the second title column includes: [$Root[index].Branch, $Root[index].NstBranch[index].Branch, $Root[index].NstBranch[index].Twig, $ Root[index].OthNstBranch[index]].
  • $Root[index].Branch, $Root[index].NstBranch[index].Branch, $Root[index].NstBranch[index].Twig and $Root[index].OthNstBranch[index] are the second Array nodes in the header array.
  • the data structure of the target data determined according to the attribute path corresponding to the title column is shown in FIG. 9 .
  • the two-dimensional data includes five rows of data objects, and the total number of rows of the two-dimensional data is five. That is, for the first row data object of the two-dimensional data, the current row is 0; the array count value is initially 0. Therefore, the second header array includes:
  • the current row is 0.
  • the data object indicated by the current row in the source data is filled into the data structure of the target data according to the position specified by the attribute path and the array count value. That is, as shown in FIG. 9, the data objects branch1, nbranch1.1 and twig1.1 indicated by the current behavior 0 are filled into the data structure of the target data.
  • the indicated data objects do not include data objects with other branch information objects
  • the part corresponding to the array node in the data structure of the target data is deleted.
  • the current row is incremented by 1.
  • the second title array also includes the number value (max) of the attribute path under the second title array.
  • the last one in the array node satisfies the array count value less than The array count value of the condition of max-1 is incremented by 1, other array count values after resetting the array count value and the quantity value corresponding to the array count value; in response to the data object indicated by the current row in the source data being empty, the array The count value remains unchanged.
  • the second header array includes: [$Root[index,max].Branch,$Root[index,max].NstBranch[index,max].Branch,$Root[index,max].NstBranch[index,max] .Twig, $Root[index, max].OthNstBranch[index, max]].
  • Branch is filled in
  • the conversion process of the data format ends, and stops filling the data object indicated by the current row in the source data with the data of the target data according to the position specified by the attribute path and the array count value. in the structure.
  • the source data is converted into the data structure based on the mapping information obtained according to the business requirements to obtain the target data, and the conversion efficiency of the data format of this method is higher.
  • the structure of the converted target data is controllable.
  • the target data converted according to the same mapping information has the same format, and this method is applicable to a wide range of source data structures.
  • the method realizes the conversion between the object-oriented data format and the two-dimensional data format, and the conversion between the two-dimensional data format and the object-oriented data format.
  • the transformation process of the data structure is reversible.
  • the object-oriented data format before and after the conversion is the same.
  • FIG. 11 is a schematic structural diagram of a data format conversion apparatus provided by an embodiment of the present application. Based on the following multiple modules shown in FIG. 11 , the data format conversion apparatus shown in FIG. 11 can perform all or part of the operations performed by the data format conversion device. It should be understood that the apparatus may include more additional modules than the shown modules or omit a part of the modules shown therein, which is not limited in this embodiment of the present application. As shown in FIG. 11 , the apparatus includes: an acquisition module 1101 and a conversion module 1102 .
  • the obtaining module 1101 is used to obtain source data and mapping information, and the mapping information is obtained based on business requirements;
  • the conversion module 1102 is used to obtain target data based on the mapping information and the source data, and the mapping information includes A mapping relationship, the mapping relationship includes a correspondence between the first position information and the second position information of at least one data object in the source data; wherein, the first position information is the position of the at least one data object in the data structure of the source data, and the first position information is the position of the at least one data object in the data structure of the source data.
  • the second position information is the position of the at least one data object in the data structure of the target data, and the data object in the position corresponding to the second position information includes the data object in the position corresponding to the first position information.
  • the mapping information further includes an information identifier and conversion mode information; the information identifier is used to identify the mapping information; the conversion mode information is used to indicate the conversion mode, the format of the source data and the format of the target data, and the conversion mode uses Used to indicate the conversion from the format of the source data to the format of the target data.
  • the format of the source data is an object-oriented data format
  • the format of the target data is a two-dimensional data format
  • the mapping information is used to convert the source data of the object-oriented data format into the target data of the two-dimensional data format .
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes an attribute path, and the second position information includes a title column; the conversion module 1102 is configured to, based on the mapping relationship, include the attribute path and the second position information.
  • the title column, the attribute path corresponding to the title column, and the source data generate the target data.
  • the conversion module 1102 is configured to obtain the first title column from the mapping relationship, and generate a first title array according to the first title column, where the first title array includes an attribute path, an array count value, and an attribute path The quantity value under the first title array; based on the array count value and the quantity value, it is determined that the attribute path is not the last attribute path under the first title array, and the attribute path corresponding to the first title array is obtained from the source data according to the array count value Data object and output as a row of target data in two-dimensional data format.
  • the format of the source data is a two-dimensional data format
  • the format of the target data is an object-oriented data format
  • the mapping information is used to convert the source data of the two-dimensional data format into the target data of the object-oriented data format .
  • the mapping relationship includes a title column and an attribute path corresponding to the title column, the first position information includes a title column, and the second position information includes an attribute path; the conversion module 1102 is configured to, based on the mapping relationship, The title column, the attribute path corresponding to the title column, and the source data generate the target data.
  • the conversion module 1102 is configured to obtain the second title column from the mapping relationship, and generate a second title array according to the second title column, where the second title array includes an attribute path and an array count value; in response to If the current row of the source data is less than the total number of rows, the data object indicated by the current row in the source data is filled into the data structure of the target data according to the position specified by the attribute path and the array count value.
  • the business requirement includes association information for obtaining the mapping information; the obtaining module 1101 is configured to obtain the mapping information based on the association information in the business requirement.
  • the association information includes an information identifier of the mapping information.
  • the obtaining module 1101 is configured to obtain user-specified mapping information or default mapping information based on business requirements.
  • the format of the source data is JSON format
  • the format of target data is CSV format
  • the format of source data is CSV format
  • the format of target data is JSON format
  • the type of the device includes at least one of a network management system, an SDN controller network element device, a terminal, and a server.
  • FIG. 11 realizes its functions, it is only illustrated by the division of the above-mentioned functional modules.
  • the internal structure is divided into different functional modules to complete all or part of the functions described above.
  • the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
  • FIG. 12 shows a schematic structural diagram of a data format conversion device 2000 provided by an exemplary embodiment of the present application.
  • the data format conversion apparatus 2000 shown in FIG. 12 is used to perform the operations involved in the above-described data format conversion method shown in FIG. 2 .
  • the data format conversion device 2000 is, for example, a switch, a router, etc.
  • the data format conversion device 2000 can be implemented by a general bus architecture.
  • the data format conversion device 2000 includes at least one processor 2001 , memory 2003 and at least one communication interface 2004 .
  • the processor 2001 is, for example, a general-purpose central processing unit (central processing unit, CPU), a digital signal processor (digital signal processor, DSP), a network processor (network processor, NP), a graphics processing unit (graphics processing unit, GPU), A neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor or one or more integrated circuits for implementing the solution of the present application.
  • the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It may implement or execute the various logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the present invention.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
  • the data format conversion device 2000 further includes a bus.
  • the bus is used to transfer information between the various components of the data format conversion apparatus 2000 .
  • the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is shown in FIG. 12, but it does not mean that there is only one bus or one type of bus.
  • the memory 2003 is, for example, a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (random access memory, RAM) or a memory device that can store information and instructions.
  • Other types of dynamic storage devices such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disks storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium accessed by a computer without limitation.
  • the memory 2003 exists independently, for example, and is connected to the processor 2001 through a bus.
  • the memory 2003 may also be integrated with the processor 2001 .
  • the communication interface 2004 uses any device such as a transceiver for communicating with other devices or a communication network, which may be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN), or the like.
  • Communication interface 2004 may include a wired communication interface and may also include a wireless communication interface.
  • the communication interface 2004 may be an ethernet (ethernet) interface, a fast ethernet (FE) interface, a gigabit ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network ( wireless local area networks, WLAN) interfaces, cellular network communication interfaces, or a combination thereof.
  • the Ethernet interface can be an optical interface, an electrical interface or a combination thereof.
  • the communication interface 2004 may be used for the data format conversion device 2000 to communicate with other devices.
  • the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 12 .
  • Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the data format conversion device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in FIG. 12 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the data format conversion device 2000 may further include an output device and an input device.
  • the output device communicates with the processor 2001 and can display information in a variety of ways.
  • the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like.
  • the input device communicates with the processor 2001 and can receive user input in various ways.
  • the input device may be a mouse, a keyboard, a touch screen device, or a sensor device, or the like.
  • the memory 2003 is used to store the program code 2010 for executing the solutions of the present application
  • the processor 2001 can execute the program code 2010 stored in the memory 2003 . That is, the data format conversion device 2000 can implement the data format conversion method provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003 .
  • One or more software modules may be included in the program code 2010 .
  • the processor 2001 itself may also store program codes or instructions for executing the solutions of the present application.
  • the data format conversion device 2000 in this embodiment of the present application may correspond to the data format conversion device in the above-mentioned respective data format conversion method embodiments, and the processor 2001 in the data format conversion device 2000 reads
  • the instructions in the memory 2003 enable the data format conversion apparatus 2000 shown in FIG. 12 to perform all or part of the operations performed by the data format conversion apparatus.
  • the data format conversion device 2000 may also correspond to the data format conversion device shown in FIG. 11 , and each functional module in the data format conversion device is implemented by software of the data format conversion device 2000 .
  • the functional modules included in the data format conversion apparatus are generated after the processor 2001 of the data format conversion device 2000 reads the program code 2010 stored in the memory 2003 .
  • each step of the data format conversion method shown in FIG. 2 is completed by the hardware integrated logic circuit in the processor of the data format conversion device 2000 or the instructions in the form of software.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware, which will not be described in detail here to avoid repetition.
  • FIG. 13 shows a schematic structural diagram of a data format conversion device 2100 provided by another exemplary embodiment of the present application.
  • the data format conversion device 2100 shown in FIG. 13 is configured to perform all or part of the operations involved in the above-mentioned data format conversion method shown in FIG. 2 .
  • the data format conversion device 2100 is, for example, a switch, a router, etc.
  • the data format conversion device 2100 can be implemented by a general bus architecture.
  • the data format conversion device 2100 includes: a main control board 2110 and an interface board 2130 .
  • the main control board is also called the main processing unit (MPU) or the route processor card (route processor card).
  • the main control board 2110 is used for the control and management of each component in the data format conversion device 2100, including route calculation. , Equipment management, equipment maintenance, protocol processing functions.
  • the main control board 2110 includes: a central processing unit 2111 and a memory 2112 .
  • the interface board 2130 is also referred to as a line processing unit (LPU), a line card (line card) or a service board.
  • the interface board 2130 is used to provide various service interfaces and realize data packet forwarding.
  • the service interface includes, but is not limited to, an Ethernet interface, a POS (packet over SONET/SDH) interface, etc.
  • the Ethernet interface is, for example, a flexible Ethernet service interface (flexible ethernet clients, FlexE Clients).
  • the interface board 2130 includes: a central processing unit 2131, a network processor 2132, a forwarding table entry memory 2134, and a physical interface card (PIC) 2133.
  • PIC physical interface card
  • the central processing unit 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processing unit 2111 on the main control board 2110 .
  • the network processor 2132 is used to implement packet forwarding processing.
  • the form of the network processor 2132 may be a forwarding chip.
  • the forwarding chip may be a network processor (NP).
  • the forwarding chip may be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the network processor 2132 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134.
  • the message is sent to the to the CPU (such as the central processing unit 2131) for processing; if the destination address of the message is not the address of the conversion device 2100 of the data format, then find the next hop and the outgoing interface corresponding to the destination address from the forwarding table according to the destination address, Forward the packet to the outbound interface corresponding to the destination address.
  • the processing of the uplink message may include: processing of the incoming interface of the message, and forwarding table lookup; the processing of the downlink message may include: forwarding table lookup, and so on.
  • the central processing unit can also perform the function of a forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that a forwarding chip is not required in the interface board.
  • the physical interface card 2133 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 2130 through this, and the processed packets are sent from the physical interface card 2133 .
  • the physical interface card 2133 is also called a daughter card, which can be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message, and after checking the validity of the message, it is forwarded to the network processor 2132 for processing.
  • the central processing unit 2131 can also perform the functions of the network processor 2132 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133 .
  • the data format conversion device 2100 includes a plurality of interface boards.
  • the data format conversion device 2100 further includes an interface board 2140.
  • the interface board 2140 includes: a central processing unit 2141, a network processor 2142, a forwarding entry storage 2144 and Physical interface card 2143.
  • the functions and implementation manners of the components in the interface board 2140 are the same as or similar to those of the interface board 2130, and will not be repeated here.
  • the data format conversion device 2100 further includes a switch fabric board 2120 .
  • the switch fabric unit 2120 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • SFU switch fabric unit
  • the switching network board 2120 is used to complete data exchange between the interface boards.
  • the interface board 2130 and the interface board 2140 can communicate through the switch fabric board 2120 .
  • the main control board 2110 is coupled with the interface board.
  • the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 The communication is carried out through the IPC channel.
  • IPC inter-process communication
  • the data format conversion device 2100 includes a control plane and a forwarding plane
  • the control plane includes a main control board 2110 and a central processing unit 2111
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry storage 2134, physical interface card 2133 and network processor 2132.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, and configuring and maintaining the status of network devices.
  • the control plane issues the generated forwarding tables to the forwarding plane.
  • the network processor 2132 controls the The following forwarding table forwards the packets received by the physical interface card 2133 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 2134 . In some embodiments, the control plane and forwarding plane may be completely separated and not on the same network device.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they may include the main main control board and the backup main control board.
  • the data format conversion device can have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capability of the data format conversion device of the distributed architecture is greater than that of the data format conversion device of the centralized architecture.
  • the data format conversion device can also be in the form of only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board.
  • the central processing unit on the interface board. and the central processing unit on the main control board can be combined into a central processing unit on this board to perform the superimposed functions of the two.
  • the data exchange and processing capacity of the conversion device of this morphological data format is low (for example, network devices such as low-end switches or routers).
  • the specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
  • the data format conversion device 2100 corresponds to the data format conversion apparatus shown in FIG. 11 above.
  • the acquisition module 1101 in the data format conversion apparatus shown in FIG. 11 is equivalent to the physical interface card 2133 in the data format conversion device 2100 ; the conversion module 1102 is equivalent to the center in the data format conversion device 2100 Processor 2111 or Network Processor 2132.
  • an embodiment of the present application further provides a data format conversion system, the system includes: a control device and a display interface.
  • the control device is the data format conversion device 2000 shown in FIG. 12 or the data format conversion device 2100 shown in FIG. 13
  • the display interface is the data format conversion device 2000 shown in FIG. 12 or the data format shown in FIG. 13 .
  • the data format conversion device 2100 is the data format conversion device 2000 shown in FIG. 12 or the data format shown in FIG. 13 .
  • An embodiment of the present application also provides a communication apparatus, the apparatus includes: a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals , and when the processor executes the instructions stored in the memory, the processor is made to execute the data format conversion method required to be executed by the control device.
  • An embodiment of the present application also provides a communication apparatus, the apparatus includes: a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals , and when the processor executes the instructions stored in the memory, the processor is made to execute the data format conversion method required to be executed by the display interface.
  • processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (digital signal processing, DSP), application specific integrated circuits (application specific integrated circuits, ASIC), field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. It should be noted that the processor may be a processor supporting an advanced RISC machine (ARM) architecture.
  • ARM advanced RISC machine
  • the above-mentioned memory may include read-only memory and random access memory, and provide instructions and data to the processor.
  • the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available.
  • SRAM static RAM
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous dynamic random access Memory double data date SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous link dynamic random access memory direct memory bus random access memory
  • direct rambus RAM direct rambus RAM
  • Embodiments of the present application further provide a computer-readable storage medium, where at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement any one of the above-described data format conversion methods.
  • the embodiments of the present application also provide a computer program (product), when the computer program is executed by a computer, the processor or the computer can be made to execute each step and/or process of the corresponding data format conversion method in the above method embodiments.
  • An embodiment of the present application further provides a chip, including a processor, configured to call and execute instructions stored in the memory from a memory, so that a communication device installed with the chip performs the data format conversion in the above aspects method.
  • An embodiment of the present application further provides another chip, including: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the The processor is configured to execute the code in the memory, and when the code is executed, the processor is configured to execute the data format conversion method in the above aspects.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions when loaded and executed on a computer, result in whole or in part of the processes or functions described herein.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks), and the like.
  • the computer program product includes one or more computer program instructions.
  • the methods of the embodiments of the present application may be described in the context of machine-executable instructions, such as included in program modules executed in a device on a target's real or virtual processor.
  • program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data structures.
  • the functionality of the program modules may be combined or divided among the described program modules.
  • Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed facility, program modules may be located in both local and remote storage media.
  • Computer program code for implementing the methods of the embodiments of the present application may be written in one or more programming languages. Such computer program code may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus such that the program code, when executed by the computer or other programmable data processing apparatus, causes the flowchart and/or block diagrams The functions/operations specified in are implemented.
  • the program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
  • computer program code or related data may be carried by any suitable carrier to enable a device, apparatus or processor to perform the various processes and operations described above.
  • suitable carriers include signals, computer-readable media, and the like.
  • Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
  • a machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only Memory (EPROM or flash memory), optical storage devices, magnetic storage devices, or any suitable combination thereof.
  • the disclosed systems, devices and methods may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may also be electrical, mechanical or other forms of connection.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium.
  • the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
  • first, second, etc. are used to distinguish the same or similar items with basically the same function and function, and it should be understood that between “first”, “second” and “nth” There are no logical or timing dependencies, and no restrictions on the number and execution order. It will also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.
  • the size of the sequence number of each process does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be used in the embodiment of the present application. Implementation constitutes any limitation.
  • the meaning of the term “at least one” refers to one or more, and the meaning of the term “plurality” in this application refers to two or more.
  • a plurality of second messages refers to two or more more than one second message.
  • system and “network” are often used interchangeably herein.
  • determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
  • references throughout the specification to "one embodiment,” “an embodiment,” and “one possible implementation” mean that a particular feature, structure, or characteristic associated with the embodiment or implementation is included herein. in at least one embodiment of the application. Thus, appearances of "in one embodiment” or “in an embodiment” or “one possible implementation” in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

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

La présente demande divulgue un procédé et un appareil de conversion de format de données, un dispositif et un support de stockage lisible par ordinateur. Le procédé comprend les étapes suivantes : un dispositif obtient des données sources et des informations de mappage obtenues sur la base d'une exigence de service ; et le dispositif obtient des données cibles sur la base des informations de mappage et des données sources, les informations de mappage comprenant une relation de mappage et la relation de mappage comprenant une correspondance entre des premières informations de position et des secondes informations de position d'au moins un objet de données dans les données sources, les premières informations de position étant une position du ou des objets de données dans une structure de données des données sources, les secondes informations de position étant une position du ou des objets de données dans une structure de données des données cibles et l'objet de données dans la position correspondant aux secondes informations de position comprend l'objet de données dans la position correspondant aux premières informations de position. L'efficacité de conversion du format de données selon le procédé est élevée. Étant donné que la conversion du format de données est effectuée selon les informations de mappage, la structure des données cibles après conversion peut être commandée.
PCT/CN2022/075563 2021-04-20 2022-02-08 Procédé et appareil de conversion de format de données, dispositif et support de stockage lisible par ordinateur WO2022222577A1 (fr)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110423829.2 2021-04-20
CN202110423829 2021-04-20
CN202110518463.7 2021-05-12
CN202110518463.7A CN115221113A (zh) 2021-04-20 2021-05-12 数据格式的转换方法、装置、设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2022222577A1 true WO2022222577A1 (fr) 2022-10-27

Family

ID=83606495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075563 WO2022222577A1 (fr) 2021-04-20 2022-02-08 Procédé et appareil de conversion de format de données, dispositif et support de stockage lisible par ordinateur

Country Status (2)

Country Link
CN (1) CN115221113A (fr)
WO (1) WO2022222577A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116383883A (zh) * 2023-04-14 2023-07-04 于诚优品信息科技(福州)有限责任公司 一种基于大数据的数据管理权限处理方法及系统
CN116522871A (zh) * 2023-07-05 2023-08-01 鹏城实验室 数据格式转换方法、装置、设备和存储介质
CN117555955A (zh) * 2023-12-06 2024-02-13 广州此声网络科技有限公司 数据转换方法、数据转换装置、计算机设备、存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543485B (zh) * 2022-10-24 2023-06-30 清华大学 一种数据转换配置生成方法、装置、计算机设备及介质
CN115659941B (zh) * 2022-11-11 2023-07-21 摩尔线程智能科技(北京)有限责任公司 适应于多类型接口的文件生成方法及装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754670B1 (en) * 1999-12-17 2004-06-22 International Business Machines Corporation Mapping relational tables to object oriented classes
CN1687927A (zh) * 2005-05-08 2005-10-26 浙江大学 一种实现信息系统数据自动交换的方法
US20060004844A1 (en) * 2003-04-28 2006-01-05 Microsoft Corporation Management of markup language data mappings available to a spreadsheet application workbook
CN102662997A (zh) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 一种存储xml数据到关系数据库的方法
CN103559322A (zh) * 2013-11-22 2014-02-05 方正国际软件有限公司 文档格式转换方法
CN105867886A (zh) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 一种写表格的方法及装置
CN111507075A (zh) * 2019-01-31 2020-08-07 贵州白山云科技股份有限公司 一种进行数据格式转换的方法及装置
CN111984739A (zh) * 2019-05-24 2020-11-24 中移(苏州)软件技术有限公司 一种xml与关系型数据库的转换方法、终端和存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754670B1 (en) * 1999-12-17 2004-06-22 International Business Machines Corporation Mapping relational tables to object oriented classes
US20060004844A1 (en) * 2003-04-28 2006-01-05 Microsoft Corporation Management of markup language data mappings available to a spreadsheet application workbook
CN1687927A (zh) * 2005-05-08 2005-10-26 浙江大学 一种实现信息系统数据自动交换的方法
CN102662997A (zh) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 一种存储xml数据到关系数据库的方法
CN103559322A (zh) * 2013-11-22 2014-02-05 方正国际软件有限公司 文档格式转换方法
CN105867886A (zh) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 一种写表格的方法及装置
CN111507075A (zh) * 2019-01-31 2020-08-07 贵州白山云科技股份有限公司 一种进行数据格式转换的方法及装置
CN111984739A (zh) * 2019-05-24 2020-11-24 中移(苏州)软件技术有限公司 一种xml与关系型数据库的转换方法、终端和存储介质

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116383883A (zh) * 2023-04-14 2023-07-04 于诚优品信息科技(福州)有限责任公司 一种基于大数据的数据管理权限处理方法及系统
CN116383883B (zh) * 2023-04-14 2023-12-22 水发科技信息(山东)有限公司 一种基于大数据的数据管理权限处理方法及系统
CN116522871A (zh) * 2023-07-05 2023-08-01 鹏城实验室 数据格式转换方法、装置、设备和存储介质
CN116522871B (zh) * 2023-07-05 2024-01-09 鹏城实验室 数据格式转换方法、装置、设备和存储介质
CN117555955A (zh) * 2023-12-06 2024-02-13 广州此声网络科技有限公司 数据转换方法、数据转换装置、计算机设备、存储介质
CN117555955B (zh) * 2023-12-06 2024-06-04 广州此声网络科技有限公司 数据转换方法、数据转换装置、计算机设备、存储介质

Also Published As

Publication number Publication date
CN115221113A (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
WO2022222577A1 (fr) Procédé et appareil de conversion de format de données, dispositif et support de stockage lisible par ordinateur
CN111865810B (zh) 一种拥塞信息采集方法、系统、相关设备及计算机存储介质
US20140314087A1 (en) Architecture for an access network system management protocol control under heterogeneous network management environment
EP4149058A1 (fr) Procédé, appareil, dispositif et système de mesure de performance de réseau, et support de stockage
WO2022068744A1 (fr) Procédé d'obtention d'informations d'en-tête de message et de génération de message, dispositif et support de stockage
WO2021185083A1 (fr) Procédé et dispositif d'instanciation de vnf
CN114697403A (zh) 业务报文的处理方法、装置、设备、系统及存储介质
CN114553699A (zh) 报文传输方法、装置、设备及计算机可读存储介质
CN117240790A (zh) 流表规则的管理方法、流量管理方法、系统及存储介质
CN112272933B (zh) 队列控制方法、装置及存储介质
CN109286564B (zh) 一种报文转发方法及装置
CN114285757A (zh) 网络仿真方法、装置、设备及计算机可读存储介质
WO2022042403A1 (fr) Procédé de génération d'informations de routage, procédé d'envoi d'informations de localisation, procédé de transfert de message et dispositif
WO2022227695A1 (fr) Procédé, appareil et dispositif de transmission de messages
CN116962161A (zh) 路径检测方法、装置、系统及计算机可读存储介质
CN116828024A (zh) 业务连接的标识方法、装置、系统及存储介质
CN115914087A (zh) 报文转发方法、装置、设备、系统及存储介质
CN114205172A (zh) 一种表项下发方法及一种报文转发方法
CN114826898A (zh) 跨主机通信方法、装置、设备、系统及可读存储介质
CN115842757A (zh) 随流检测方法、装置、设备、系统及存储介质
CN114327850A (zh) 基于微服务的服务网格系统及服务治理方法
CN114513485A (zh) 获取映射规则的方法、装置、设备、系统及可读存储介质
WO2022048482A1 (fr) Procédé et appareil de traitement de message, dispositif, système et support d'enregistrement
CN114697218B (zh) 网络管理方法和设备
WO2024152653A1 (fr) Procédé et appareil de mesure du trajet de sauvegarde, dispositif, système et support d'enregistrement

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22790687

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22790687

Country of ref document: EP

Kind code of ref document: A1