CN114942781A - Data format adaptation method and device for data reading - Google Patents

Data format adaptation method and device for data reading Download PDF

Info

Publication number
CN114942781A
CN114942781A CN202210537120.XA CN202210537120A CN114942781A CN 114942781 A CN114942781 A CN 114942781A CN 202210537120 A CN202210537120 A CN 202210537120A CN 114942781 A CN114942781 A CN 114942781A
Authority
CN
China
Prior art keywords
data
format
adaptation
information
file
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.)
Pending
Application number
CN202210537120.XA
Other languages
Chinese (zh)
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.)
Tenth Research Institute Of Telecommunications Technology Co ltd
Original Assignee
Tenth Research Institute Of Telecommunications 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 Tenth Research Institute Of Telecommunications Technology Co ltd filed Critical Tenth Research Institute Of Telecommunications Technology Co ltd
Priority to CN202210537120.XA priority Critical patent/CN114942781A/en
Publication of CN114942781A publication Critical patent/CN114942781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

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

Abstract

The invention discloses a data format adaptation method and device for data reading, and relates to the field of computers. The method is used for solving the technical problems that the existing data format adaptation method is not high in efficiency and is not beneficial to later-stage management and maintenance of software. The method comprises the following steps: receiving adaptation requirement information, wherein the adaptation requirement information comprises data format information of a file to be read; converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration; and the adaptation relation configuration reads and stores map format data.

Description

Data format adaptation method and device for data reading
Technical Field
The present invention relates to the field of computers, and in particular, to a data format adaptation method and apparatus for data reading.
Background
In the prior art, different types of files have different data formats, and corresponding functional modules need to be developed for the files with different data formats, so that the file data formats are adapted to set formats to read data; therefore, a developer needs to develop a plurality of functional modules, that is, each file in each format type has a reading interface correspondingly connected to the functional module, so as to read the files in different data formats. In addition, because of the strong coupling between the functional modules in the system, if a certain field in the functional module has a problem, the code needs to be modified again; therefore, developers need to know functional modules of the whole software relatively, so that if the developers carelessly develop the software together by the team members, a lot of BUGs are manufactured in the later period, and the later period management and maintenance of the software are extremely not facilitated.
In summary, the existing data format adaptation method is not efficient; and is not conducive to later management and maintenance of the software.
Disclosure of Invention
The embodiment of the invention provides a data format adapting method and device for data reading, which are used for solving the technical problems that the existing data format adapting method is not high in efficiency and is not beneficial to later-stage management and maintenance of software.
The embodiment of the invention provides a data format adapting method for data reading, which comprises the following steps:
receiving adaptation requirement information, wherein the adaptation requirement information comprises data format information of a file to be read; converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration;
and reading and storing the map format data.
Preferably, the adaptation relationship is configured as a relationship list, and the relationship list includes at least one class for storing a processing mode for converting non-map format data into map format data.
Preferably, the adaptation requirement information further includes: data item information; converting the data format of the file to be read into a map format according to the data format information and the configuration of the adaptive relationship, wherein the converting comprises the following steps: and searching a field corresponding to the data item information in the file to be read according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
Preferably, after the data format of the file to be read is converted into the map format according to the data format information and the configuration of the adaptation relationship, the method further includes:
and carrying out format check on the map format data, and carrying out decoding processing on the encrypted map format data.
Preferably, the method further comprises the following steps: the time of reading the data is recorded.
An embodiment of the present invention further provides a data format adapting device for data reading, including:
the receiving unit is used for receiving adaptation requirement information, and the adaptation requirement information comprises data format information of a file to be read;
the adaptation unit is used for converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration;
and the reading unit is used for reading and storing the map format data.
Preferably, the adaptation relationship is configured as a relationship list, and the relationship list includes at least one class for storing a processing mode for converting non-map format data into map format data.
Preferably, the adaptation requirement information further includes: data item information; the adaptation unit is specifically configured to: and searching a field corresponding to the data item information in the file to be read according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
Preferably, the method further comprises the following steps: and the verifying unit is used for carrying out format verification on the map format data and carrying out decoding processing on the encrypted map format data.
Preferably, the method further comprises the following steps: the time of reading the data is recorded.
The embodiment of the invention provides a data format adapting method for data reading, which comprises the following steps: receiving adaptation requirement information, wherein the adaptation requirement information comprises data format information of a file to be read; converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration; the adaptive relationship configuration comprises a processing mode of converting the data format of the file to be read into a map format; and reading and storing the map format data. According to the method, different file format types are converted into the map format through the adaptation relation configuration, so that developers do not need to set corresponding functional modules for different types of files respectively to read data respectively, and format conversion is achieved only through the adaptation relation configuration, and the technical problems that the existing data format adaptation method is low in efficiency and not beneficial to later-stage management and maintenance of software are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data format adapting method for data reading according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a configuration item structure of a configuration file according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating another data format adapting process for data reading according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a data format adapting method for data reading according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a data format adapting method for data reading according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data format adapting device for data reading according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 schematically illustrates a flow chart of a data format adaptation method for data reading, which is provided by an embodiment of the present invention and can be applied to at least a data reading scenario in a data collection such as a database, a notepad, and the like.
As shown in fig. 1, the method mainly comprises the following steps:
step S101, receiving adaptation requirement information; the adaptation requirement information comprises data format information of a file to be read.
And step S102, converting the data format of the file to be read into map format adaptation relation configuration according to the data format information and the adaptation relation configuration.
Step S103, reading and storing map (English: map file, Chinese: mapping file) format data.
Further, the adaptation relation is configured as a relation list, and the relation list comprises at least one class for storing a processing mode of converting the non-map format data into the map format data.
It should be noted that, in practical application, the main execution body of the method is a system control end, and the control end is configured to receive the adaptation requirement information, convert the data format of the file to be read into the map format data through a series of processing procedures, and then read and store the map format data.
In step S101, the control end determines the data type to be read and all file storage locations of the data type, that is, addresses of files to be read, by acquiring the adaptation requirement information. The storage location of the file may be edited by a developer and stored in the address database.
The control end obtains and receives information input by a user through a configuration file; the configuration file comprises an adaptation requirement configuration item, and a user can input data format information of the file to be read through the adaptation requirement configuration item.
Based on this, in a specific application, the control end searches a file address corresponding to the data format information, namely a file address to be read, in the address database according to the data format information of the file to be read. In addition, the configuration file provided by the embodiment of the invention further comprises a read address configuration item, which is used for receiving address information input by a user. In this way, the user can define the file to be read by the address information entered in the read address configuration item. Therefore, the control end can determine the address of the file to be read according to the address information input by the user in the read address configuration item.
The method provided by the embodiment of the invention does not limit the type and the number of the data formats; exemplary data format types are one or more of a csv format, a spreadsheet, a json format, and a pb format. It should be noted that, in practical application, the address database may be a device disposed in the control end, or may be a device used independently, but the device used independently is connected to the control end through a network, and the control end may control the operation condition of the address database.
In step S102, after the control end determines the address of the file to be read, if the data format of the file to be read is a non-map format, the data format of the file to be read is converted into a map format according to a processing manner of converting different data format types stored in the adaptation relationship configuration into the map format, and then the map format data after format conversion is loaded. If the data format of the file to be read is map format, the data in the map format is directly loaded without format conversion.
Further, the adaptation relationship is configured as a relationship list, the relationship list at least comprises at least one class for storing different data format types, namely a processing mode of converting a non-map format into a map format; the processing mode comprises field value format conversion, code conversion, multi-field combination, field data extraction, field code translation and other processing aiming at field contents. The implementation mode of code conversion comprises the following steps: and the control terminal performs url decoding on the fields in the file to be read. For example, the user name field in the file to be read is: "% E5% BC% A0% E4% B8% 89", url decoded to get the username "Zhang three".
For example, the file to be read includes the following four coordinate location fields: and the MCC field, the MNC field, the LAC field and the CI field are combined and spliced to obtain the MCC-MNC-LAC-CI field.
Illustratively, the field of the ID card information of the file to be read is '61112319831203215X', and the birth date information '1983-12-03' is obtained by field extraction.
For example, the values of the roaming field of the mobile phone of the file to be read are 0, 1, 2, and 3, and it can be known through translation that "0" represents "no roaming", "1" represents "intra-province roaming", "2" represents "extra-province roaming", and "3" represents "international roaming".
In practical application, the control end performs data format conversion by the following steps: 1) the control end obtains a prefix or a suffix of user name information in the file to be read through the regular character string to determine the data format type of the file to be read; 2) searching a corresponding class in the relation list according to the data format type; 3) and performing format conversion on the data field value of the file to be read according to the processing mode, and converting the data type of the file to be read into a map format.
The following is a partial code example of implementation 1) of the embodiment of the present invention:
<item dataRegex="\.csv$"parserName="CsvParser"/>
wherein "\ csv $" is a regular string and "CsvParser" is a function module that identifies the data type.
By way of example, the following is a csv format file:
duration of call Date and time Type (B) Subscriber number The recipe is ascribed to the ground
6 2019-07-14 16:09:01 CM request 13318092222 Xi ' an
13 2019-07-14 16:09:14 Location update 13438093878 Shanghai province
The converted file in the map format is { "call duration"; "6", "date time": 2019-07-1416:09:01 "," type ": CM request", "user number": 13318092222 "," home location ": xi' an" } { "call duration"; "13", "date time": 2019-07-1416:09: 14 "," type ": location update", "user number": 13438093878 "," home location ": shanghai".
By way of example, the following is an exemplary spreadsheet format file:
identification code Types of Number of home terminal Name of home terminal Short message content Sign (sign)
123456 MSISDN 8618512345040 Zhang San The task is completed Receiving
654321 MSISDN 8618543218530 Wang Wu Receiving information Receiving
The converted file in the map format is { "identification code"; "123456", "type": MSISDN "," home terminal number ":"' 8618512345040 "," home terminal name ": zhang three", "short message content": task completed "," flag ": receive" }, { "identification code"; "654321", "type": MSISDN "," home terminal number ":"' 8618543218530 "," home terminal name ": wang wu", "short message content": received information "," flag ": received".
The adaptation relation configuration respectively stores a plurality of specific steps of converting different types of data formats into map formats in classes, and respectively converts the formats of the different types of data by searching the classes of the relation list, so that different data formats are respectively converted into the map formats through one reading interface, and the files in different data formats are respectively read without respectively setting different reading interfaces and corresponding functional modules aiming at the files in different formats. The technical problems that the existing data format adaptation method is low in efficiency and not beneficial to later-stage management and maintenance of software are solved.
The following is an example of code implementing part of the functionality in the adaptation relationship configuration:
-<field key="timebegin"convert="ms2stimeAdapter">
<ITEM key="08A0015"rmk=""eng="START_TIME"/>
</field>
wherein, the 'timebin' is the input field name, the 'ms 2 still adapter' is the function, and the '08A 0015' is the output field name.
Further, the method also comprises the step of recording the time of reading the data. In practical application, the control end records the date of searching for the file to be read while loading the data after map format conversion.
In step S103, the control terminal reads the map format data and stores the read data locally. Further, the control end stores the read data in a designated database. In addition, in practical application, the configuration file further comprises a forwarding configuration item; the user may read the specified storage location of the data by entering it in the forwarding configuration item.
Further, the adaptation requirement information further comprises data item information; step S102 includes: and searching a field corresponding to the data item information in the file to be read according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
In practical applications, the configuration file further includes a data configuration item, and a user can define a data field of the file to be read by inputting data item information in the data configuration item. Fig. 2 is a schematic structural diagram of a configuration file according to an embodiment of the present invention.
Therefore, after receiving the data item information, the control terminal extracts the data field to be read in the file to be read, then converts the data format of the data field into a map format by combining the adaptive relationship configuration, and further reads and loads the data field. If the data format of the data field is map format, the data field is loaded directly without format conversion.
It should be noted that the method provided in the embodiment of the present invention is not limited to the data item information. For example, the data item information may be a username of the file.
Further, after step S103, the method further includes: and carrying out format check on the map format data, and carrying out decoding processing on the encrypted map format data. Specifically, the control end performs format check on map-format data and judges whether the file data to be read is encrypted; if the data format of the file to be read is not encrypted, directly storing the data; if the file data to be read is encrypted in format, decoding and translating the encrypted file data to be read, and then reading and storing the decoded and translated file data.
In order to more clearly describe a data format adaptation method for data processing provided by the embodiment of the present invention, specific contents involved in the method are described below with reference to fig. 3.
Fig. 3 is a schematic flowchart of another data format adapting method for data processing according to an embodiment of the present invention; as shown in fig. 3, the flow of the data format adapting method for data processing mainly includes the following steps:
step S201, receiving data format information;
step S202, determining a file to be read according to the data format information;
step S203, judging whether the data format type of the file to be read is in a map format; if not, go to step S204; if yes, go to step S205.
Step S204, converting the data format of the file to be read into a map format according to the data format information and the configuration of the adaptive relationship;
step S205, judging whether the file data to be read is encrypted; if the file data to be read is encrypted data, executing step S206; if not, go to step S207;
step S206, decoding and translating the encrypted file data to be read;
step S207, reading and storing file data;
and step S208, ending.
The processing procedure of the above steps is described as follows:
the implementation process of S101 corresponds to steps S201 to S202; the implementation process of S102 corresponds to steps S203 to S204; the implementation process of S103 corresponds to step S207.
In step S201, the control end receives data format information input by the user in the adaptation requirement configuration item. In step S202, the control terminal invokes an address database according to the received data format information to determine an address of the file to be read, and then searches for the file to be read.
In step S203, the control end determines the data format type of the file to be read through the forward character string, and then determines whether the data format type of the file to be read is in the map format, that is, determines whether map format conversion needs to be performed on the file to be read; if not, go to step S204; if yes, go to step S208.
In step S204, the control end determines the corresponding class through the relationship list configured by the adaptation relationship, and converts the data format of the file to be read into the map format according to the processing mode stored in the class. In step S205, the control end determines whether the file data to be read is encrypted, and if the file data to be read is encrypted, step S206 is executed to decrypt the encrypted file data to be read; if not, step S207 is executed to read and store the file data.
Fig. 4 is a schematic flow chart of another data format adaptation method for data processing according to an embodiment of the present invention, which is provided by taking the data format as "csv format" as an example. As shown in fig. 4, the flow of the data format adapting method for data processing mainly includes the following steps:
step S301, receiving the information of the csv format;
step S302, determining all csv format files according to the csv format information;
step S303, judging whether all the files in the csv format are in the map format, if not, executing step S304; if yes, go to step S305;
step S304, converting the file in the csv format into a file in the map format according to the information in the csv format and the configuration of the adaptive relationship;
step S305, judging whether the csv format file is encrypted; if the csv file is encrypted data, executing step S306; if not, go to step S307;
step S306, translating and decoding the encrypted csv format file;
step S307, reading and storing the file in the csv format;
and step S308, ending.
The processing procedure of the above steps is described as follows:
in step S301, the control end receives "csv format" information input by the user in the adaptation requirement configuration item.
In step S302, the control end invokes the address database according to the information of the "csv format" to determine the address of the file to be read in the "csv format", and then searches for all the files to be read in the "csv format".
In step S303, the control end determines the data format types of all the files to be read through the forward character string, and determines whether the data format types of the files to be read are in the map format, that is, determines whether map format conversion is required; if not, go to step S304; if yes, go to step S308.
In step S304, the control end determines the class corresponding to the "csv format" through the relationship list configured by the adaptation relationship, and converts the data formats of all the files to be read in the "csv format" into the map format according to the processing mode stored in the class.
In step S305, the control end determines whether the file data to be read is encrypted, and if the file data to be read is encrypted, step S306 is executed to decode and translate the encrypted file data to be read; if not, step S307 is executed to read and store the file data.
Fig. 5 is a schematic flow chart of another data format adaptation method for data processing according to an embodiment of the present invention, where a data item is a "user name" and a data format is a "csv format". As shown in fig. 4, the flow of the data format adapting method for data processing mainly includes the following steps:
step S401, receiving csv format information and user name information;
step S402, searching the 'user name' information in all the csv format files according to the 'csv format' information and the 'user name' information;
step S403, judging whether the 'user name' information is in a map format, if not, executing step S404; if yes, go to step S405;
step S404, converting the 'user name' information format of the csv format into a map format according to the 'csv format' information and the configuration of the adaptive relationship;
step S405, judging whether the 'user name' information is encrypted; if the "user name" information is encrypted data, go to step S406; if not, go to step S407;
step S406, decoding and translating the encrypted 'user name' information;
step S407, reading and storing the information of the user name;
step S408 ends.
The processing procedure of the above steps is described as follows:
in step S401, the control end receives "csv format" information input by the user in the adaptation requirement configuration item and "user name" input in the data configuration item.
In step S402, the control end invokes an address database according to the received "csv format" information to determine addresses of all files to be read in "csv format", and then searches for "user name" information in all files to be read in "csv format".
In step S403, the control end determines the data format types of all the files to be read through the forward character string, and determines whether the data format types of the files to be read are in map format, that is, determines whether map format conversion is required; if not, go to step S404; if yes, go to step S405.
In step S404, the control end determines, through the relationship list configured by the adaptation relationship, that the csv format is converted into a class corresponding to the map format, and further converts the "user name" information data format into the map format according to the csv format information and the processing mode stored in the class; if yes, go to step S405.
In step S405, the control end determines whether the "user name" information is encrypted, and if the "user name" information is encrypted data, step S406 is executed, that is, the encrypted "user name" information is decoded and translated; if the "user name" information is not encrypted data, step S407 is executed.
Based on the same inventive concept, embodiments of the present invention provide a data format adapting device for data reading, and as the principle of the device for solving the technical problem is similar to that of a data format adapting device for data reading, the implementation of the device may refer to the implementation of the method, and repeated parts are not described again.
Fig. 6 is a schematic structural diagram of a data format adapting apparatus for data reading according to an embodiment of the present invention, as shown in fig. 5, the apparatus mainly includes: a receiving unit 501, an adapting unit 502, and a reading unit 503.
The receiving unit 501 is configured to receive adaptation requirement information, where the adaptation requirement information includes data format information of a file to be read.
The adaptation unit 502 is configured to convert the data format of the file to be read into a map format according to the data format information and the adaptation relationship;
a reading unit 503, configured to read and store map format data.
Preferably, the adaptation relationship is configured as a relationship list, and the relationship list includes at least one class for storing a processing mode for converting the non-map format data into the map format data.
Preferably, the adaptation requirement information further includes: data item information; the adapting unit 502 is specifically configured to: and searching a field corresponding to the data item information in the read file according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
Preferably, the method further comprises the following steps: a checking unit 504, configured to perform format checking on the map format data, and perform decoding processing on the encrypted map format data.
Preferably, the method further comprises the following steps: the time of reading the data is recorded.
It should be understood that the above speech editing apparatus includes only units that are logically divided according to the functions implemented by the device apparatus, and in practical applications, the above units may be overlapped or separated. The functions implemented by the speech editing apparatus provided in this embodiment correspond to the speech editing methods provided in the foregoing embodiments one to one, and for the more detailed processing flow implemented by the apparatus, detailed description is already given in the foregoing method embodiment, and detailed description is not given here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A data format adaptation method for data reading, comprising:
receiving adaptation requirement information, wherein the adaptation requirement information comprises data format information of a file to be read;
converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration;
and reading and storing the map format data.
2. The method of claim 1, wherein the adaptation relationship is configured as a relationship list, the relationship list including at least one class for storing a manner of converting non-map format data into map format data.
3. The method of claim 1, wherein the adapting the demand information further comprises: data item information;
converting the data format of the file to be read into a map format according to the data format information and the adaptation relationship configuration, wherein the converting comprises the following steps:
and searching a field corresponding to the data item information in the file to be read according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
4. The method of claim 1, wherein after converting the data format of the file to be read into the map format according to the data format information and the adaptation relationship configuration, the method further comprises:
and carrying out format check on the map format data, and carrying out decoding processing on the encrypted map format data.
5. The method of claim 1, further comprising: the time of reading the data is recorded.
6. A data format adaptation apparatus for data reading, comprising:
the device comprises a receiving unit, a reading unit and a processing unit, wherein the receiving unit is used for receiving adaptation requirement information which comprises data format information of a file to be read;
the adaptation unit is used for converting the data format of the file to be read into a map format according to the data format information and the adaptation relation configuration;
and the reading unit is used for reading and storing the map format data.
7. The apparatus of claim 6, wherein the adaptation relationship is configured as a relationship list, the relationship list comprising at least one class for storing a manner of converting non-map format data into map format data.
8. The apparatus of claim 6, wherein the adaptation requirement information further comprises: data item information;
the adaptation unit is specifically configured to: and searching a field corresponding to the data item information in the file to be read according to the data format information, the adaptation relation configuration and the data item information, and converting the field format into a map format.
9. The apparatus of claim 6, further comprising:
and the verifying unit is used for carrying out format verification on the map format data and carrying out decoding processing on the encrypted map format data.
10. The apparatus of claim 6, further comprising: the time of reading the data is recorded.
CN202210537120.XA 2022-05-17 2022-05-17 Data format adaptation method and device for data reading Pending CN114942781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210537120.XA CN114942781A (en) 2022-05-17 2022-05-17 Data format adaptation method and device for data reading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210537120.XA CN114942781A (en) 2022-05-17 2022-05-17 Data format adaptation method and device for data reading

Publications (1)

Publication Number Publication Date
CN114942781A true CN114942781A (en) 2022-08-26

Family

ID=82907887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210537120.XA Pending CN114942781A (en) 2022-05-17 2022-05-17 Data format adaptation method and device for data reading

Country Status (1)

Country Link
CN (1) CN114942781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112072A (en) * 2023-10-25 2023-11-24 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364206A (en) * 2020-11-12 2021-02-12 广东海启星海洋科技有限公司 Method and device for analyzing and translating multi-format data file

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364206A (en) * 2020-11-12 2021-02-12 广东海启星海洋科技有限公司 Method and device for analyzing and translating multi-format data file

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112072A (en) * 2023-10-25 2023-11-24 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium
CN117112072B (en) * 2023-10-25 2023-12-22 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium

Similar Documents

Publication Publication Date Title
CN109636317B (en) Service control method, device, system and storage medium
CN110795399B (en) Method, device and system for generating machine ID for application
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
CN107566090B (en) Fixed-length/variable-length text message processing method and device
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN111079408A (en) Language identification method, device, equipment and storage medium
CN111831920A (en) User demand analysis method and device, computer equipment and storage medium
CN114327477A (en) Intelligent contract execution method and device, electronic device and storage medium
CN114942781A (en) Data format adaptation method and device for data reading
CN109828759B (en) Code compiling method, device, computer device and storage medium
CN111240772A (en) Data processing method and device based on block chain and storage medium
CN112860412B (en) Service data processing method and device, electronic equipment and storage medium
CN111596970B (en) Method, device, equipment and storage medium for dynamic library delay loading
CN111984595B (en) File processing method and device and storage medium
CN111949328A (en) Starting acceleration method and device, computer equipment and storage medium
CN116996601A (en) Message format conversion method and device, electronic equipment and storage medium
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN116414898A (en) Database access method and device, electronic equipment and storage medium
CN108959952B (en) Data platform authority control method, device and equipment
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN113360558A (en) Data processing method, data processing device, electronic device, and storage medium
CN114171205A (en) Medical data processing method and device and digital model editor
CN113691618A (en) Message notification method, device, message center and storage medium
US20160218941A1 (en) Processing method and apparatus for signaling tracing

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