CN107193934A - A kind of date storage method and device - Google Patents

A kind of date storage method and device Download PDF

Info

Publication number
CN107193934A
CN107193934A CN201710352404.0A CN201710352404A CN107193934A CN 107193934 A CN107193934 A CN 107193934A CN 201710352404 A CN201710352404 A CN 201710352404A CN 107193934 A CN107193934 A CN 107193934A
Authority
CN
China
Prior art keywords
data
stored
vehicle
general
basic
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
CN201710352404.0A
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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710352404.0A priority Critical patent/CN107193934A/en
Publication of CN107193934A publication Critical patent/CN107193934A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures

Abstract

The embodiment of the invention discloses a kind of date storage method, this method includes:Determine the data type of data to be stored;Data storage is treated according to the data type of data to be stored to be stored.The embodiment of the invention also discloses a kind of data storage device.By scheme of the embodiment of the present invention, it can solve the problem that the detection data that current car test enterprise is present are unordered, the problem of causing the confusion of data tissue.

Description

A kind of date storage method and device
Technical field
The present embodiments relate to motor vehicle detecting regulation technique field, espespecially a kind of date storage method and device.
Background technology
Traditional motor vehicle detecting industry, each motor vehicle detecting enterprise stores detection Dynamic data exchange, then uniform packing Supervising platform is uploaded to, detection data can just be modified during packing, to meet the standard of detection detection, For strengthen arrogating to oneself in Vehicle Security checkout procedure subtract inspection project, reduction test stone, distort, to forge inspection data etc. prominent Go wrong and monitor and manage, the Ministry of Public Security, State General Administration for Quality Supervision require that detection data are uploaded in real time, be i.e. detection completion one uploads one .At present, due to it is each detection business network environment complexity, easily cause detection data pass to supervising platform be it is unordered, Cause the confusion of data tissue.
The content of the invention
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of date storage method and device, it can solve The detection data that certainly current car test enterprise is present are unordered, the problem of causing the confusion of data tissue.
In order to reach purpose of the embodiment of the present invention, the embodiments of the invention provide a kind of date storage method, this method bag Include:
Determine the data type of data to be stored;
Data storage is treated according to the data type of data to be stored to be stored.
Alternatively, data type includes:Basic data and general data;
Wherein, basic data is used to indicate whether vehicle reaches the standard grade;
General data is used to indicate the various detection data to vehicle.
Alternatively, general data includes:Light data, braking-distance figures, sideslip data, vehicle speed data and result data.
Optionally it is determined that the data type of data to be stored includes:
Detect the data head of data to be stored;
The data label of data to be stored is obtained from data head;
The data type of data to be stored is determined according to the data label of data to be stored.
Alternatively, be stored with different vehicles, different data types and different general datas in label mapping table The corresponding data label of difference;
Wherein, vehicle mark, data type mark and general data group indication are included in data label;Different cars The different vehicle mark of correspondence, the different data type marks of different data type correspondences, different general datas correspondences Different general data group indications.
Alternatively, this method also includes:
Data to be stored are temporarily stored in the first data buffer storage table after default supervising platform is sent to;
First data buffer storage table is scanned to obtain data to be stored by default warehouse-in thread, and it is true by warehouse-in thread The data type of fixed data to be stored.
Alternatively, treating data storage progress storage according to the data type of data to be stored includes:
When it is determined that data to be stored be the first vehicle basic data when, directly by the basic data be stored in database in In the corresponding base data table of first vehicle;
When it is determined that data to be stored are the first general data of the first vehicle, the corresponding basic number of the first vehicle is scanned According to table with the basic data that whether has been stored with judgement basis tables of data, when the basis that has been stored with judgement base data table During data, the first general data of the first vehicle is stored into database the first general data table corresponding with the first vehicle In;When judge base data table in be not stored with basic data when, the first general data is stored into the second data buffer storage table.
Alternatively, this method also includes:
Default the second data buffer storage of queuing thread scans table, the kept in the second data buffer storage table is obtained according to sequence Two general datas;
The vehicle mark inquired about in the data label of the second general data obtained, it is corresponding to obtain the second general data Second vehicle;
The second vehicle correspondence that whether has been stored with the corresponding base data table of the second vehicle is inquired about according to vehicles identifications The second basic data;
When be stored with the corresponding base data table of the second vehicle the second basic data when, the second general data is deposited Store up in database in the second general data table corresponding with the second vehicle;Do not deposited when in the corresponding base data table of the second vehicle When containing the second basic data, obtained according to sequence come in the second data buffer storage table it is the 3rd common behind the second general data Data.
Alternatively, this method also includes:Second general data is stored into database corresponding with the second vehicle second After in general data table, the second general data in the second data buffer storage table is deleted.
Alternatively, this method also includes:When second basic data that is not stored with the corresponding base data table of the second vehicle When, the default time span of queuing thread dormancy.
In order to reach purpose of the embodiment of the present invention, the embodiment of the present invention additionally provides a kind of data storage device, the device Including:Determining module and memory module.
Determining module, the data type for determining data to be stored;
Memory module, is stored for treating data storage according to the data type of data to be stored.
Alternatively, data type includes:Basic data and general data;
Wherein, basic data is used to indicate whether vehicle reaches the standard grade;
General data is used to indicate the various detection data to vehicle.
Alternatively, general data includes:Light data, braking-distance figures, sideslip data, vehicle speed data and result data.
Optionally it is determined that module determines that the data type of data to be stored includes:
Detect the data head of data to be stored;
The data label of data to be stored is obtained from data head;
The data type of data to be stored is determined according to the data label of data to be stored.
Alternatively, be stored with different vehicles, different data types and different general datas in label mapping table The corresponding data label of difference;
Wherein, vehicle mark, data type mark and general data group indication are included in data label;Different cars The different vehicle mark of correspondence, the different data type marks of different data type correspondences, different general datas correspondences Different general data group indications.
Alternatively, the device also includes:Temporary storage module;
Temporary storage module, for after default supervising platform is sent to, data to be stored to be temporarily stored in data to be stored In first data buffer storage table;
Determining module, is additionally operable to the first data buffer storage table of scanning to obtain data to be stored, and determine data to be stored Data type.
Alternatively, memory module is treated data storage progress storage according to the data type of data to be stored and included:
When it is determined that data to be stored are the basic data of the first vehicle, directly basic data is stored in database and the In the corresponding base data table of one vehicle;
When it is determined that data to be stored are the first general data of the first vehicle, the corresponding basic number of the first vehicle is scanned According to table with the basic data that whether has been stored with judgement basis tables of data, when the basis that has been stored with judgement base data table During data, the first general data of the first vehicle is stored into database the first general data table corresponding with the first vehicle In;When judge base data table in be not stored with basic data when, the first general data is stored into the second data buffer storage table.
Alternatively, the device also includes:Scan module;Scan module is used for:
The second data buffer storage table is scanned, the second general data kept in the second data buffer storage table is obtained according to sequence;
The vehicle mark inquired about in the data label of the second general data obtained, it is corresponding to obtain the second general data Second vehicle;
The second vehicle correspondence that whether has been stored with the corresponding base data table of the second vehicle is inquired about according to vehicles identifications The second basic data;
When be stored with the corresponding base data table of the second vehicle the second basic data when, the second general data is deposited Store up in database in the second general data table corresponding with the second vehicle;Do not deposited when in the corresponding base data table of the second vehicle When containing the second basic data, obtained according to sequence come in the second data buffer storage table it is the 3rd common behind the second general data Data.
Alternatively, scan module is additionally operable to:Second general data is stored into database corresponding with the second vehicle After in two general data tables, the second general data in the second data buffer storage table is deleted.
Alternatively, scan module is additionally operable to:When the second basic number that is not stored with the corresponding base data table of the second vehicle According to when, the default time span of dormancy.
The embodiment of the present invention includes:Determine the data type of data to be stored;According to the data type pair of data to be stored Data to be stored are stored.By scheme of the embodiment of the present invention, can solve the problem that detection data that current car test enterprise is present without Sequence, the problem of causing the confusion of data tissue.
The further feature and advantage of the embodiment of the present invention will illustrate in the following description, also, partly from explanation Become apparent, or understood by implementing the embodiment of the present invention in book.The purpose of the embodiment of the present invention and other advantages It can realize and obtain by specifically noted structure in specification, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical scheme of the embodiment of the present invention, and constitutes one of specification Point, the technical scheme for explaining the embodiment of the present invention is used for together with embodiments herein, is not constituted to the embodiment of the present invention The limitation of technical scheme.
Fig. 1 is the date storage method flow chart of the embodiment of the present invention;
Fig. 2 is the date storage method schematic diagram of the embodiment of the present invention;
Fig. 3 keeps in schematic diagram for the data of the embodiment of the present invention;
Fig. 4 is the data storage device composition frame chart of the embodiment of the present invention.
Embodiment
For the purpose, technical scheme and advantage of the embodiment of the present invention are more clearly understood, below in conjunction with accompanying drawing pair Embodiments of the invention are described in detail.It should be noted that in the case where not conflicting, embodiment and reality in the application Applying the feature in example can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated Perform.And, although logical order is shown in flow charts, but in some cases, can be with suitable different from herein Sequence performs shown or described step.
In order to reach purpose of the embodiment of the present invention, the embodiments of the invention provide a kind of date storage method, such as Fig. 1, Fig. 2 Shown, this method includes S101-S102:
S101, the data type for determining data to be stored, the data to be stored are the data uploaded in real time.
In embodiments of the present invention, traffic is in order to realize the supervision of motor vehicle detecting process, it is to avoid motor vehicle detecting The cheating of enterprise, it is desirable to detect that data are uploaded in real time, and combination detects that image data and detection process data are compared, Detection bad habit are corrected, detection data are divided into light data, braking-distance figures, sideslip data, vehicle speed data etc., respectively by different visitors Family machine is uploaded in real time, and it is unordered that this, which has been resulted in when data pass to server, and scheme of the embodiment of the present invention passes through to be stored The type of data is identified, and treats data storage progress respective stored according to the data type identified, solves data Randomness during storage, it is ensured that the integrality and reliability of data.
Alternatively, this method also includes:
Data to be stored are temporarily stored in the first data buffer storage table after default supervising platform is sent to;
First data buffer storage table is scanned to obtain data to be stored by default warehouse-in thread, and it is true by warehouse-in thread The data type of fixed data to be stored.
In embodiments of the present invention, in order to be managed collectively to detection data, unified supervision can be pre-set and put down Platform, and the detection data of each detection enterprise are real-time transmitted on the supervising platform, as shown in Figure 3.These detection data It is transferred to after supervising platform, is not to be stored at once, but default first number is temporarily stored in as data to be stored According in cache table, default one or more warehouse-in threads meetings are periodically or real-time scans the first data buffer storage table to obtain this Data to be stored, and determine by warehouse-in thread the data type of data to be stored.
Alternatively, the data type can include but is not limited to:Basic data and general data;
Wherein, basic data is used to indicate whether vehicle reaches the standard grade;
General data is used to indicate the various detection data to vehicle.
Alternatively, general data can include but is not limited to:Light data, braking-distance figures, sideslip data, vehicle speed data with And result data.
Optionally it is determined that the data type of data to be stored includes S201-S203:
S201, detection data to be stored data head.
In embodiments of the present invention, warehouse-in thread scanning be temporarily stored in into the first data buffer storage table data to be stored with Afterwards, the data to be stored are obtained, and the data to be stored are parsed, to obtain the header file of the data to be stored, i.e., on The data head stated.
S202, the data label for obtaining from data head data to be stored.
In embodiments of the present invention, the data mark for marking current data to be stored can be pre-set in the data head The data label position of label, by being detected to data label position, to obtain the data label of data to be stored.
Alternatively, be stored with different vehicles, different data types and different general datas in label mapping table The corresponding data label of difference;
Wherein, vehicle mark, data type mark and general data group indication are included in data label;Different cars The different vehicle mark of correspondence, the different data type marks of different data type correspondences, different general datas correspondences Different general data group indications.
In embodiments of the present invention, the data label can include but is not limited to the one or more of the description below:Word, Character, letter, numeral, symbol, figure, lines etc..For example, the data label of a data to be stored can be 1-A or 1-B- a.Wherein, 1 is vehicles identifications, the different vehicle for distinguishing;A and B is data type mark, and A can represent basic data, B General data can be represented;A is general data group indication, can represent light data in general data, braking-distance figures, sideslip Any one in data, vehicle speed data and result data.In addition, the vehicles identifications can also directly use the board of vehicle Number.
S203, the data type for determining according to the data label of data to be stored data to be stored.
In embodiments of the present invention, just can basis after the data label that data to be stored are obtained by above-mentioned steps The data type of the data label is masked as obtaining the data type of the data to be stored.
S102, data storage is treated according to the data type of data to be stored stored.
In embodiments of the present invention, just can be according to current data class after the data type for obtaining the data to be stored Type carries out respective stored.
Alternatively, treating data storage according to the data type of data to be stored and store includes following three kinds of situations:
Situation one
When it is determined that data to be stored be the first vehicle basic data when, directly by the basic data be stored in database in In the corresponding base data table of first vehicle.
In embodiments of the present invention, if detecting that the data label of current data is 1-A, basis by above-mentioned steps 1 can determine the data that the data are the first vehicle, and can determine the basic data that the data are the first vehicle according to A, Because basic data is used to indicate whether vehicle reaches the standard grade, therefore, the data are to indicate the data that the first vehicle has been reached the standard grade, because The basic data, directly can be stored in database in base data table corresponding with the first vehicle by this.
Situation two
When it is determined that data to be stored are the first general data of the first vehicle, the corresponding basic number of the first vehicle is scanned According to table with the basic data that whether has been stored with judgement basis tables of data, when the basis that has been stored with judgement base data table During data, the first general data of the first vehicle is stored into database the first general data table corresponding with the first vehicle In.
In embodiments of the present invention, if detecting that the data label of current data is 1-B-a, root by above-mentioned steps Data of the data for the first vehicle can be determined according to 1, and the common number that the data are the first vehicle can be determined according to B According to because general data is used for the various detection data to vehicle, for example, light data, braking-distance figures, sideslip data, speed Data and result data lamp, therefore, it can further determine that the data are specially any detection data by a, if a generations Table braking-distance figures, then can determine the braking-distance figures in the general data for the first vehicle that currently uploads.
In embodiments of the present invention, the data are obtained for after general data, it is impossible to directly current data is stored, Need to scan the corresponding base data table of the first vehicle first with the basic number that whether has been stored with judgement basis tables of data According to determining whether corresponding first vehicle of the data has reached the standard grade.If it is determined that being stored with basis in base data table Data, that is, determine that corresponding first vehicle of the data has been reached the standard grade, then by the first general data (system described above of the first vehicle Dynamic data) it is stored into database in the first general data table (braking-distance figures table) corresponding with the first vehicle.
Situation three
When it is determined that data to be stored are the first general data of the first vehicle, the corresponding basic number of the first vehicle is scanned According to table with the basic data that whether has been stored with judgement basis tables of data, when the basic number that is not stored with judgement base data table According to when, the first general data is stored into the second data buffer storage table.
In embodiments of the present invention, if it is decided that be not stored with basic data in base data table, that is, the data pair are determined The first vehicle answered is not reached the standard grade also, then now in order to avoid data corruption, first not by the first general data of current first vehicle (braking-distance figures described above) are stored into database in the first general data table (braking-distance figures table) corresponding with the first vehicle, The data can be kept in, for example, the first general data is stored into the second data buffer storage table.
Alternatively, this method also includes S301-S304:
S301, default the second data buffer storage of queuing thread scans table, are obtained in the second data buffer storage table temporarily according to sequence The second general data deposited;
Vehicle mark in the data label for the second general data that S302, inquiry are obtained, to obtain the second general data Corresponding second vehicle;
S303, according to vehicles identifications inquire about second vehicle that whether has been stored with the corresponding base data table of the second vehicle Corresponding second basic data;
S304, when be stored with the corresponding base data table of the second vehicle the second basic data when, it is common by second Data storage enters in database in the second general data table corresponding with the second vehicle;When the corresponding base data table of the second vehicle In be not stored with the second basic data when, the come in the second data buffer storage table behind the second general data is obtained according to sequence Three general datas.
In embodiments of the present invention, can be with after the first above-mentioned general data is stored into the second data buffer storage table Real-time or periodic scan are carried out to the second data buffer storage table by default queuing thread, and second is obtained by scanning General data in data buffer storage table, the second general data as escribed above.In the second data buffer storage table, each common number According to can be arranged according to temporary order is entered, and thread of queuing up can be general sequentially to each according to this when being scanned Logical data are scanned.
In embodiments of the present invention, if Current Scan is to the second general data, need according to the second common number According to vehicle mark position determine its corresponding vehicle, i.e., the second above-mentioned vehicle., just can be with after second vehicle is determined Whether be stored with the second car in the base data table of corresponding second vehicle in the second vehicle query database Corresponding second basic data, if storing the second basic data, illustrates that the second vehicle has been reached the standard grade, then can be direct Second general data storage corresponding second general data table of the second vehicle into database is suffered.If not storing also Two basic datas, illustrate that the second vehicle is not reached the standard grade also, then temporarily can not be by second general data storage into database second The corresponding second general data table of vehicle, can remain in second general data in the second data buffer storage table.Now Queuing thread can enter next wheel scan, and obtain next general data, the 3rd general data as escribed above in order.
Alternatively, this method also includes:Second general data is stored into database corresponding with the second vehicle second After in general data table, the second general data in the second data buffer storage table is deleted.
In embodiments of the present invention, in order to avoid waste of resource, cause space crowded, can be deposited by the second general data After storing up in the second general data table, the second general data in the second data buffer storage table is deleted.
Alternatively, this method also includes:When second basic data that is not stored with the corresponding base data table of the second vehicle When, the default time span of queuing thread dormancy.
In embodiments of the present invention, when be not stored with the corresponding base data table of the second vehicle the second basic data when, Queuing thread can not also enter next wheel scan, and obtain next general data out of order, and now queuing thread can With the default time span of dormancy.Alternatively, the default time span can include 3 seconds.
In order to reach purpose of the embodiment of the present invention, the embodiment of the present invention additionally provides a kind of data storage device 1, it is necessary to say Bright, any embodiment in above-mentioned embodiment of the method can apply in the device embodiment, herein no longer one by one Repeat.As shown in figure 4, the device can include:Determining module 11 and memory module 12.
Determining module 11, the data type for determining data to be stored;
Memory module 12, is stored for treating data storage according to the data type of data to be stored.
Alternatively, data type includes:Basic data and general data;
Wherein, basic data is used to indicate whether vehicle reaches the standard grade;
General data is used to indicate the various detection data to vehicle.
Alternatively, general data includes:Light data, braking-distance figures, sideslip data, vehicle speed data and result data.
Optionally it is determined that module 11 determines that the data type of data to be stored includes:
Detect the data head of data to be stored;
The data label of data to be stored is obtained from data head;
The data type of data to be stored is determined according to the data label of data to be stored.
Alternatively, be stored with different vehicles, different data types and different general datas in label mapping table The corresponding data label of difference;
Wherein, vehicle mark, data type mark and general data group indication are included in data label;Different cars The different vehicle mark of correspondence, the different data type marks of different data type correspondences, different general datas correspondences Different general data group indications.
Alternatively, the device also includes:Temporary storage module 13;
Temporary storage module 13, for after default supervising platform is sent to, data to be stored to be kept in data to be stored In the first data buffer storage table;
Determining module 11, is additionally operable to the first data buffer storage table of scanning to obtain data to be stored, and determine data to be stored Data type.
Alternatively, memory module 12 is treated data storage progress storage according to the data type of data to be stored and included:
When it is determined that data to be stored are the basic data of the first vehicle, directly basic data is stored in database and the In the corresponding base data table of one vehicle;
When it is determined that data to be stored are the first general data of the first vehicle, the corresponding basic number of the first vehicle is scanned According to table with the basic data that whether has been stored with judgement basis tables of data, when the basis that has been stored with judgement base data table During data, the first general data of the first vehicle is stored into database the first general data table corresponding with the first vehicle In;When judge base data table in be not stored with basic data when, the first general data is stored into the second data buffer storage table.
Alternatively, the device also includes:Scan module 14;Scan module 14 is used for:
The second data buffer storage table is scanned, the second general data kept in the second data buffer storage table is obtained according to sequence;
The vehicle mark inquired about in the data label of the second general data obtained, it is corresponding to obtain the second general data Second vehicle;
The second vehicle correspondence that whether has been stored with the corresponding base data table of the second vehicle is inquired about according to vehicles identifications The second basic data;
When be stored with the corresponding base data table of the second vehicle the second basic data when, the second general data is deposited Store up in database in the second general data table corresponding with the second vehicle;Do not deposited when in the corresponding base data table of the second vehicle When containing the second basic data, obtained according to sequence come in the second data buffer storage table it is the 3rd common behind the second general data Data.
Alternatively, scan module 14 is additionally operable to:Second general data is stored into database corresponding with the second vehicle After in second general data table, the second general data in the second data buffer storage table is deleted.
Alternatively, scan module 14 is additionally operable to:When second basis that is not stored with the corresponding base data table of the second vehicle During data, the default time span of dormancy.
The embodiment of the present invention includes:Determine the data type of data to be stored;According to the data type pair of data to be stored Data to be stored are stored.By scheme of the embodiment of the present invention, can solve the problem that detection data that current car test enterprise is present without Sequence, the problem of causing the confusion of data tissue.
Scheme of the embodiment of the present invention has the advantage that:
1st, data are uploaded in real time, it is to avoid the possibility that is processed to data, eliminate the time for carrying out cheating operation.
2nd, data are ranked up, and stored according to data type, it is ensured that the integrality of data, validity, it is to avoid Data tissue disorder caused by network problem, the possibility of data failure.
Although the embodiment disclosed by the embodiment of the present invention is as above, described content is only to readily appreciate that the present invention is real The embodiment applied example and used, is not limited to the embodiment of the present invention.Skill in any art of the embodiment of the present invention Art personnel, on the premise of the spirit and scope disclosed by the embodiment of the present invention are not departed from, can implementation form and details It is upper to carry out any modification and change, but the scope of patent protection of the embodiment of the present invention, still must be with appended claims institute The scope defined is defined.

Claims (10)

1. a kind of date storage method, it is characterised in that methods described includes:
Determine the data type of data to be stored;
The data to be stored are stored according to the data type of the data to be stored.
2. date storage method according to claim 1, it is characterised in that the data type includes:Basic data and General data;
Wherein, the basic data is used to indicate whether vehicle reaches the standard grade;
The general data is used to indicate the various detection data to the vehicle.
3. date storage method according to claim 1, it is characterised in that the data type of the determination data to be stored Including:
Detect the data head of the data to be stored;
The data label of the data to be stored is obtained from the data head;
The data type of the data to be stored is determined according to the data label of the data to be stored.
4. date storage method according to claim 3, it is characterised in that be stored with the label mapping table different Vehicle, different data types and different general datas distinguish corresponding data label;
Wherein, vehicle mark, data type mark and general data group indication are included in the data label;Different cars The different vehicle mark of correspondence, the different data type marks of different data type correspondences, different general datas correspondences Different general data group indications.
5. date storage method according to claim 2, it is characterised in that methods described also includes:
The data to be stored are temporarily stored in the first data buffer storage table after default supervising platform is sent to;
By default warehouse-in thread the first data buffer storage table is scanned to obtain the data to be stored, and by it is described enter Storehouse thread determines the data type of the data to be stored.
6. date storage method according to claim 5, it is characterised in that the data according to the data to be stored Type carries out storage to the data to be stored to be included:
When it is determined that the data to be stored are the basic data of the first vehicle, directly the basic data is stored in database In base data table corresponding with first vehicle;
When it is determined that the data to be stored are the first general data of first vehicle, the correspondence of first vehicle is scanned Base data table to judge the basic data that whether has been stored with the base data table, when judging the base data table In be stored with basic data when, the first general data of first vehicle is stored into the database and described In the corresponding first general data table of one vehicle;When judge not being stored with the base data table basic data when, will be described First general data is stored into the second data buffer storage table.
7. date storage method according to claim 6, it is characterised in that methods described also includes:
Second data buffer storage table described in default queuing thread scans, obtains in the second data buffer storage table according to sequence and keeps in The second general data;
The vehicle mark inquired about in the data label of second general data obtained, to obtain second general data pair The second vehicle answered;
Inquired about according to the vehicles identifications and whether be stored with described second in the corresponding base data table of second vehicle Corresponding second basic data of vehicle;
When be stored with the corresponding base data table of second vehicle second basic data when, it is general by described second Logical data storage enters in the database in the second general data table corresponding with second vehicle;When second vehicle pair During second basic data that is not stored with the base data table answered, the second data buffer storage table is obtained according to the sequence In come the 3rd general data behind the second general data.
8. date storage method according to claim 7, it is characterised in that methods described also includes:It is general by described second After logical data storage enters in the database in the second general data table corresponding with second vehicle, described second is deleted Second general data in data buffer storage table.
9. a kind of data storage device, it is characterised in that described device includes:Determining module and memory module;
The determining module, the data type for determining data to be stored;
The data to be stored are stored by the memory module for the data type according to the data to be stored.
10. data storage device according to claim 9, it is characterised in that the determining module determines data to be stored Data type include:
Detect the data head of the data to be stored;
The data label of the data to be stored is obtained from the data head;
The data type of the data to be stored is determined according to the data label of the data to be stored.
CN201710352404.0A 2017-05-18 2017-05-18 A kind of date storage method and device Pending CN107193934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710352404.0A CN107193934A (en) 2017-05-18 2017-05-18 A kind of date storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710352404.0A CN107193934A (en) 2017-05-18 2017-05-18 A kind of date storage method and device

Publications (1)

Publication Number Publication Date
CN107193934A true CN107193934A (en) 2017-09-22

Family

ID=59875200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710352404.0A Pending CN107193934A (en) 2017-05-18 2017-05-18 A kind of date storage method and device

Country Status (1)

Country Link
CN (1) CN107193934A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107633071A (en) * 2017-09-22 2018-01-26 江苏康众汽配有限公司 A kind of method and system based on auto project and product dynamic vehicle storehouse
CN111462351A (en) * 2020-03-20 2020-07-28 北京智行者科技有限公司 Vehicle driving data processing method, system and equipment based on automatic driving platform
CN113407107A (en) * 2020-03-16 2021-09-17 杭州海康威视数字技术股份有限公司 Data storage method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399854A (en) * 2013-06-28 2013-11-20 中国中医科学院中医临床基础医学研究所 Data positioning identifying and storing method and system
CN105632176A (en) * 2016-01-18 2016-06-01 贵港市嘉特电子科技有限公司 Freight platform vehicle data management system and method
CN106249262A (en) * 2015-12-29 2016-12-21 北京市交通信息中心 A kind of storage method and device of vehicle satellite location data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399854A (en) * 2013-06-28 2013-11-20 中国中医科学院中医临床基础医学研究所 Data positioning identifying and storing method and system
CN106249262A (en) * 2015-12-29 2016-12-21 北京市交通信息中心 A kind of storage method and device of vehicle satellite location data
CN105632176A (en) * 2016-01-18 2016-06-01 贵港市嘉特电子科技有限公司 Freight platform vehicle data management system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
严朝勇 等: "机动车检测站计算机管理系统的研究与应用", 《农业装备与车辆工程》 *
默默默尘埃: "外键", 《HTTP:// BAIKE.BAIDU.COM/HISTORY/外键/1232333/116941342》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107633071A (en) * 2017-09-22 2018-01-26 江苏康众汽配有限公司 A kind of method and system based on auto project and product dynamic vehicle storehouse
CN107633071B (en) * 2017-09-22 2020-11-13 江苏康众汽配有限公司 Method and system based on automobile project and product dynamic vehicle type library
CN113407107A (en) * 2020-03-16 2021-09-17 杭州海康威视数字技术股份有限公司 Data storage method, device and equipment
CN113407107B (en) * 2020-03-16 2023-03-24 杭州海康威视数字技术股份有限公司 Data storage method, device and equipment
CN111462351A (en) * 2020-03-20 2020-07-28 北京智行者科技有限公司 Vehicle driving data processing method, system and equipment based on automatic driving platform

Similar Documents

Publication Publication Date Title
Lee et al. Estimation of crack width based on shape‐sensitive kernels and semantic segmentation
CN107193934A (en) A kind of date storage method and device
CN104899060B (en) A kind of picture loading processing method and apparatus
CN106179976B (en) Halved belt sorter information transmitting methods
CN103229199B (en) Dynamic line is planned
JP2019015654A (en) Machine learning device, inspection device, and machine learning method
CN109241986B (en) Sample making method for rail transit vehicle part image recognition model
CN105891220B (en) A kind of pavement marker line defect detection device and its detection method
ATE522040T1 (en) METHOD AND DEVICE FOR DETERMINING AND RESOLVING MISSING TOPOLOGY FEATURES OF A NETWORK FOR IMPROVED TOPOLOGY ACCURACY
CN103439348A (en) Remote controller key defect detection method based on difference image method
CN105667545A (en) Locomotive number identification method and system
CN104573675A (en) Operating image displaying method and device
CN104268820A (en) Railway detection van detected data processing method and system
CN111127465A (en) Automatic generation method and system for bridge detection report
CN104477215A (en) Train running chart drawing method and train running chart drawing system
CN111062941B (en) Point light source fault detection device and method
CN108717711A (en) A kind of rail traffic fault picture analysis method, device and system
CN114926415A (en) Steel rail surface detection method based on PCNN and deep learning
CN107633201A (en) A kind of answering card intelligent identification Method and system
CN109975332A (en) A kind of intelligent quality testing system applied to X-ray machine
JP7212792B2 (en) Learning processing device and inspection device
EP2939902B1 (en) Method and device for determining a railway itinerary
CN109614873A (en) Train safety sign detection method, server and storage medium neural network based
CN115393346A (en) Detection method for flaw detection of surface of steel rail
CN115908263A (en) Road pavement damage intelligent detection system and detection method and storage medium thereof

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
TA01 Transfer of patent application right

Effective date of registration: 20200522

Address after: 250101 floor 27, S01, Inspur Science Park, No. 1036, Inspur Road, Jinan City, Shandong Province

Applicant after: Tidal Cloud Information Technology Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922

RJ01 Rejection of invention patent application after publication