CN110245149A - The method for edition management and device of metadata - Google Patents
The method for edition management and device of metadata Download PDFInfo
- Publication number
- CN110245149A CN110245149A CN201910557277.7A CN201910557277A CN110245149A CN 110245149 A CN110245149 A CN 110245149A CN 201910557277 A CN201910557277 A CN 201910557277A CN 110245149 A CN110245149 A CN 110245149A
- Authority
- CN
- China
- Prior art keywords
- metadata
- version number
- specified
- change operation
- global version
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/219—Managing data history or versioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (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 present invention provides a kind of method for edition management of metadata and device, the above method includes: the global version number that metadata management system is arranged, wherein the overall situation version number is used to identify the whole modification information of all metadata in the metadata management system;Change operation is executed to the specified metadata in metadata management system, wherein all metadata include global version number's copy and local version number;According to the change operation adjustment global version number;At least one of is adjusted according to the type of the change operation: global version number's copy of specified metadata and the local version number of the specified metadata;Local version number is used to identify the modification information of offspring's metadata of the specified metadata.By the invention it is possible to solve the problems, such as that the version management mode efficiency of metadata is lower, and then the efficiency for improving the version management to metadata is achieved the effect that.
Description
Technical field
The present invention relates to the communications fields, in particular to the method for edition management and device of a kind of metadata.
Background technique
In information system, collection terminal can acquire metadata from metadata management system.With information-based development,
Metadata scale in metadata management system is increasing, and the metadata in metadata management system can also become
Change.However, in the related art, can not the version to metadata effectively managed, and the change of metadata can not be traced
History.
For the problems such as in the related technology, the version management mode efficiency of metadata is lower, effective technology is not yet proposed
Scheme.
Summary of the invention
The embodiment of the invention provides a kind of method for edition management of metadata and devices, at least to solve in the related technology
The lower problem of the version management mode efficiency of metadata.
According to one embodiment of present invention, a kind of method for edition management of metadata is provided, comprising: setting metadata
The global version number of management system, wherein the overall situation version number is for identifying all member numbers in the metadata management system
According to whole modification information;Change operation is executed to the specified metadata in the metadata management system, wherein described all
Metadata includes global version number's copy and local version number;According to the change operation adjustment global version number;
At least one of is adjusted according to the type of the change operation: global version number's copy of the specified metadata and described
The local version number of specified metadata;Wherein, the local version number is used to identify offspring's metadata of the specified metadata
Modification information.
Optionally, before or after the global version number according to change operation adjustment, the method is also
It include: to record at least following information: all metadata and the institute in the metadata management system using graph data structure
There is offspring's metadata of metadata;To change operation performed by all metadata;The global version of all metadata
The local version number of this number copy and all metadata;Global version number's pair of offspring's metadata of all metadata
The local version number of offspring's metadata of this and all metadata;Indicator, wherein the indicator is used to indicate specified
Change operation, and connect metadata and carry out offspring's metadata after specified change operation to the metadata.
Optionally, in the case where the change operation is newly-increased operation, the newly-increased operation is used to indicate described in generation
Offspring's metadata of specified metadata;Wherein, described according to the change operation adjustment global version number includes: to described
Global version number is updated according to the first predetermined way;It is described according to the adjustment of the type of the change operation it is following at least it
One: global version number's copy of the specified metadata and the local version number of the specified metadata include: will be after update
Global version number generated as global version number's copy of the specified metadata and by the newly-increased operation described in
Global version number's copy of offspring's metadata, and the local version number of the specified metadata is adjusted to specified first number
According to all offspring's metadata global version number's copy in maximum value.
Optionally, described according to change operation adjustment in the case where the change operation is to update operation
Global version number includes: to be updated to the global version number according to the first predetermined way;It is described according to the change operation
Type adjust at least one of: global version number's copy of the specified metadata and the part of the specified metadata
Version number includes: to adjust global version number's copy of the specified metadata and executing the member for updating and obtaining after operation
Global version number's copy of data is updated global version number, and forbids the local version to the specified metadata
It number is updated.
Optionally, described according to the change operation adjustment global version number includes: in each pair of metadata pipe
In the case that metadata in reason system executes the primary change operation, the global version number is once updated,
In, in the case where the same time executing change operation to multiple metadata in the metadata management system, only to described
Global version number is once updated.
According to another embodiment of the invention, a kind of edition management device of metadata is provided, comprising: setting mould
Block, for the global version number of metadata management system to be arranged, wherein the overall situation version number is for identifying the metadata pipe
The whole modification information of all metadata in reason system;Module is changed, for the specified member in the metadata management system
Data execute change operation, wherein all metadata include global version number's copy and local version number;First adjusts
Mould preparation block, for according to the change operation adjustment global version number;Second adjustment module, for being grasped according to the change
The type of work adjusts at least one of: global version number's copy of the specified metadata and the office of the specified metadata
Version number, portion;Wherein, the local version number is used to identify the modification information of offspring's metadata of the specified metadata.
Optionally, described device further include: logging modle, for adjusting the overall situation according to the change operation described
Before or after version number, at least following information: all members in the metadata management system is recorded using graph data structure
Offspring's metadata of data and all metadata;To change operation performed by all metadata;All members
Global version number's copy of data and the local version number of all metadata;Offspring's metadata of all metadata
The local version number of offspring's metadata of global version number's copy and all metadata;Indicator, wherein the indicator
It is used to indicate specified change operation, and connects metadata and carries out offspring's member after specified change operation to the metadata
Data.
Optionally, in the case where the change operation is newly-increased operation, the newly-increased operation is used to indicate described in generation
Offspring's metadata of specified metadata, wherein described according to the change operation adjustment global version number includes: to described
Global version number is updated according to the first predetermined way;The second adjustment module, including the first adjustment unit, being used for will more
What the global version number after new generated as global version number's copy of the specified metadata and by the newly-increased operation
Global version number's copy of offspring's metadata, and the local version number of the specified metadata is adjusted to described specified
Maximum value in global version number's copy of all offspring's metadata of metadata.
Optionally, described according to change operation adjustment in the case where the change operation is to update operation
Global version number includes: to be updated to the global version number according to the first predetermined way;The second adjustment module, including
Second adjustment unit, for adjusting global version number's copy of the specified metadata and being obtained after executing the update operation
To global version number's copy of metadata be updated global version number, and forbid the office to the specified metadata
Version number, portion is updated.
Optionally, the first adjustment module, for adjusting the global version number in the following manner: each pair of described
In the case that metadata in metadata management system executes the primary change operation, the global version number is carried out primary
It updates, wherein in the case where the same time executing change operation to multiple metadata in the metadata management system, only
The global version number is once updated.
Through the invention, the global version number of metadata management system is set, wherein the overall situation version number is for identifying
The whole modification information of all metadata in the metadata management system;To specified first number in the metadata management system
According to execution change operation, wherein all metadata include global version number's copy and local version number;According to described
The change operation adjustment global version number;At least one of: the specified member is adjusted according to the type of the change operation
Global version number's copy of data and the local version number of the specified metadata;Wherein, the local version number is for marking
Know the modification information of offspring's metadata of the specified metadata.Therefore, it can solve the version management mode efficiency of metadata
Lower problem improves the efficiency of the version management to metadata.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for edition management of metadata according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of the method for edition management of metadata according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of the edition management device of metadata according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
The embodiment of the invention provides a kind of information storage means, Fig. 1 is the metadata version according to the embodiment of the present invention
The flow chart of management method, as shown in Figure 1, comprising:
The global version number of metadata management system is arranged in step S102, wherein the overall situation version number is for identifying institute
State the whole modification information of all metadata in metadata management system;
Step S104 executes change operation to the specified metadata in the metadata management system, wherein described all
Metadata includes global version number's copy and local version number;
Step S106, according to the change operation adjustment global version number;
Step S108 adjusts at least one of: the overall situation of the specified metadata according to the type of the change operation
The local version number of version number's copy and the specified metadata;Wherein, the local version number is described specified for identifying
The modification information of offspring's metadata of metadata.
Through the invention, the global version number of metadata management system is set, wherein the overall situation version number is for identifying
The whole modification information of all metadata in the metadata management system;To specified first number in the metadata management system
According to execution change operation, wherein all metadata include global version number's copy and local version number;According to described
The change operation adjustment global version number;At least one of: the specified member is adjusted according to the type of the change operation
Global version number's copy of data and the local version number of the specified metadata;Wherein, the local version number is for marking
Know the modification information of offspring's metadata of the specified metadata.Therefore, it can solve the version management mode efficiency of metadata
Lower problem improves the efficiency of the version management to metadata.
In an alternative embodiment of the invention, before the global version number according to change operation adjustment
Or later, the method also includes: record at least following information: the institute in the metadata management system using graph data structure
There is offspring's metadata of metadata and all metadata;To change operation performed by all metadata;The institute
There are global version number's copy of metadata and the local version number of all metadata;Offspring's member number of all metadata
According to global version number's copy and all metadata offspring's metadata local version number;Indicator, wherein the finger
Show that symbol is used to indicate specified change operation, and after connecting metadata and carrying out after specified change operation to the metadata
For metadata.
In an alternative embodiment of the invention, in the case where the change operation is newly-increased operation, the newly-increased behaviour
Act on offspring's metadata that instruction generates the specified metadata;Wherein, described described complete according to change operation adjustment
Version number, office includes: to be updated to the global version number according to the first predetermined way;It is described according to the change operation
Type adjusts at least one of: global version number's copy of the specified metadata and the local version of the specified metadata
This number includes: using updated global version number as global version number's copy of the specified metadata and by described new
Increase the global version number's copy for offspring's metadata that operation generates, and by local version number's tune of the specified metadata
Maximum value in global version number's copy of whole all offspring's metadata for the specified metadata.
It is described according to institute in the case where the change operation is to update operation in an alternative embodiment of the invention
Stating the change operation adjustment global version number includes: to be updated to the global version number according to the first predetermined way;Institute
It states and at least one of: global version number's copy of the specified metadata and institute is adjusted according to the type of the change operation
The local version number for stating specified metadata includes: to adjust global version number's copy of the specified metadata and described in the execution
The global version number's copy for updating the metadata obtained after operation is updated global version number, and is forbidden to the finger
The local version number for determining metadata is updated.
In an alternative embodiment of the invention, the specified metadata in the metadata management system executes change
More operation includes: specified offspring's metadata in the offspring's metadata for delete the specified metadata, wherein described according to
The change operation adjustment global version number includes: to be updated to the global version number according to the first predetermined way;It is described
At least one of is adjusted according to the type of the change operation: global version number's copy of the specified metadata and described
The local version number of specified metadata includes: that adjust global version number's copy of the specified metadata be updated overall situation version
This number, and the local version number of the specified metadata is adjusted to the complete of current all offspring's metadata of specified metadata
Maximum value in version number, office copy.
It is described to include: according to the change operation adjustment global version number in an alternative embodiment of the invention
In the case that metadata in each pair of metadata management system executes the primary change operation, to the global version
It number is once updated, wherein change operation is executed to multiple metadata in the metadata management system in the same time
In the case where, only the global version number is once updated.
Optionally, global version number can be long, and be an overall situation within the scope of metadata management system
Property variable.
Optionally, described be updated to the global version number according to the first predetermined way includes: to global version number
Add 1, using the value arrived as updated global version number;The metadata in each pair of metadata management system executes
In the case where the primary change operation, carrying out primary update to the global version number includes: to add 1 to global version number, will
The value arrived is as updated global version number.
In the above embodiment of the invention, specified metadata can be any one first number in metadata management system
According to, and be any one metadata definition one global version number's copy and part version in metadata management system
Number, i.e., each metadata in metadata management system includes global version number's copy and local version number.Offspring
Metadata can be with the specified metadata there are the derivative metadata of incidence relation, for example, offspring's metadata can be pair
Metadata executes the new metadata generated after newly-increased operation.
It is illustrated below in conjunction with method for edition management row of the example to above-mentioned metadata, but is not used in and limits this hair
The technical solution of bright embodiment, the exemplary technical solution of the present invention are as follows:
Step 1, global version number (Global Version Number, GVN) is defined.In embodiments of the present invention, GVN
It can be long type, and the variable of overall importance in a system scope.Optionally, above system can be metadata pipe
Reason system, i.e. GVN can be a variable of overall importance in metadata management system.
Step 2, a GVN pair is defined for each of metadata management system metadata object (also known as metadata)
This.When changing metadata object, the GVN copy of the metadata object is updated according to the type of change operation.
Step 3, offspring's maximum version number (Descendant is defined for each of system metadata object
Version Number, DVN, i.e., the local version number in above-described embodiment).DVN is a locality variable, each first number
According to oneself DVN has all been separately maintained, it is referred in all offspring's metadata of the metadata object, the maximum of GVN copy
Value.For example, there are two offspring's metadata B, C for metadata A tool, and the GVN copy of offspring's metadata B, C is 3,4 respectively, then first
The DVN of data A is the maximum value of the GVN copy of offspring's metadata B, C, and the DVN of metadata is 4.
Step 4, GVN, metadata are adjusted (when executing change operation to metadata) when metadata object changes
The GVN copy of object and the value of DVN.
In embodiments of the present invention, can to metadata object execute change operation, the change operation can be with down toward
It is one of few: newly-increased (insert), to delete (delete), update (update).After performing change operation to metadata object,
The metadata changed is identified using metadata evolution label.In embodiments of the present invention, metadata tag includes:
It disappears (faded) and has changed (altered), wherein disappearing indicates that corresponding metadata has been deleted, and has changed expression and corresponds to
Metadata be updated.Table 1 may refer to the detailed description of change operation, table 1 is metadata according to an embodiment of the present invention
Change operation accords with table, wherein each operator corresponds to a kind of change operation.The detailed description of metadata table more label can be joined
2 are shown in Table, table 2 is metadata evolution label list according to an embodiment of the present invention.
Table 1
Names of operators | Explanation |
insert | Increase metadata newly under metadata |
delete | Delete metadata |
update | Update metadata information |
Table 2
Metadata tag title | Explanation |
faded | Identify deleted metadata |
altered | The information of metadata has changed |
In the above embodiment of the invention, the metadata in record metadata management system is recorded using graph data structure
And when offspring's metadata, it can also be indicated in the graph data structure using operator and change performed by metadata is grasped
Make, and indicates the metadata changed and offspring's metadata respectively using metadata tag.
In the above embodiment of the invention, when executing newly-increased operation to metadata object, after GVN adds 1 to obtain update
GVN, and be updated using GVN copy of the updated GVN to the above-mentioned metadata object changed, i.e., by this yuan of number
According to GVN copy be set as the value of current GVN.
In one embodiment of the invention, if a certain batch metadata changes simultaneously, the value of GVN only be will increase
Once, that is to say, that the metadata after these changes is owned by identical GVN copy.
Optionally, whether offspring's metadata that the DVN of metadata can be used for quickly detecting the metadata is changed.
When offspring's metadata is not present in a certain metadata object, the DVN of the metadata object is default value, if it exists offspring's member number
According to then using the maximum value of GVN copy in all offspring's metadata of the metadata object as the DVN of the metadata object.
In one embodiment of the invention, all members changed can be traced by above-mentioned three kinds of action identifiers
Data, and metadata tag can be used, when user carries out full library inquiry, shield the metadata for disappearing or having changed.Fig. 2
It is the schematic diagram of the method for edition management of metadata according to an embodiment of the present invention, as shown in Fig. 2, indicating in graph data structure
Out to the change operations such as newly-increased performed by metadata, deletion, the GVN copy and DVN of metadata, and use metadata tag
The metadata changed is indicated, for example, " disappearance " is used to indicate the metadata being deleted, " variation " is used to mark
The metadata that change (having updated) occurs for information is shown.
By the GVN copy and DVN of each metadata, the efficient management to metadata version may be implemented.In this hair
In bright one embodiment, the GVN copy that can be held according to each metadata, only need to carry out a condition query (for example,
Input the range of GVN copy), so that it may the metadata for getting those generation changes between any old version passes through GVN
Copy and DVN can recorde the change history (for example, newly-increased metadata, deletion metadata, more new metadata) of metadata, thus
The change history of source can be traced, it is synchronous with the data of source convenient for subsequent acquisition end, it is ensured that the number of collection terminal and source
According to consistency.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of edition management device of metadata is additionally provided in the present embodiment, and the device is for realizing above-described embodiment
And preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " module " may be implemented to make a reservation for
The combination of the software and/or hardware of function.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 2 is the structural block diagram of the edition management device of metadata according to an embodiment of the present invention, as shown in Fig. 2, the dress
It sets and includes:
Setup module 202, for the global version number of metadata management system to be arranged, wherein the overall situation version number uses
In the whole modification information for identifying all metadata in the metadata management system;
Module 204 is changed, for executing change operation to the specified metadata in the metadata management system, wherein
All metadata include global version number's copy and local version number;
The first adjustment module 206, for according to the change operation adjustment global version number;
Second adjustment module 208, for adjusting at least one of: the specified member according to the type of the change operation
Global version number's copy of data and the local version number of the specified metadata;Wherein, the local version number is for marking
Know the modification information of offspring's metadata of the specified metadata.
Through the invention, the global version number of metadata management system is set, wherein the overall situation version number is for identifying
The whole modification information of all metadata in the metadata management system;To specified first number in the metadata management system
According to execution change operation, wherein all metadata include global version number's copy and local version number;According to described
The change operation adjustment global version number;At least one of: the specified member is adjusted according to the type of the change operation
Global version number's copy of data and the local version number of the specified metadata;Wherein, the local version number is for marking
Know the modification information of offspring's metadata of the specified metadata.Therefore, it can solve the version management mode efficiency of metadata
Lower problem improves the efficiency of the version management to metadata.
In an alternate embodiment of the present invention, described device further include:
Logging modle, for using before or after the global version number according to change operation adjustment
Graph data structure records at least following information: all metadata and all metadata in the metadata management system
Offspring's metadata;To change operation performed by all metadata;Global version number's copy of all metadata and
The local version number of all metadata;Global version number's copy of offspring's metadata of all metadata and the institute
There is the local version number of offspring's metadata of metadata;Indicator, wherein the indicator is used to indicate specified change behaviour
Make, and connects metadata and carry out offspring's metadata after specified change operation to the metadata.
In an alternate embodiment of the present invention, in the case where the change operation is newly-increased operation, the newly-increased operation
It is used to indicate the offspring's metadata for generating the specified metadata, wherein described that the overall situation is adjusted according to the change operation
Version number includes: to be updated to the global version number according to the first predetermined way;The second adjustment module, including first
Adjustment unit, for updated global version number as global version number's copy of the specified metadata and to be passed through institute
State the global version number's copy for offspring's metadata that newly-increased operation generates, and by the local version of the specified metadata
Maximum value in global version number's copy of number all offspring's metadata for being adjusted to the specified metadata.
It is described according in the case where the change operation is to update operation in an alternate embodiment of the present invention
The change operation adjustment global version number includes: to be updated to the global version number according to the first predetermined way;It is described
Second adjustment module, including second adjustment unit, for adjusting global version number's copy of the specified metadata and holding
The row global version number's copy of metadata obtained after operation that updates is updated global version number, and is forbidden pair
The local version number of the specified metadata is updated.
In an alternative embodiment of the invention, the specified metadata in the metadata management system executes change
More operation includes: specified offspring's metadata in the offspring's metadata for delete the specified metadata, wherein described according to
The change operation adjustment global version number includes: to be updated to the global version number according to the first predetermined way;It is described
At least one of is adjusted according to the type of the change operation: global version number's copy of the specified metadata and described
The local version number of specified metadata includes: that adjust global version number's copy of the specified metadata be updated overall situation version
This number, and the local version number of the specified metadata is adjusted to the complete of current all offspring's metadata of specified metadata
Maximum value in version number, office copy.
In an alternate embodiment of the present invention, the first adjustment module, for adjusting the overall situation in the following manner
Version number: in the case that the metadata in each pair of metadata management system executes the primary change operation, to described
Global version number is once updated, wherein is executed in the same time to multiple metadata in the metadata management system
In the case where change operation, only the global version number is once updated.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned
The method of any of the above-described is executed when program is run.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps
Sequence code:
The global version number of metadata management system is arranged in S1, wherein the overall situation version number is for identifying first number
According to the whole modification information of metadata all in management system;
S2 executes change operation to the specified metadata in the metadata management system, wherein all metadata
It include global version number's copy and local version number;
S3, according to the change operation adjustment global version number;
S4 adjusts at least one of: the global version number of the specified metadata according to the type of the change operation
The local version number of copy and the specified metadata;Wherein, the local version number is for identifying the specified metadata
Offspring's metadata modification information.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store program code such as disk, magnetic or disk.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
The global version number of metadata management system is arranged in S1, wherein the overall situation version number is for identifying first number
According to the whole modification information of metadata all in management system;
S2 executes change operation to the specified metadata in the metadata management system, wherein all metadata
It include global version number's copy and local version number;
S3, according to the change operation adjustment global version number;
S4 adjusts at least one of: the global version number of the specified metadata according to the type of the change operation
The local version number of copy and the specified metadata;Wherein, the local version number is for identifying the specified metadata
Offspring's metadata modification information.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method for edition management of metadata characterized by comprising
The global version number of metadata management system is set, wherein the overall situation version number is for identifying the metadata management
The whole modification information of all metadata in system;
Change operation is executed to the specified metadata in the metadata management system, wherein all metadata include
Global version number's copy and local version number;
According to the change operation adjustment global version number;
Adjust at least one of according to the type of the change operation: global version number's copy of the specified metadata and
The local version number of the specified metadata;Wherein, the local version number is used to identify offspring's member of the specified metadata
The modification information of data.
2. the method according to claim 1, wherein described according to the change operation adjustment global version
Before or after this number, the method also includes:
Graph data structure is used to record at least following information: all metadata in the metadata management system and described all
Offspring's metadata of metadata;To change operation performed by all metadata;The global version of all metadata
The local version number of number copy and all metadata;Global version number's copy of offspring's metadata of all metadata
With the local version number of offspring's metadata of all metadata;Indicator, wherein the indicator is used to indicate specified
Change operation, and connect metadata and carry out offspring's metadata after specified change operation to the metadata.
3. the method according to claim 1, wherein in the case where the change operation is newly-increased operation, institute
It states newly-increased operation and is used to indicate the offspring's metadata for generating the specified metadata;Wherein, described according to the change operation tune
The whole global version number includes: to be updated to the global version number according to the first predetermined way;
It is described that at least one of: global version number's copy of the specified metadata is adjusted according to the type of the change operation
And the local version number of the specified metadata includes:
Updated global version number as global version number's copy of the specified metadata and is passed through into the newly-increased behaviour
Make global version number's copy of the offspring's metadata generated, and the local version number of the specified metadata is adjusted to
Maximum value in global version number's copy of all offspring's metadata of the specified metadata.
4. the method according to claim 1, wherein the change operation be update operation in the case where, institute
Stating according to the change operation adjustment global version number includes: to carry out to the global version number according to the first predetermined way
It updates;
It is described that at least one of: global version number's copy of the specified metadata is adjusted according to the type of the change operation
And the local version number of the specified metadata includes:
It adjusts global version number's copy of the specified metadata and is executing the metadata for updating and obtaining after operation
Global version number's copy is updated global version number, and forbids carrying out the local version number of the specified metadata
It updates.
5. the method according to claim 1, wherein described according to the change operation adjustment global version
Number include:
In the case that metadata in each pair of metadata management system executes the primary change operation, to the overall situation
Version number is once updated, wherein executes change to multiple metadata in the metadata management system in the same time
In the case where operation, only the global version number is once updated.
6. a kind of edition management device of metadata characterized by comprising
Setup module, for the global version number of metadata management system to be arranged, wherein the overall situation version number is for identifying institute
State the whole modification information of all metadata in metadata management system;
Module is changed, for executing change operation to the specified metadata in the metadata management system, wherein described all
Metadata includes global version number's copy and local version number;
The first adjustment module, for according to the change operation adjustment global version number;
Second adjustment module, for adjusting at least one of according to the type of the change operation: the specified metadata
The local version number of global version number's copy and the specified metadata;Wherein, the local version number is described for identifying
The modification information of offspring's metadata of specified metadata.
7. device according to claim 6, which is characterized in that described device further include:
Logging modle, for using figure number before or after the global version number according to change operation adjustment
At least following information: the offspring of all metadata and all metadata in the metadata management system is recorded according to structure
Metadata;To change operation performed by all metadata;Global version number's copy of all metadata and described
The local version number of all metadata;Global version number's copy of offspring's metadata of all metadata and all members
The local version number of offspring's metadata of data;Indicator, wherein the indicator is used to indicate specified change operation, and
It connects metadata and carries out offspring's metadata after specified change operation to the metadata.
8. device according to claim 6, which is characterized in that in the case where the change operation is newly-increased operation, institute
It states newly-increased operation and is used to indicate the offspring's metadata for generating the specified metadata, wherein is described according to the change operation tune
The whole global version number includes: to be updated to the global version number according to the first predetermined way;
The second adjustment module, including the first adjustment unit, for using updated global version number as the specified member
Global version number's copy of global version number's copy of data and the offspring's metadata generated by the newly-increased operation,
And the local version number of the specified metadata is adjusted to the global version of all offspring's metadata of the specified metadata
Maximum value in this number copy.
9. device according to claim 6, which is characterized in that in the case where the change operation is to update operation, institute
Stating according to the change operation adjustment global version number includes: to carry out to the global version number according to the first predetermined way
It updates;
The second adjustment module, including second adjustment unit, for adjusting global version number's copy of the specified metadata
And global version number's copy of the metadata obtained after executing the update operation is updated global version number, with
And the local version number to the specified metadata is forbidden to be updated.
10. device according to claim 6, which is characterized in that the first adjustment module, for adjusting in the following manner
The whole global version number:
In the case that metadata in each pair of metadata management system executes the primary change operation, to the overall situation
Version number is once updated, wherein executes change to multiple metadata in the metadata management system in the same time
In the case where operation, only the global version number is once updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910557277.7A CN110245149B (en) | 2019-06-25 | 2019-06-25 | Metadata version management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910557277.7A CN110245149B (en) | 2019-06-25 | 2019-06-25 | Metadata version management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110245149A true CN110245149A (en) | 2019-09-17 |
CN110245149B CN110245149B (en) | 2021-09-17 |
Family
ID=67889531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910557277.7A Active CN110245149B (en) | 2019-06-25 | 2019-06-25 | Metadata version management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110245149B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879799A (en) * | 2019-11-15 | 2020-03-13 | 北京明略软件系统有限公司 | Method and apparatus for managing technical metadata |
CN112540970A (en) * | 2020-12-07 | 2021-03-23 | 航天信息股份有限公司 | Metadata blood relationship analysis method and system based on version management |
CN112579705A (en) * | 2019-09-27 | 2021-03-30 | 北京国双科技有限公司 | Metadata acquisition method and device, computer equipment and storage medium |
WO2021249207A1 (en) * | 2020-06-10 | 2021-12-16 | 腾讯科技(深圳)有限公司 | Database transaction processing method and apparatus, and server and storage medium |
CN114461614A (en) * | 2022-04-12 | 2022-05-10 | 北京安华金和科技有限公司 | Sensitive data identification processing method and system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050109059A (en) * | 2005-09-30 | 2005-11-17 | 엘지전자 주식회사 | Electronic document versioning method and updated information supply method using version number based on xml |
CN1711766A (en) * | 2002-11-14 | 2005-12-21 | Lg电子株式会社 | Electronic document versioning method and updated document supply method using version number based on XML |
EP2444134A1 (en) * | 2010-10-19 | 2012-04-25 | Travian Games GmbH | Methods, server system and browser clients for providing a game map of a browser-based online multi-player game |
CN102591901A (en) * | 2010-11-23 | 2012-07-18 | 三星电子株式会社 | Apparatus and method for synchronizing data in connected devices |
CN103092947A (en) * | 2013-01-11 | 2013-05-08 | 辽宁省电力有限公司朝阳供电公司 | Data version control method |
CN103294675A (en) * | 2012-02-23 | 2013-09-11 | 上海盛霄云计算技术有限公司 | Method and device for updating data in distributed storage system |
CN105340240A (en) * | 2013-01-29 | 2016-02-17 | 惠普发展公司,有限责任合伙企业 | Methods and systems for shared file storage |
CN105677889A (en) * | 2016-01-30 | 2016-06-15 | 武汉大学 | Partial updating and reduction overall incremental updating method for spatial data |
CN103475582B (en) * | 2013-09-18 | 2016-08-31 | 杭州华三通信技术有限公司 | The synchronous method of a kind of LSP data and equipment |
CN107451486A (en) * | 2017-06-30 | 2017-12-08 | 华为技术有限公司 | The authority setting method and device of a kind of file system |
CN109144980A (en) * | 2018-08-21 | 2019-01-04 | 成都四方伟业软件股份有限公司 | Metadata management method, device and electronic equipment |
CN109710591A (en) * | 2018-12-27 | 2019-05-03 | 福建南威软件有限公司 | Metadata version automatic management method |
-
2019
- 2019-06-25 CN CN201910557277.7A patent/CN110245149B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711766A (en) * | 2002-11-14 | 2005-12-21 | Lg电子株式会社 | Electronic document versioning method and updated document supply method using version number based on XML |
KR20050109059A (en) * | 2005-09-30 | 2005-11-17 | 엘지전자 주식회사 | Electronic document versioning method and updated information supply method using version number based on xml |
EP2444134A1 (en) * | 2010-10-19 | 2012-04-25 | Travian Games GmbH | Methods, server system and browser clients for providing a game map of a browser-based online multi-player game |
CN102591901A (en) * | 2010-11-23 | 2012-07-18 | 三星电子株式会社 | Apparatus and method for synchronizing data in connected devices |
CN103294675A (en) * | 2012-02-23 | 2013-09-11 | 上海盛霄云计算技术有限公司 | Method and device for updating data in distributed storage system |
CN103092947A (en) * | 2013-01-11 | 2013-05-08 | 辽宁省电力有限公司朝阳供电公司 | Data version control method |
CN105340240A (en) * | 2013-01-29 | 2016-02-17 | 惠普发展公司,有限责任合伙企业 | Methods and systems for shared file storage |
CN103475582B (en) * | 2013-09-18 | 2016-08-31 | 杭州华三通信技术有限公司 | The synchronous method of a kind of LSP data and equipment |
CN105677889A (en) * | 2016-01-30 | 2016-06-15 | 武汉大学 | Partial updating and reduction overall incremental updating method for spatial data |
CN107451486A (en) * | 2017-06-30 | 2017-12-08 | 华为技术有限公司 | The authority setting method and device of a kind of file system |
CN109144980A (en) * | 2018-08-21 | 2019-01-04 | 成都四方伟业软件股份有限公司 | Metadata management method, device and electronic equipment |
CN109710591A (en) * | 2018-12-27 | 2019-05-03 | 福建南威软件有限公司 | Metadata version automatic management method |
Non-Patent Citations (4)
Title |
---|
YUAN WANG EL: "Version Control for Metadata in Unified Database Console", 《2012 6TH INTERNATIONAL CONFERENCE ON NEW TRENDS IN INFORMATION SCIENCE,SERVICE SCIENCE AND DATA MINING(ISSDM 2012)》 * |
每春辉: "基于Hadoop的多版本栅格地图存储与管理系统", 《西安电子科技大学》 * |
游开燕 等: "基于元数据的数据集成研究", 《中国储运》 * |
潘定 等: "DW2.0环境中的元数据版本管理", 《第二十九届中国控制会议论文集》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579705A (en) * | 2019-09-27 | 2021-03-30 | 北京国双科技有限公司 | Metadata acquisition method and device, computer equipment and storage medium |
CN110879799A (en) * | 2019-11-15 | 2020-03-13 | 北京明略软件系统有限公司 | Method and apparatus for managing technical metadata |
CN110879799B (en) * | 2019-11-15 | 2023-04-07 | 北京明略软件系统有限公司 | Method and device for labeling technical metadata |
WO2021249207A1 (en) * | 2020-06-10 | 2021-12-16 | 腾讯科技(深圳)有限公司 | Database transaction processing method and apparatus, and server and storage medium |
CN112540970A (en) * | 2020-12-07 | 2021-03-23 | 航天信息股份有限公司 | Metadata blood relationship analysis method and system based on version management |
CN114461614A (en) * | 2022-04-12 | 2022-05-10 | 北京安华金和科技有限公司 | Sensitive data identification processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110245149B (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110245149A (en) | The method for edition management and device of metadata | |
CN103678494B (en) | Client synchronization services the method and device of end data | |
US9471575B2 (en) | Managing changes to one or more files via linked mapping records | |
US8321803B2 (en) | Aggregating service components | |
DE202014010893U1 (en) | Rufwegsucher | |
CN103810212A (en) | Automated database index creation method and system | |
CN111259627A (en) | Document analysis method and device, computer storage medium and equipment | |
KR20120071834A (en) | Automatic management system for group and mutant information of malicious code | |
US20230040635A1 (en) | Graph-based impact analysis of misconfigured or compromised cloud resources | |
CN108932286A (en) | A kind of date storage method, data query method and device | |
CN108459956A (en) | Test report automatic management method, apparatus, equipment and storage medium | |
KR102187322B1 (en) | System for business rule management | |
CN106802928B (en) | Power grid historical data management method and system | |
CN113157904A (en) | Sensitive word filtering method and system based on DFA algorithm | |
KR101171551B1 (en) | Event history memory device, event history tracking device, event history memory method, computer-readable recording medium recording event history memory program and computer-readable recording medium recording data structure | |
EP3001330A1 (en) | Data processing device and method | |
CN106372121B (en) | Server and data processing method | |
US20140081910A1 (en) | Method and apparatus for document updating | |
KR102150910B1 (en) | System for business rule management | |
KR102164607B1 (en) | System for business rule management | |
KR102150909B1 (en) | System for business rule management | |
KR102217937B1 (en) | System for business rule management | |
KR102150911B1 (en) | System for business rule management | |
KR102187321B1 (en) | System for business rule management | |
US20060277002A1 (en) | system and method for analysis of measurement data |
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 |