CN107168638A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN107168638A
CN107168638A CN201610126314.5A CN201610126314A CN107168638A CN 107168638 A CN107168638 A CN 107168638A CN 201610126314 A CN201610126314 A CN 201610126314A CN 107168638 A CN107168638 A CN 107168638A
Authority
CN
China
Prior art keywords
data
mark
data type
stored
target operating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610126314.5A
Other languages
Chinese (zh)
Inventor
杨博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610126314.5A priority Critical patent/CN107168638A/en
Publication of CN107168638A publication Critical patent/CN107168638A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device

Landscapes

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

Abstract

The embodiments of the invention provide a kind of data processing method and device, when needing to store data to be stored in shared storage device by target operating environment, the mark for the data type mutually bound with target operating environment is obtained;The mark of the data type of different running environment bindings is different;The mark of data to be stored and the data type is mutually bound;By data storage to be stored in shared storage device.Namely, pass through the storage method of the embodiment of the present invention, when the data stored before being obtained by target operating environment by the running environment in shared storage device are needed after, it is not in the situation that the data got are not required to the data of acquisition, namely be not in the situation that the data got are the data of mistake, the business after would not also influenceing normally is run.Therefore, compared to prior art, the embodiment of the present invention need not be equipped with storage device for each running environment, so that hardware cost can be reduced by allowing.

Description

Data processing method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data processing method and device.
Background technology
Currently, APP (Application, application program) running environment is generally included in pre- issue running environment and true line Running environment etc., pre- issue running environment is generally used for before APP is formally issued carrying out simulation test to APP, to be measured to ping Being published to running environment in running environment in true line, true line after crossing again is used to formally provide practical business service to user.
Generally, the two running environment are simultaneously using a shared storage device, and each running environment can be in shared storage Data are read and write in equipment.
Wherein, by issuing in advance in all data that running environment is stored in the storage device, the number of any two data It is different from according to mark;And, in all data that running environment is stored in the storage device on by true line, appoint The Data Identification of two data of meaning is also different from.Deposited however, sometimes there may be by issuing running environment in advance shared Store up the Data Identification of the data stored in equipment and stored by running environment in true line in shared storage device one The situation that the Data Identification of individual data is identical but data contents of the two data are different.
For example, storing A data in shared storage device by issuing running environment in advance, pass through running environment in true line B data is stored in shared storage device, the Data Identification of A data is identical with the Data Identification of B data, but A data Data content it is different from the data content of B data.
So, when after need by true line running environment obtain before by true line running environment store B numbers According to when, it is necessary to using the Data Identification of B data in shared storage device searching data, yet with the data mark of B data Knowledge is identical with the Data Identification of A data, accordingly, it is possible to find A data, it is also possible to find B data, if searched To A data, the data stored before not being due to A data by running environment in true line cause the data got not It is the data for needing to obtain, namely the data got are the data of mistake, the business after thus influenceing normally is run.
Therefore, in order to avoid the appearance of above mentioned problem, technical staff needs to transport in running environment and true line for pre- issue in advance Row environment is equipped with different storage device.So, can be by data storage when by issuing running environment data storage in advance In the storage device being equipped with for pre- issue running environment;, can be by when needing by running environment data storage in true line In the data storage storage device that running environment is equipped with for true line.
In this way, when after need by true line running environment obtain before by true line running environment store data When, searching data in the storage device that running environment is equipped with from for true line;Due to being equipped with for running environment in true line Storage device in be not present by advance issue running environment store data, only exist and deposited by running environment in true line The data of storage, therefore, by true before the data that obtain must be in the storage device that running environment is equipped with from for true line Running environment is stored on solid line, is stored before will not being by issuing upper running environment in advance.And, when after need to lead to Cross before pre- issue running environment is obtained by issuing in advance during data that running environment is stored, can match somebody with somebody from for pre- issue running environment Searching data in standby storage device;Pass through true line due to being not present in the storage device being equipped with for pre- issue running environment The data of upper running environment storage, are only existed by issuing the data that running environment is stored in advance, therefore, are transported from for pre- issue The data obtained in the storage device that row environment is equipped with are stored before must being by issuing running environment in advance, before will not being Stored by running environment in true line.The problem of data got are not required to the data obtained can be thus avoided, Namely avoid the problem of data got are the data of mistake.
However, it is found by the inventors that, though it is that running environment is equipped with different storage device in pre- issue running environment and true line The appearance of above mentioned problem can be so avoided, but adds hardware cost.
The content of the invention
To overcome problem present in correlation technique, the present invention provides a kind of data processing method and device.
First aspect according to embodiments of the present invention includes there is provided a kind of data processing method, methods described:
When needing to store data to be stored in shared storage device by target operating environment, obtain and the object run The mark for the data type that environment is mutually bound;The mark of the data type of different running environment bindings is different;
The mark of the data to be stored and the data type is mutually bound;
By the data storage to be stored in the shared storage device.
Wherein, the mark by the data to be stored and the data type is mutually bound, including:
The mapping relations set up between the data to be stored and the mark of the data type, to realize the number to be stored Mutually bound according to the mark with the data type.
Wherein, the mark by the data to be stored and the data type is mutually bound, including:
The mark of the data type is added in the data type field in the data to be stored.
Further, methods described also includes:
Before needing to obtain by the target operating environment by the target operating environment in the shared storage device During the corresponding data of Data Identification to be obtained of storage, the mark for the data type mutually bound with the target operating environment is obtained;
The data corresponding with the Data Identification to be obtained are obtained in the shared storage device;
The data mutually bound with the mark of the data type are selected from the data of the acquisition.
Wherein, the mark for obtaining the data type mutually bound with the target operating environment, including:
Obtain the corresponding relation between the mark of running environment being locally stored and the mark of data type;
The mark of the data type corresponding with the target operating environment is searched in the corresponding relation.
Wherein, it is described to select the data mutually bound with the mark of the data type from the data of the acquisition, including:
For each data corresponding with the Data Identification to be obtained of acquisition, obtaining includes the mapping pass of the data System;
The mark of data type is extracted in the mapping relations of the acquisition;
Judge the mark for identifying whether the data type mutually to be bound with the target operating environment of the data type extracted Know;
When the mark for being designated the data type mutually bound with the target operating environment of the data type extracted, The data that the data are defined as mutually binding with the mark of the data type.
Wherein, it is described to select the data mutually bound with the mark of the data type from the data of the acquisition, including:
For each data corresponding with the Data Identification to be obtained of acquisition, the data type field from the data In extract the mark of data type;
Judge the mark for identifying whether the data type mutually to be bound with the target operating environment of the data type extracted Know;
When the mark for being designated the data type mutually bound with the target operating environment of the data type extracted, The data that the data are defined as mutually binding with the mark of the data type.
Second aspect according to embodiments of the present invention includes there is provided a kind of data processing equipment, described device:
First acquisition module, for when needing to store data to be stored in shared storage device by target operating environment, Obtain the mark for the data type mutually bound with the target operating environment;The mark of the data type of different running environment bindings Know different;
Binding module, for the mark of the data to be stored and the data type mutually to be bound;
Memory module, for by the data storage to be stored in the shared storage device.
Wherein, the binding module is specifically for setting up the mapping between the data to be stored and the mark of the data type Relation, is mutually bound the mark of the data to be stored and the data type with realizing.
Wherein, the binding module by the data type specifically for identifying the data being added in the data to be stored In type field.
Further, described device also includes:
First acquisition module is additionally operable to before needing to obtain by the target operating environment by the object run ring During the corresponding data of Data Identification to be obtained that border is stored in the shared storage device, obtain and the target operating environment The mark for the data type mutually bound;
Second acquisition module, for obtaining the data corresponding with the Data Identification to be obtained in the shared storage device;
Selecting module, for selecting the data mutually bound with the mark of the data type from the data of the acquisition.
Wherein, first acquisition module includes:
First acquisition unit, for obtaining the corresponding pass between the mark of running environment being locally stored and the mark of data type System;
Searching unit, the mark for searching the data type corresponding with the target operating environment in the corresponding relation.
Wherein, the selecting module includes:
Second acquisition unit, the data corresponding with the Data Identification to be obtained for each for acquisition obtain bag Include the mapping relations of the data;
First extraction unit, the mark for extracting data type in the mapping relations of the acquisition;
First judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
First determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
Wherein, the selecting module includes:
Second extraction unit, for each data corresponding with the Data Identification to be obtained for acquisition, from the number The mark of data type is extracted in data type field in;
Second judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
Second determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
The technical scheme that embodiments of the invention are provided can include the following benefits:
In embodiments of the present invention, although multiple data marks may be stored in shared storage device by different running environment The sensible same but different data of data content, but by the storage method of the embodiment of the present invention, due to different running environment The data type of support is different, and the mark of different data types is also different, so, will be logical for any running environment The mark for crossing data and the data type of running environment support that the running environment is stored in shared storage device is bound, right It is same in other each running environment.
So, when after need to obtain by a certain running environment before stored by the running environment in shared storage device Data when, it is necessary to be searched using the Data Identification of the data in shared storage device, due in shared storage device Each data of storage have bound data type, therefore, in the corresponding data of all Data Identifications are found, meeting The data of the mark for the data type for having bound running environment support are selected, and the data selected are the numbers for needing to obtain According to.
That is, by the storage method of the embodiment of the present invention, when after need to obtain by a certain running environment before by this Be not in the data that the data got are not required to obtain during the data that running environment is stored in shared storage device Situation, namely be not in the situation that the data got are the data of mistake, the business after would not also influenceing normally is transported OK.
Therefore, compared to prior art, the embodiment of the present invention need not be equipped with storage device for each running environment, so that Hardware cost can be reduced by allowing.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, it can not limit The system present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets embodiments of the invention, And be used to explain principle of the invention together with specification.
Fig. 1 is a kind of flow chart of data processing method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of data processing method according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of data processing equipment according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to accompanying drawing When, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.In following exemplary embodiment Described embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are weighed with such as appended The example of the consistent apparatus and method of some aspects be described in detail in sharp claim, the present invention.
Fig. 1 is a kind of flow chart of data processing method according to an exemplary embodiment, as shown in figure 1, this method Comprise the following steps.
In step S101, when needing to store data to be stored in shared storage device by target operating environment, obtain The mark for the data type mutually bound with target operating environment;
The mark of the data type of different running environment bindings is different.
There are at least two different running environment in the embodiment of the present invention simultaneously, for example exist simultaneously pre- issue test environment and Environment etc. in true line.At least two different running environment is shared in a storage device, as step S101 simultaneously Shared storage device, can be set by any one running environment at least two different running environment in shared storage Standby middle data storage obtains data.
All data that some running environment is stored in shared storage device in by least two different running environment In, the Data Identification of any two data is different from;Another operation ring in by least two different running environment In all data that border is stored in shared storage device, the Data Identification of any two data is different from;However, sometimes Wait there may be the Data Identifications of the data stored by some running environment in shared storage device with it is another by this The Data Identification for the data that one running environment is stored in shared storage device is identical but data contents of the two data Different situations.
So, when after need by some running environment obtain before set by a certain running environment in shared storage During a data for standby middle storage, it is necessary to using the Data Identification of a data in shared storage device searching data, The data that the data for being possible to find are stored before being by some running environment in shared storage device, The data for being also possible to find be before by another running environment data storage in shared storage device.
If another running environment data storage in shared storage device, causes the number found during the data found According to the data for being not required to obtain, namely the data found are the data of mistake, and the business after thus influenceing is normal Operation.
However, it is found by the inventors that, in embodiments of the present invention, number is stored in shared storage device by a running environment According to when can only store running environment support data type data, and the data type that different running environment is supported is different.
Therefore,, in advance can be by the mark of the running environment and the fortune for any running environment in order to solve the above problems The data type of row Environmental Support is mutually bound, the data type for for example supporting the mark of the running environment with the running environment The corresponding relation that mark composition one is recorded and stored between the mark for the running environment being locally stored and the mark of data type In, mutually bound with the data type that the mark realized the running environment is supported with the running environment.For other each operations Environment, equally performs aforesaid operations.
Therefore, this step is specifically as follows:Obtain between the mark of running environment being locally stored and the mark of data type Corresponding relation;The mark of the data type corresponding with the mark of target operating environment is searched in the corresponding relation.
In step s 102, the mark of data to be stored and the data type is mutually bound;
Wherein, in an embodiment of the invention, the mapping that can be set up between data to be stored and the mark of the data type Relation, is mutually bound the mark of data to be stored and the data type with realizing;
In another example of the invention, it is generally the case that multiple data fields, the plurality of data word can be included in a data One of data field in section is data type field, and the mark of the data type of data storage is used in data type field Know, therefore, in this step, the mark of data type can be added in the data type field in data to be stored.
In step s 103, by data storage to be stored in shared storage device.
In embodiments of the present invention, although multiple data marks may be stored in shared storage device by different running environment The sensible same but different data of data content, but by the storage method of the embodiment of the present invention, due to different running environment The data type of support is different, and the mark of different data types is also different, so, will be logical for any running environment The mark for crossing data and the data type of running environment support that the running environment is stored in shared storage device is bound, right It is same in other each running environment.
So, when after need to obtain by a certain running environment before stored by the running environment in shared storage device Data when, it is necessary to be searched using the Data Identification of the data in shared storage device, due in shared storage device Each data of storage have bound data type, therefore, in the corresponding data of all Data Identifications are found, meeting The data of the mark for the data type for having bound running environment support are selected, and the data selected are the numbers for needing to obtain According to.
That is, by the storage method of the embodiment of the present invention, when after need to obtain by a certain running environment before by this Be not in the data that the data got are not required to obtain during the data that running environment is stored in shared storage device Situation, namely be not in the situation that the data got are the data of mistake, the business after would not also influenceing normally is transported OK.
Therefore, compared to prior art, the embodiment of the present invention need not be equipped with storage device for each running environment, so that Hardware cost can be reduced by allowing.
Further, in an alternative embodiment of the invention, when storing number in shared storage device by target operating environment After, if needing to obtain the data from shared storage device by target operating environment afterwards, Fig. 2 institutes can be passed through The embodiment shown realizes that specifically, referring to Fig. 2, this method also includes:
In step s 201, before needing to obtain by target operating environment by target operating environment in shared storage device During the corresponding data of the Data Identification to be obtained of middle storage, the mark for the data type mutually bound with target operating environment is obtained;
Wherein, in this step, between the mark of running environment and the mark of data type that can be locally stored for acquisition Corresponding relation;Then the mark of the data type corresponding with target operating environment is searched in the corresponding relation.
In step S202, the data corresponding with Data Identification to be obtained are obtained in shared storage device;
In embodiments of the present invention, if storing data mark in shared storage device only by a running environment before Know for the data of Data Identification to be obtained.So, in this step, will be got from shared equipment one with it is to be obtained The corresponding data of Data Identification, and the data of the data got have bound the mark of a running environment.
If Data Identification is stored in shared storage device respectively for number to be obtained by multiple different running environment before According to the data of mark, so, in this step, it will be got from shared equipment multiple relative with Data Identification to be obtained The data answered, and each data got have bound the mark of a running environment, and appointing in the data got The mark of the running environment of two data bindings of meaning is all different.
In step S203, the data mutually bound with the mark of the data type are selected from the data of acquisition.
In an embodiment of the invention, if in step s 102 " by the mark phase of data to be stored and the data type Binding " specific implementation be:The mapping relations set up between data to be stored and the mark of the data type, to realize The mark of data to be stored and the data type is mutually bound;Then this step can specifically be realized by following flow, including:
For first data in the data corresponding with Data Identification to be obtained of acquisition, obtaining includes first data Mapping relations;The mark of data type is extracted in the mapping relations of acquisition;Judging the mark of the data type extracted is It is no for the mark for the data type mutually bound with target operating environment;When being designated and object run for the data type extracted During the mark for the data type that environment is mutually bound, the data that first data is defined as mutually binding with the mark of the data type, Terminate flow.
When the mark of the data type extracted is not for the mark for the data type mutually bound with target operating environment, it is determined that should Data are not the data mutually bound with the mark of the data type, and for the number corresponding with Data Identification to be obtained of acquisition Second data in, equally perform aforesaid operations, if it is determined that it is the mark phase with the data type to go out second data The data of binding, then terminate flow.
If it is determined that second data is not the data mutually bound with the mark of the data type, then obtained for acquisition with waiting The 3rd data in the corresponding data of Data Identification are taken, aforesaid operations are equally performed, until in acquisition and number to be obtained The data type mutually bound with target operating environment of being designated that data type is determined in corresponding data according to identifying Untill the data of mark.
If the data type mark in each data in the data corresponding with Data Identification to be obtained of acquisition is not For the mark for the data type mutually bound with target operating environment, it is determined that pass through mesh before being not present in shared storage device The corresponding data of Data Identification to be obtained that mark running environment is stored in shared storage device.
In an alternative embodiment of the invention, if in step s 102 " by the mark phase of data to be stored and the data type Binding " specific implementation be:The mark of the data type is added in the data type field in data to be stored; Then this step can specifically be realized by following flow, including:
For first data in the data corresponding with Data Identification to be obtained of acquisition, the data from first data The mark of data type is extracted in type field;Judge the data type extracted identify whether as with target operating environment The mark for the data type mutually bound;When the data class mutually bound with target operating environment of being designated of the data type extracted During the mark of type, the data that first data is defined as mutually binding with the mark of the data type terminate flow.
When the mark of the data type extracted is not for the mark for the data type mutually bound with target operating environment, it is determined that should Data are not the data mutually bound with the mark of the data type, and for the number corresponding with Data Identification to be obtained of acquisition Second data in, equally perform aforesaid operations, if it is determined that it is the mark phase with the data type to go out second data The data of binding, then terminate flow.
If it is determined that second data is not the data mutually bound with the mark of the data type, then obtained for acquisition with waiting The 3rd data in the corresponding data of Data Identification are taken, aforesaid operations are equally performed, until in acquisition and number to be obtained The data type mutually bound with target operating environment of being designated that data type is determined in corresponding data according to identifying Untill the data of mark.
If the data type mark in each data in the data corresponding with Data Identification to be obtained of acquisition is not For the mark for the data type mutually bound with target operating environment, it is determined that pass through mesh before being not present in shared storage device The corresponding data of Data Identification to be obtained that mark running environment is stored in shared storage device.
Fig. 3 is a kind of block diagram of data processing equipment according to an exemplary embodiment.Reference picture 3, the device includes:
First acquisition module 11, for when needing to store data to be stored in shared storage device by target operating environment, Obtain the mark for the data type mutually bound with the target operating environment;The mark of the data type of different running environment bindings Know different;
Binding module 12, for the mark of the data to be stored and the data type mutually to be bound;
Memory module 13, for by the data storage to be stored in the shared storage device.
Wherein, the binding module 12 is specifically for setting up reflecting between the data to be stored and the mark of the data type Relation is penetrated, is mutually bound the mark of the data to be stored and the data type with realizing.
Wherein, the binding module 12 by the data type specifically for identifying the number being added in the data to be stored According in type field.
Further, described device also includes:
First acquisition module 11 is additionally operable to before needing to obtain by the target operating environment by the object run During the corresponding data of Data Identification to be obtained that environment is stored in the shared storage device, obtain and the object run ring The mark for the data type that border is mutually bound;
Second acquisition module, for obtaining the data corresponding with the Data Identification to be obtained in the shared storage device;
Selecting module, for selecting the data mutually bound with the mark of the data type from the data of the acquisition.
Wherein, first acquisition module 11 includes:
First acquisition unit, for obtaining the corresponding pass between the mark of running environment being locally stored and the mark of data type System;
Searching unit, the mark for searching the data type corresponding with the target operating environment in the corresponding relation.
Wherein, the selecting module includes:
Second acquisition unit, the data corresponding with the Data Identification to be obtained for each for acquisition obtain bag Include the mapping relations of the data;
First extraction unit, the mark for extracting data type in the mapping relations of the acquisition;
First judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
First determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
Wherein, the selecting module includes:
Second extraction unit, for each data corresponding with the Data Identification to be obtained for acquisition, from the number The mark of data type is extracted in data type field in;
Second judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
Second determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
The technical scheme that embodiments of the invention are provided can include the following benefits:
In embodiments of the present invention, although multiple data marks may be stored in shared storage device by different running environment The sensible same but different data of data content, but by the storage method of the embodiment of the present invention, due to different running environment The data type of support is different, and the mark of different data types is also different, so, will be logical for any running environment The mark for crossing data and the data type of running environment support that the running environment is stored in shared storage device is bound, right It is same in other each running environment.
So, when after need to obtain by a certain running environment before stored by the running environment in shared storage device Data when, it is necessary to be searched using the Data Identification of the data in shared storage device, due in shared storage device Each data of storage have bound data type, therefore, in the corresponding data of all Data Identifications are found, meeting The data of the mark for the data type for having bound running environment support are selected, and the data selected are the numbers for needing to obtain According to.
That is, by the storage method of the embodiment of the present invention, when after need to obtain by a certain running environment before by this Be not in the data that the data got are not required to obtain during the data that running environment is stored in shared storage device Situation, namely be not in the situation that the data got are the data of mistake, the business after would not also influenceing normally is transported OK.
Therefore, compared to prior art, the embodiment of the present invention need not be equipped with storage device for each running environment, so that Hardware cost can be reduced by allowing.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in the reality about this method Apply in example and be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art will readily occur to other realities of the present invention after considering specification and putting into practice invention disclosed herein Apply scheme.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Adaptations follow the general principle of the present invention and including the undocumented common knowledge or used in the art of the present invention Use technological means.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by appended right It is required that pointing out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and can To carry out various modifications and changes without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (14)

1. a kind of data processing method, it is characterised in that methods described includes:
When needing to store data to be stored in shared storage device by target operating environment, obtain and the object run The mark for the data type that environment is mutually bound;The mark of the data type of different running environment bindings is different;
The mark of the data to be stored and the data type is mutually bound;
By the data storage to be stored in the shared storage device.
2. according to the method described in claim 1, it is characterised in that described by the data to be stored and the data type Mark mutually bind, including:
The mapping relations set up between the data to be stored and the mark of the data type, to realize the number to be stored Mutually bound according to the mark with the data type.
3. according to the method described in claim 1, it is characterised in that described by the data to be stored and the data type Mark mutually bind, including:
The mark of the data type is added in the data type field in the data to be stored.
4. according to the method in claim 2 or 3, it is characterised in that methods described also includes:
Before needing to obtain by the target operating environment by the target operating environment in the shared storage device During the corresponding data of Data Identification to be obtained of storage, the mark for the data type mutually bound with the target operating environment is obtained;
The data corresponding with the Data Identification to be obtained are obtained in the shared storage device;
The data mutually bound with the mark of the data type are selected from the data of the acquisition.
5. method according to claim 4, it is characterised in that the acquisition is mutually bound with the target operating environment The mark of data type, including:
Obtain the corresponding relation between the mark of running environment being locally stored and the mark of data type;
The mark of the data type corresponding with the target operating environment is searched in the corresponding relation.
6. method according to claim 4, it is characterised in that it is described selected from the data of the acquisition with it is described The data that the mark of data type is mutually bound, including:
For each data corresponding with the Data Identification to be obtained of acquisition, obtaining includes the mapping pass of the data System;
The mark of data type is extracted in the mapping relations of the acquisition;
Judge the mark for identifying whether the data type mutually to be bound with the target operating environment of the data type extracted Know;
When the mark for being designated the data type mutually bound with the target operating environment of the data type extracted, The data that the data are defined as mutually binding with the mark of the data type.
7. method according to claim 4, it is characterised in that it is described selected from the data of the acquisition with it is described The data that the mark of data type is mutually bound, including:
For each data corresponding with the Data Identification to be obtained of acquisition, the data type field from the data In extract the mark of data type;
Judge the mark for identifying whether the data type mutually to be bound with the target operating environment of the data type extracted Know;
When the mark for being designated the data type mutually bound with the target operating environment of the data type extracted, The data that the data are defined as mutually binding with the mark of the data type.
8. a kind of data processing equipment, it is characterised in that described device includes:
First acquisition module, for when needing to store data to be stored in shared storage device by target operating environment, Obtain the mark for the data type mutually bound with the target operating environment;The mark of the data type of different running environment bindings Know different;
Binding module, for the mark of the data to be stored and the data type mutually to be bound;
Memory module, for by the data storage to be stored in the shared storage device.
9. device according to claim 8, it is characterised in that the binding module is described to be stored specifically for setting up Mapping relations between the mark of data and the data type, to realize the data to be stored and the data type Mark is mutually bound.
10. device according to claim 8, it is characterised in that the binding module is specifically for by the data class The mark of type is added in the data type field in the data to be stored.
11. the device according to claim 9 or 10, it is characterised in that described device also includes:
First acquisition module is additionally operable to before needing to obtain by the target operating environment by the object run ring During the corresponding data of Data Identification to be obtained that border is stored in the shared storage device, obtain and the target operating environment The mark for the data type mutually bound;
Second acquisition module, for obtaining the data corresponding with the Data Identification to be obtained in the shared storage device;
Selecting module, for selecting the data mutually bound with the mark of the data type from the data of the acquisition.
12. device according to claim 11, it is characterised in that first acquisition module includes:
First acquisition unit, for obtaining the corresponding pass between the mark of running environment being locally stored and the mark of data type System;
Searching unit, the mark for searching the data type corresponding with the target operating environment in the corresponding relation.
13. device according to claim 11, it is characterised in that the selecting module includes:
Second acquisition unit, the data corresponding with the Data Identification to be obtained for each for acquisition obtain bag Include the mapping relations of the data;
First extraction unit, the mark for extracting data type in the mapping relations of the acquisition;
First judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
First determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
14. device according to claim 11, it is characterised in that the selecting module includes:
Second extraction unit, for each data corresponding with the Data Identification to be obtained for acquisition, from the number The mark of data type is extracted in data type field in;
Second judging unit, for judge the data type extracted identify whether as with the target operating environment phase The mark of the data type of binding;
Second determining unit, for being designated what is mutually bound with the target operating environment when the data type extracted During the mark of data type, the data that the data are defined as mutually binding with the mark of the data type.
CN201610126314.5A 2016-03-07 2016-03-07 Data processing method and device Pending CN107168638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610126314.5A CN107168638A (en) 2016-03-07 2016-03-07 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610126314.5A CN107168638A (en) 2016-03-07 2016-03-07 Data processing method and device

Publications (1)

Publication Number Publication Date
CN107168638A true CN107168638A (en) 2017-09-15

Family

ID=59848406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610126314.5A Pending CN107168638A (en) 2016-03-07 2016-03-07 Data processing method and device

Country Status (1)

Country Link
CN (1) CN107168638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040176A (en) * 2017-12-08 2018-05-15 维沃移动通信有限公司 A kind of playback method, device and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101120337A (en) * 2004-04-02 2008-02-06 易享信息技术(上海)有限公司 Custom entities and fields in a multi-tenant database system
CN102609452A (en) * 2012-01-11 2012-07-25 上海西本网络科技有限公司 Data storage method and data storage device
EP2618268A1 (en) * 2010-09-14 2013-07-24 Tencent Technology (Shenzhen) Company Limited Method and device for data storage
CN103455677A (en) * 2013-09-04 2013-12-18 广东电网公司电力调度控制中心 Environment simulation method and system
CN104426868A (en) * 2013-08-28 2015-03-18 腾讯科技(深圳)有限公司 Request processing method and processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101120337A (en) * 2004-04-02 2008-02-06 易享信息技术(上海)有限公司 Custom entities and fields in a multi-tenant database system
EP2618268A1 (en) * 2010-09-14 2013-07-24 Tencent Technology (Shenzhen) Company Limited Method and device for data storage
CN102609452A (en) * 2012-01-11 2012-07-25 上海西本网络科技有限公司 Data storage method and data storage device
CN104426868A (en) * 2013-08-28 2015-03-18 腾讯科技(深圳)有限公司 Request processing method and processing apparatus
CN103455677A (en) * 2013-09-04 2013-12-18 广东电网公司电力调度控制中心 Environment simulation method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040176A (en) * 2017-12-08 2018-05-15 维沃移动通信有限公司 A kind of playback method, device and mobile terminal

Similar Documents

Publication Publication Date Title
US9412035B2 (en) Place-based image organization
CN105760184B (en) A kind of method and apparatus of charging assembly
US11086638B2 (en) Method and apparatus for loading application
CN102609241B (en) hot patch method and device
CN107122368A (en) A kind of data verification method, device and electronic equipment
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
CN104978213B (en) Realize the link acquisition methods and device of application installation package
CN105468373A (en) Branch merging method and device
CN105468797A (en) Information processing method and apparatus
US11288171B2 (en) Data verification apparatus, method and medium for determining whether referring parts of source code are executed
CN105700917A (en) Method and apparatus for synchronizing DLL and database
CN107168638A (en) Data processing method and device
CN106227502A (en) A kind of method and device obtaining hard disk firmware version
CN102799597A (en) Content extraction method
CN107766228B (en) Multi-language-based automatic testing method and device
CN113805861B (en) Code generation method based on machine learning, code editing system and storage medium
CN106803202B (en) Method and device for extracting transaction records to be tested
CN109542775A (en) A kind of generation and execution method and device of test script
CN115563008A (en) Code coverage rate detection system, method, device and storage medium
CN110866380A (en) Method and terminal for filling in information field content
CN105653549A (en) Method and device for extracting document information
CN110275863A (en) File moving method, device and storage medium
CN113821441B (en) Execution method, device, equipment and storage medium based on document test case
CN113220595B (en) Test method and test equipment
CN107609008A (en) A kind of data importing device and method from relevant database to Kafka based on Apache Sqoop

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Grand Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915