CN110018845A - Metadata version control methods and device - Google Patents

Metadata version control methods and device Download PDF

Info

Publication number
CN110018845A
CN110018845A CN201910305308.XA CN201910305308A CN110018845A CN 110018845 A CN110018845 A CN 110018845A CN 201910305308 A CN201910305308 A CN 201910305308A CN 110018845 A CN110018845 A CN 110018845A
Authority
CN
China
Prior art keywords
metadata
data
version
state
feature set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910305308.XA
Other languages
Chinese (zh)
Other versions
CN110018845B (en
Inventor
刘俊良
杨绍辉
王怡君
王双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Sefon Software Co Ltd
Original Assignee
Chengdu Sefon Software 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 Chengdu Sefon Software Co Ltd filed Critical Chengdu Sefon Software Co Ltd
Priority to CN201910305308.XA priority Critical patent/CN110018845B/en
Publication of CN110018845A publication Critical patent/CN110018845A/en
Application granted granted Critical
Publication of CN110018845B publication Critical patent/CN110018845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a kind of metadata version control methods and device.The application is by parsing the metadata version comparison instruction received, obtain the first metadata version and the respective version number of the second metadata version, then search the corresponding metadata feature set of Liang Ge version number, and extract every metadata corresponding state group and timestamp group in two metadata feature set, finally two data time stamps according to each metadata in correspondent time group, two data modes of each metadata in corresponding states group are compared, to identify changing condition of each metadata between first metadata version and second metadata version according to comparing result, to realize that computing resource consumes metadata version comparison process low and that comparison is high-efficient, it avoids impacting the operation of other applications.

Description

Metadata version control methods and device
Technical field
This application involves data Treatment process fields, in particular to a kind of metadata version control methods and device.
Background technique
With the continuous development of network technology, effect of the data Treatment process in data overall management field is more heavy It wants, and data Treatment process can periodically acquire metadata during realization and generate multiple metadata versions.
Currently, data administer administrative staff after obtaining each metadata version, it can be by the corresponding member of each metadata version Data acquisition system is stored, and when the collection of metadata for needing to choose different editions carries out version comparison, calls directly correspondence The collection of metadata of version carries out data comparison, to obtain corresponding version comparing result.But this metadata version comparison Scheme needs to consume a large amount of computing resource, and time-consuming for whole comparison process, easily influences the normal of other applications Operation.
Summary of the invention
In order to overcome above-mentioned deficiency in the prior art, the application's is designed to provide a kind of metadata version to analogy Method and device can save computing resource, and quickly complete metadata version comparison process, avoid to other applications Operation impact.
For method, the embodiment of the present application provides a kind of metadata version control methods, which comprises
Metadata version comparison instruction is obtained, and version comparison instruction is parsed, obtains the first metadata version Sheet and the respective version number of the second metadata version;
According to first metadata version and the respective version number of the second metadata version, two versions are searched This number corresponding metadata feature set, wherein the metadata feature set includes every metadata in corresponding version number Collection of metadata in identity, data mode and data time stamp;
Each item member number is extracted from the two metadata feature set found according to the identity of every metadata According to corresponding state group and timestamp group, wherein the state group includes corresponding metadata in described two metadata feature set In corresponding data mode, the timestamp group include corresponding metadata in described two metadata feature set respectively Corresponding data time stamp;
According to two data time stamps of each metadata in correspondent time group, by each metadata in corresponding states Two data modes in group compare, and according to comparing result identify each metadata first metadata version with Changing condition between second metadata version.
For device, the embodiment of the present application provides a kind of metadata version comparison device, and described device includes:
Command analysis module is compared, for obtaining metadata version comparison instruction, and instruction is compared to the version and is carried out Parsing, obtains the first metadata version and the respective version number of the second metadata version;
Characteristic set searching module, for respective according to first metadata version and second metadata version Two corresponding metadata feature set of version number are searched, wherein the metadata feature set includes by version number Identity, data mode and data time stamp of the every metadata in the collection of metadata of corresponding version number;
Contrast characteristic's extraction module, for according to the identity of every metadata from two metadata features found The corresponding state group of each metadata and timestamp group are extracted in set, wherein the state group includes corresponding metadata in institute Corresponding data mode in two metadata feature set is stated, the timestamp group includes corresponding metadata described two Corresponding data time stamp in metadata feature set;
Characteristic Contrast identification module, for two data time stamps according to each metadata in correspondent time group, Two data modes of each metadata in corresponding states group are compared, and each metadata is identified according to comparing result Changing condition between first metadata version and second metadata version.
In terms of existing technologies, the application has the advantages that
The application obtains the first metadata version and the by parsing to the metadata version comparison instruction received The respective version number of binary data version then searches the corresponding metadata feature set of Liang Ge version number, and extracts Every metadata corresponding state group and timestamp group in two metadata feature set, finally according to each metadata right Two data time stamps in timestamp group are answered, two data modes of each metadata in corresponding states group are carried out pair Than to identify each metadata between first metadata version and second metadata version according to comparing result Changing condition avoid to realize that computing resource consumes the low and high-efficient metadata version comparison process of comparison to other The operation of application program impacts.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, the application preferred embodiment is cited below particularly, And cooperate appended attached drawing, it is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of the application protection scope, for those of ordinary skill in the art, without creative efforts, also Other relevant attached drawings can be obtained according to these attached drawings.
Fig. 1 is the block diagram provided by the embodiments of the present application for calculating equipment;
Fig. 2 is one of the flow diagram of metadata version control methods provided by the embodiments of the present application;
Fig. 3 is the two of the flow diagram of metadata version control methods provided by the embodiments of the present application;
Fig. 4 is the three of the flow diagram of metadata version control methods provided by the embodiments of the present application;
Fig. 5 is one of the block diagram that metadata version provided by the embodiments of the present application compares device;
Fig. 6 is the two of the block diagram that metadata version provided by the embodiments of the present application compares device;
Fig. 7 is the three of the block diagram that metadata version provided by the embodiments of the present application compares device.
Icon: 10- calculates equipment;11- memory;12- processor;13- communication unit;100- metadata version comparison dress It sets;110- compares command analysis module;120- characteristic set searching module;130- contrast characteristic's extraction module;140- feature pair Compare identification module;150- data content display module;160- data mode determining module;170- increment storage regulation module; 180- characteristic set generation module.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it should be noted that term " first ", " second ", " third " etc. are only used for distinguishing and retouch It states, is not understood to indicate or imply relative importance.It for the ordinary skill in the art, can be with concrete condition Understand the concrete meaning of above-mentioned term in this application.
With reference to the accompanying drawing, it elaborates to some embodiments of the application.In the absence of conflict, following Feature in embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, is the block diagram provided by the embodiments of the present application for calculating equipment 10.In the embodiment of the present application In, the calculating equipment 10 can be used for carrying out data improvement, and for the metadata of each version obtained in data governance process Set carries out version comparison.Wherein, the calculating equipment 10 includes that metadata version compares device 100, memory 11, processor 12 and communication unit 13.The memory 11, the processor 12 and each element of the communication unit 13 are direct between each other Or be electrically connected indirectly, to realize the transmission or interaction of data.For example, the memory 11, the processor 12 and described These elements of communication unit 13 can be realized between each other by one or more communication bus or signal wire to be electrically connected.Wherein, The calculating equipment 10 may be, but not limited to, PC (personal computer, PC), server, tablet computer, Personal digital assistant (personal digital assistant, PDA), mobile internet surfing equipment (mobile Internet Device, MID) etc..
In the present embodiment, the memory 11 can be used for storing in collection of metadata corresponding to each metadata version The data content of every metadata carry out increment storage, it is right that the memory 11 can also be used to storing each metadata version institute The metadata feature set answered.Wherein, the corresponding version number of each metadata version, the version number is for indicating corresponding element The identity information of versions of data, the metadata feature set include every metadata in the collection of metadata of corresponding version number Identity, data mode and data time stamp.The corresponding identity in different metadata versions of same metadata Identical, the data time stamp indicates that the time point value that corresponding metadata is acquired, the data mode indicate corresponding element Variable condition of the data between two neighboring version.
Wherein, the data mode includes newly-increased state, deletes state and modification state.The newly-increased state indicates to correspond to Metadata being increased newly between two neighboring version, the deletion state indicate corresponding element data between two neighboring version Be deleted, the modification state indicates corresponding element data being modified between two neighboring version.
In the present embodiment, the memory 11 is also used to store computer instruction or computer program, the processor 12 after receiving and executing instruction, can correspondingly execute the computer instruction or the computer program.
In the present embodiment, the processor 12 can be general processor, including central processing unit (Central Processing Unit, CPU), graphics processor (Graphics Processing Unit, GPU), network processing unit (Network Processor, NP) etc..General processor can be microprocessor or the processor is also possible to any routine Processor etc., may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present application.
In the present embodiment, the communication unit 13 is set for establishing the calculating equipment 10 by network with outside other Communication connection between standby, and pass through the network sending and receiving data.
In the present embodiment, the metadata version comparison device 100 includes that at least one can be with software or firmware Form is stored in the memory 11 or is solidificated in the software function module in the operating system for calculating equipment 10.It is described Processor 12 can be used for executing the executable module that the memory 11 stores, such as the metadata version compares device 100 Included software function module and computer program etc..The calculating equipment 10 can compare device by the metadata version 100 realization computing resources consume metadata version comparison process low and that comparison is high-efficient, avoid the fortune to other applications Row impacts.
It is understood that block diagram shown in FIG. 1 is only a kind of structure composition schematic diagram for calculating equipment 10, the calculating Equipment 10 may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.In Fig. 1 Shown in each component can using hardware, software, or its combination realize.
It referring to figure 2., is one of the flow diagram of metadata version control methods provided by the embodiments of the present application.At this Apply in embodiment, the metadata version control methods is applied to above-mentioned calculating equipment 10, below to metadata shown in Fig. 2 The detailed process and step of version control methods are described in detail.
Step S210 obtains metadata version comparison instruction, and parses to version comparison instruction, obtains first Metadata version and the respective version number of the second metadata version.
In the present embodiment, data, which administer administrative staff, to compare demand according to version, assign and are somebody's turn to do to equipment 10 is calculated Version compares the corresponding metadata version comparison instruction of demand, so that the calculating equipment 10 carries out corresponding metadata version comparison Process.After the calculating equipment 10 receives the metadata version comparison instruction, instruction will be compared to the version and counted According to parsing, version number and the second metadata version corresponding to the first metadata version that the version comparison instruction includes are obtained Version number corresponding to this.Wherein, first metadata version and second metadata version are to participate in metadata Two metadata versions in version comparison process.
Step S220 is searched according to first metadata version and the respective version number of the second metadata version Two corresponding metadata feature set of version number.
In the present embodiment, the corresponding metadata feature of multiple metadata versions is stored in the calculating equipment 10 Set, the calculating equipment 10 is using first metadata version and the respective version number of the second metadata version as rope Draw, two corresponding metadata feature set of version number are found out from all metadata feature set of storage. Wherein, the metadata feature set includes every metadata in the collection of metadata of corresponding version number identity, number According to state and data time stamp.
Step S230 is extracted from the two metadata feature set found according to the identity of every metadata The corresponding state group of each metadata and timestamp group.
In the present embodiment, the corresponding state group of every metadata includes the metadata in described two metadata feature collection Corresponding data mode in conjunction, the corresponding timestamp group of every metadata include that the metadata is special in described two metadata Corresponding data time stamp in collection conjunction.Wherein, the identity according to every metadata is from two found The corresponding state group of every metadata and timestamp group are extracted in metadata feature set, comprising:
In the two metadata feature set found, this yuan is extracted according to the identity of every metadata respectively Metadata feature of the data in corresponding metadata feature set, wherein the metadata feature includes the identity of corresponding metadata Mark, data mode and data time stamp;
Identical two metadata features of identity are subjected to data preparation, obtain metadata corresponding with identity State group and timestamp group at described two metadata feature set.
Step S240, according to two data time stamps of each metadata in correspondent time group, by each metadata Two data modes in corresponding states group compare, and identify each metadata in the first metadata according to comparing result Changing condition between version and the second metadata version.
In the present embodiment, when to obtain every metadata corresponding with the first metadata version and for the calculating equipment 10 When the state group and timestamp group of binary data version match, the calculating equipment 10 is according to every metadata in correspondent time Two data time stamps in group compare two data modes of the same metadata in corresponding states group, with root Variation of this metadata between first metadata version and second metadata version is identified according to comparing result Situation obtains changing condition of each metadata between first metadata version and second metadata version, from And realize that computing resource consumes metadata version comparison process low and that comparison is high-efficient, avoids the operation to other applications It impacts.
Optionally, in the present embodiment, it is described according to comparing result identify each metadata the first metadata version with The step of changing condition between second metadata version, comprising:
For every metadata, if comparing result be the metadata with the relatively small data in described two data time stamps The corresponding data mode of timestamp is newly-increased state or deletes state, and the metadata in described two data time stamps The corresponding data mode of larger data timestamp is modification state, then determines the metadata in first metadata version and institute It states and is modified between the second metadata version;
If comparing result be the metadata with the number corresponding compared with small data timestamp in described two data time stamps One of newly-increased state, modification state and deletion state according to state, and the metadata with described two data time stamps In the corresponding data mode of larger data timestamp be deletion state, then determine the metadata in first metadata version It is deleted between second metadata version;
If comparing result be the metadata with the number corresponding compared with small data timestamp in described two data time stamps According to state be deletion state or modification state, and the metadata with the larger data timestamp in described two data time stamps Corresponding data mode is newly-increased state, then determines the metadata in first metadata version and the second metadata version It is increased newly between this.
Optionally, in the present embodiment, it is described according to comparing result identify each metadata the first metadata version with The step of changing condition between second metadata version, further includes:
If comparing result is identical for two data modes of the metadata in corresponding states group, and is not deletion shape State then determines that the metadata remains unchanged between first metadata version and second metadata version.
Referring to figure 3., be metadata version control methods provided by the embodiments of the present application flow diagram two.At this Apply in embodiment, the metadata version control methods can also include step S250.
Step S250, when identify every metadata first metadata version and second metadata version it Between changing condition after, by each metadata and the data in first metadata version and second metadata version The corresponding data content for being incremented storage of the biggish metadata version of timestamp is shown.
In the present embodiment, when calculating equipment 10 obtains needing every metadata of version comparison in first metadata After changing condition between version and second metadata version, it is described calculate equipment 10 can by each metadata with it is described The biggish metadata version of data time stamp in first metadata version and second metadata version is corresponding to be incremented The data content of storage is shown, in order to which data administer the variation that administrative staff are directly observed specific content metadata Situation.
Referring to figure 4., be metadata version control methods provided by the embodiments of the present application flow diagram three.At this Apply in embodiment, the metadata version control methods further includes step S260, step S270 and step S280.
Step S260, when needing to store the collection of metadata currently got, according to current meta data set In each metadata data mode in the metadata feature set recorded recently of data content and each metadata, determine Data mode of each metadata at current meta data set out.
In the present embodiment, the equipment 10 that calculates is getting member corresponding to the metadata version that currently needs to store When data acquisition system, the calculating equipment 10 is by according to the data content of every metadata in current meta data set, and its most Data mode in the metadata feature set of the metadata version closely recorded determines every first number in current meta data set According to data mode.
Optionally, the data content and each metadata according to each metadata in current meta data set is nearest Data mode in the metadata feature set of record determines data mode of each metadata at current meta data set The step of, comprising:
For every metadata in current meta data set, if the metadata is in the metadata feature set recorded recently Data mode be newly-increased state, modification one of state and deletion state, and the metadata is in current meta data set Data content be sky, then determine data mode of the metadata at current meta data set for deletion state;
If data mode of the metadata in the metadata feature set recorded recently is deletion state, and the metadata Data content in current meta data set is not sky, then determines data mode of the metadata at current meta data set To increase state newly;
If data mode of the metadata in the metadata feature set recorded recently is newly-increased state or modifies state, And data content of the metadata in current meta data set is not sky, then by the metadata in current meta data set The data content of data content and the metadata in collection of metadata corresponding with the metadata feature set recorded recently into Row comparison;
When comparing result is that data content is identical, data mode of the metadata at current meta data set is determined, It is identical as data mode of the metadata in the metadata feature set recorded recently;
When comparing result is data content difference, determine that data mode of the metadata at current meta data set is Modification state.
Wherein, the data mode when certain metadata in the metadata feature set recorded recently is newly-increased state or repairs Change state, and when data content of the metadata in current meta data set is not sky, the calculating equipment 10 was by should Metadata data content corresponding to the metadata feature set recorded recently, with its data in current meta data set Content compares, to determine data mode of the metadata at current meta data set by comparing result.If this yuan The corresponding data content comparing result of data is that data content is identical, then determines number of the metadata at current meta data set It is identical as data mode of the metadata in the metadata feature set recorded recently according to state;If the metadata is corresponding Data content comparing result is that data content is different, then determines that data mode of the metadata at current meta data set is to repair Change state.
Step S270, will be in the data of corresponding metadata according to the data mode of each metadata in current meta data set Hold and carries out increment storage.
In the present embodiment, calculating equipment 10 data mode of certain metadata in current meta data set is new When increasing state, the calculating equipment 10 can directly be stored the current data content of the metadata;The calculating equipment 10 When the data mode of certain metadata is deletion state in current meta data set, the calculating equipment 10 can be directly by this yuan The current data content of data saves as sky;The data shape for calculating certain metadata in current meta data set of equipment 10 When state is modification state, the equipment 10 that calculates is by the data content by the metadata in current meta data set, with it Data content in the collection of metadata of recent release compares, and carries out increment for specific data content difference and deposit Storage.
Step S280 generates version number corresponding with current meta data set, according to the version number of generation and currently The corresponding data mode of each metadata, identity and data time stamp, generate and record corresponding member in collection of metadata Data characteristics set.
In the present embodiment, the calculating equipment 10 is generating corresponding metadata feature collection for current meta data set When conjunction, which can generate version number corresponding with current meta data set, and according to each in current meta data set Identity, data mode and the data time stamp of metadata, generation includes the right with current version number of every metadata The metadata feature set of identity, data mode and the data time stamp answered.
It referring to figure 5., is one of the block diagram of metadata version comparison device 100 provided by the embodiments of the present application. In the embodiment of the present application, the metadata version comparison device 100 is looked into including comparison command analysis module 110, characteristic set Look for module 120, contrast characteristic's extraction module 130 and Characteristic Contrast identification module 140.
The comparison command analysis module 110 refers to for obtaining metadata version comparison instruction, and to version comparison Order is parsed, and the first metadata version and the respective version number of the second metadata version are obtained.
In the present embodiment, the comparison command analysis module 110 can execute the step S210 in Fig. 2, specifically hold Row process can refer to above to the detailed description of step S210.
The characteristic set searching module 120, for according to first metadata version and the second metadata version This respective version number, searches two corresponding metadata feature set of version number.
In the present embodiment, the metadata feature set includes collection of metadata of the every metadata in corresponding version number In identity, data mode and data time stamp.The characteristic set searching module 120 can execute the step in Fig. 2 S220, specific implementation procedure can refer to above to the detailed description of step S220.
Contrast characteristic's extraction module 130, for according to the identity of every metadata from two members found The corresponding state group of each metadata and timestamp group are extracted in data characteristics set.
In the present embodiment, the corresponding state group of every metadata includes the metadata in described two metadata feature collection Corresponding data mode in conjunction, the corresponding timestamp group of every metadata include that the metadata is special in described two metadata Corresponding data time stamp in collection conjunction.Contrast characteristic's extraction module 130 can execute the step S230 in Fig. 2, Specific implementation procedure can refer to above to the detailed description of step S230.
The Characteristic Contrast identification module 140, for two data according to each metadata in correspondent time group Timestamp compares two data modes of each metadata in corresponding states group, and is identified respectively according to comparing result Changing condition of the metadata between the first metadata version and the second metadata version.
In the present embodiment, the Characteristic Contrast identification module 140 can execute the step S240 in Fig. 2, specifically hold Row process can refer to above to the detailed description of step S240.
Fig. 6 is please referred to, is the two of the block diagram of metadata version comparison device 100 provided by the embodiments of the present application. In the embodiment of the present application, the metadata version comparison device 100 further includes data content display module 150.
The data content display module 150, for when identify every metadata first metadata version with After changing condition between second metadata version, by each article of metadata and first metadata version and described The corresponding data content for being incremented storage of the biggish metadata version of data time stamp in binary data version is shown.
In the present embodiment, the data content display module 150 can execute the step S250 in Fig. 3, specifically hold Row process can refer to above to the detailed description of step S250.
Fig. 7 is please referred to, is the three of the block diagram of metadata version comparison device 100 provided by the embodiments of the present application. In the embodiment of the present application, the metadata version comparison device 100 can also include data mode determining module 160, increment Storage regulation module 170 and characteristic set generation module 180.
The data mode determining module 160, for when need the collection of metadata currently got is stored when, According to the data content of each metadata in current meta data set and each metadata in the metadata feature collection recorded recently Data mode in conjunction determines data mode of each metadata at current meta data set.
In the present embodiment, the data mode determining module 160 can execute the step S260 in Fig. 4, specifically hold Row process can refer to above to the detailed description of step S260.
The increment storage regulation module 170, for the data mode according to each metadata in current meta data set The data content of corresponding metadata is subjected to increment storage.
In the present embodiment, the increment storage regulation module 170 can execute the step S270 in Fig. 4, specifically hold Row process can refer to above to the detailed description of step S270.
The characteristic set generation module 180, for generating version number corresponding with current meta data set, according to generation The version number and current meta data set in the corresponding data mode of each metadata, identity and data time stamp, It generates and records corresponding metadata feature set.
In the present embodiment, the characteristic set generation module 180 can execute the step S280 in Fig. 4, specifically hold Row process can refer to above to the detailed description of step S280.
In conclusion in metadata version control methods provided by the present application and device, the application is by receiving Metadata version comparison instruction parsed, obtain the first metadata version and the respective version number of the second metadata version, The corresponding metadata feature set of Liang Ge version number is then searched, and extracts every metadata in two metadata features Corresponding state group and timestamp group in set, finally two data time according to each metadata in correspondent time group Stamp, two data modes of each metadata in corresponding states group is compared, to identify each item according to comparing result Changing condition of the metadata between first metadata version and second metadata version, to realize computing resource Metadata version comparison process low and that comparison is high-efficient is consumed, avoids impacting the operation of other applications.
The above, the only various embodiments of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, it is made readily occur in modification variation or Equivalent replacement should all cover within the scope of protection of this application.

Claims (10)

1. a kind of metadata version control methods, which is characterized in that the described method includes:
Obtain metadata version comparison instruction, and to the version comparison instruction parse, obtain the first metadata version and The respective version number of second metadata version;
According to first metadata version and the respective version number of the second metadata version, two version numbers are searched Corresponding metadata feature set, wherein the metadata feature set includes member of the every metadata in corresponding version number Identity, data mode and data time stamp in data acquisition system;
Each metadata pair is extracted from the two metadata feature set found according to the identity of every metadata The state group and timestamp group answered, wherein the state group includes that corresponding metadata is each in described two metadata feature set Self-corresponding data mode, the timestamp group include that corresponding metadata respectively corresponds in described two metadata feature set Data time stamp;
According to two data time stamps of each metadata in correspondent time group, by each metadata in corresponding states group Two data modes compare, and according to comparing result identify each metadata first metadata version with it is described Changing condition between second metadata version.
2. the method according to claim 1, wherein the identity according to every metadata is from finding Two metadata feature set in extract the corresponding state group of every metadata and timestamp group, comprising:
In the two metadata feature set found, the metadata is extracted according to the identity of every metadata respectively Metadata feature in corresponding metadata feature set, wherein the metadata feature includes the identity mark of corresponding metadata Knowledge, data mode and data time stamp;
Identical two metadata features of identity are subjected to data preparation, obtain metadata corresponding with identity in institute State the state group and timestamp group at two metadata feature set.
3. the method according to claim 1, wherein the data mode include newly-increased state, delete state and Modification state, it is described to identify each metadata in first metadata version and the second metadata version according to comparing result Changing condition between this, comprising:
For every metadata, if comparing result be the metadata with the relatively small data time in described two data time stamps Stabbing corresponding data mode is newly-increased state or deletes state, and the metadata with it is larger in described two data time stamps The corresponding data mode of data time stamp is modification state, then determines the metadata in first metadata version and described the It is modified between binary data version;
If comparing result is the data shape corresponding compared with small data timestamp in described two data time stamps of the metadata State is one of newly-increased state, modification state and deletion state, and the metadata in described two data time stamps The corresponding data mode of larger data timestamp is deletion state, then determines the metadata in first metadata version and institute It states and is deleted between the second metadata version;
If comparing result is the data shape corresponding compared with small data timestamp in described two data time stamps of the metadata State is deletion state or modification state, and the metadata is corresponding with the larger data timestamp in described two data time stamps Data mode be newly-increased state, then determine the metadata first metadata version and second metadata version it Between increased newly.
4. according to the method described in claim 3, it is characterized in that, described identify each metadata described according to comparing result Changing condition between first metadata version and second metadata version, further includes:
If comparing result is identical for two data modes of the metadata in corresponding states group, and is not deletion state, then Determine that the metadata remains unchanged between first metadata version and second metadata version.
5. the method according to claim 1, wherein the method also includes:
When identifying changing condition of the every metadata between first metadata version and second metadata version Afterwards, by the biggish with the data time stamp in first metadata version and second metadata version of each metadata The corresponding data content for being incremented storage of metadata version is shown.
6. method described in any one of -5 according to claim 1, which is characterized in that the method also includes:
When needing to store the collection of metadata currently got, according to each metadata in current meta data set The data mode of data content and each metadata in the metadata feature set recorded recently determines that each metadata exists Data mode at current meta data set;
The data content of corresponding metadata increment is carried out according to the data mode of each metadata in current meta data set to deposit Storage;
Version number corresponding with current meta data set is generated, according to each in the version number of generation and current meta data set The corresponding data mode of metadata, identity and data time stamp, generate and record corresponding metadata feature set.
7. according to the method described in claim 6, it is characterized in that, described according to each metadata in current meta data set The data mode of data content and each metadata in the metadata feature set recorded recently determines that each metadata exists Data mode at current meta data set, comprising:
For every metadata in current meta data set, if number of the metadata in the metadata feature set recorded recently It is newly-increased state according to state, modifies one of state and deletion state, and number of the metadata in current meta data set It is sky according to content, then determines data mode of the metadata at current meta data set for deletion state;
If data mode of the metadata in the metadata feature set recorded recently is deletion state, and the metadata is being worked as Data content in preceding collection of metadata is not sky, then determines that data mode of the metadata at current meta data set is new Increasing state;
If data mode of the metadata in the metadata feature set recorded recently is newly-increased state or modification state, and is somebody's turn to do Data content of the metadata in current meta data set is not sky, then the data by the metadata in current meta data set The data content of content and the metadata in collection of metadata corresponding with the metadata feature set recorded recently carries out pair Than;
When comparing result is that data content is identical, data mode of the metadata at current meta data set is determined, with this Data mode of the metadata in the metadata feature set recorded recently is identical;
When comparing result is data content difference, determine data mode of the metadata at current meta data set for modification State.
8. a kind of metadata version compares device, which is characterized in that described device includes:
Command analysis module is compared, is parsed for obtaining metadata version comparison instruction, and to version comparison instruction, Obtain the first metadata version and the respective version number of the second metadata version;
Characteristic set searching module, for according to first metadata version and the respective version of the second metadata version Number, two corresponding metadata feature set of version number are searched, wherein the metadata feature set includes every Identity, data mode and data time stamp of the metadata in the collection of metadata of corresponding version number;
Contrast characteristic's extraction module, for according to the identity of every metadata from the two metadata feature set found In extract the corresponding state group of each metadata and timestamp group, wherein the state group includes corresponding metadata described two Corresponding data mode in a metadata feature set, the timestamp group include corresponding metadata in described two first numbers According to data time stamp corresponding in characteristic set;
Characteristic Contrast identification module will be each for two data time stamps according to each metadata in correspondent time group Two data modes of the metadata in corresponding states group compare, and identify each metadata in institute according to comparing result State the changing condition between the first metadata version and second metadata version.
9. device according to claim 8, which is characterized in that described device further include:
Data content display module identifies every metadata in first metadata version and the binary number for working as After the changing condition between version, by each metadata and first metadata version and second metadata version In the corresponding data content for being incremented storage of the biggish metadata version of data time stamp shown.
10. device according to claim 8 or claim 9, which is characterized in that described device further include:
Data mode determining module, for when need the collection of metadata currently got is stored when, according to current member Data of the data content and each metadata of each metadata in the metadata feature set recorded recently in data acquisition system State determines data mode of each metadata at current meta data set;
Increment storage regulation module, for metadata will to be corresponded to according to the data mode of each metadata in current meta data set Data content carry out increment storage;
Characteristic set generation module, for generating version number corresponding with current meta data set, according to the version of generation Number and current meta data set in the corresponding data mode of each metadata, identity and data time stamp, generate and record Corresponding metadata feature set.
CN201910305308.XA 2019-04-16 2019-04-16 Metadata version comparison method and device Active CN110018845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305308.XA CN110018845B (en) 2019-04-16 2019-04-16 Metadata version comparison method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305308.XA CN110018845B (en) 2019-04-16 2019-04-16 Metadata version comparison method and device

Publications (2)

Publication Number Publication Date
CN110018845A true CN110018845A (en) 2019-07-16
CN110018845B CN110018845B (en) 2020-09-18

Family

ID=67191520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305308.XA Active CN110018845B (en) 2019-04-16 2019-04-16 Metadata version comparison method and device

Country Status (1)

Country Link
CN (1) CN110018845B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427384A (en) * 2019-07-30 2019-11-08 北京明略软件系统有限公司 The sending method and device of prompt information, storage medium, electronic device
CN111427966A (en) * 2020-06-10 2020-07-17 腾讯科技(深圳)有限公司 Database transaction processing method and device and server
CN111782909A (en) * 2020-07-01 2020-10-16 中国银行股份有限公司 Method and device for recording metadata, electronic equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143284A1 (en) * 2012-11-20 2014-05-22 Gerard McCaffrey Zero downtime schema evolution
CN105893512A (en) * 2016-03-30 2016-08-24 北京忆唐创元文化有限公司 Any version compatible data structure access method and device based on metadata
CN107943930A (en) * 2017-11-22 2018-04-20 用友金融信息技术股份有限公司 Dynamic list generation method, device, computer equipment and readable storage medium storing program for executing
CN109144980A (en) * 2018-08-21 2019-01-04 成都四方伟业软件股份有限公司 Metadata management method, device and electronic equipment
CN109241358A (en) * 2018-08-14 2019-01-18 中国平安财产保险股份有限公司 Metadata management method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143284A1 (en) * 2012-11-20 2014-05-22 Gerard McCaffrey Zero downtime schema evolution
CN105893512A (en) * 2016-03-30 2016-08-24 北京忆唐创元文化有限公司 Any version compatible data structure access method and device based on metadata
CN107943930A (en) * 2017-11-22 2018-04-20 用友金融信息技术股份有限公司 Dynamic list generation method, device, computer equipment and readable storage medium storing program for executing
CN109241358A (en) * 2018-08-14 2019-01-18 中国平安财产保险股份有限公司 Metadata management method, device, computer equipment and storage medium
CN109144980A (en) * 2018-08-21 2019-01-04 成都四方伟业软件股份有限公司 Metadata management method, device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427384A (en) * 2019-07-30 2019-11-08 北京明略软件系统有限公司 The sending method and device of prompt information, storage medium, electronic device
CN111427966A (en) * 2020-06-10 2020-07-17 腾讯科技(深圳)有限公司 Database transaction processing method and device and server
CN111782909A (en) * 2020-07-01 2020-10-16 中国银行股份有限公司 Method and device for recording metadata, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN110018845B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
TWI729472B (en) Method, device and server for determining feature words
CN109254733B (en) Method, device and system for storing data
CN102227725B (en) System and method for matching entities
CN110018845A (en) Metadata version control methods and device
CN110245145A (en) Structure synchronization method and apparatus of the relevant database to Hadoop database
CN110399377A (en) Optimization method, device, electronic equipment and the computer readable storage medium of SQL
CN112364014B (en) Data query method, device, server and storage medium
CN107357794B (en) Method and device for optimizing data storage structure of key value database
CN114356927A (en) Data storage method and device, computer equipment and storage medium
CN115023697A (en) Data query method and device and server
CN110222046B (en) List data processing method, device, server and storage medium
CN101377816B (en) Method and system for matching paralleling multiple-mode of matching regulation including displacement indication symbol
CN109885535A (en) A kind of method and relevant apparatus of file storage
CN101483668A (en) Network storage and access method, device and system for hot spot data
CN111125226B (en) Configuration data acquisition method and device
CN110888739B (en) Distributed processing method and device for delayed tasks
CN111949720A (en) Data analysis method based on big data and artificial intelligence and cloud data server
CN112069175A (en) Data query method and device and electronic equipment
CN111507400A (en) Application classification method and device, electronic equipment and storage medium
CN101677318A (en) Parallel multi-mode matching method and system with matching rules containing time indicator
CN111046246A (en) Label updating method and device and distributed storage system
CN106250440B (en) Document management method and device
CN113760907A (en) Data uniqueness identification method in database
CN113177157B (en) Label separation method, device, equipment and storage medium
CN110191026B (en) Distributed service link monitoring method and device

Legal Events

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