Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiments of the invention provide a kind of data processing method.
Fig. 1 is the flow chart of data processing method according to embodiments of the present invention.As shown in figure 1, the data processing method
It is as follows including step:
Step S102, obtain pending data.
Pending data can need data to be processed, for example, dimension data (such as time data) and/or true number
According to (such as production marketing data).
Step S104, multiple affairs are separately operable to handle pending data, wherein, multiple affairs are from default affairs
The mutual independent multiple affairs split out in advance, default affairs are the affairs for handling pending data, preset thing
Business includes multiple parallel subtransactions, and each affairs in multiple affairs correspond to a subtransaction in multiple subtransactions.
Wherein, affairs are a program execution units in database, can in relational database (such as SQL server)
To be a SQL statement or a program.In processing data, an affairs are divided into more height of functional independence
Affairs, and these subtransactions are run, data processing performance can be effectively improved.Multiple affairs can be:Write dimension data
Affairs with write-in factual data affairs.
Default affairs can be to standalone transaction corresponding to pending data, and the default affairs are for handling pending number
According to affairs, for example, being the data for being written to data warehouse in pending data, then, preset affairs be then right therewith
That answers writes pending data the affairs of data warehouse.Specifically, default affairs can be by SSIS (SQL Server
Integration Services) for engineering by initial data write-in data warehouse, data warehouse is to be used to deposit in Conceptual Modeling
The database of multi-dimensional data is stored up, is generally divided into dimension table and true table.Dimension table stores the dimension of all kinds of factual datas
Information is spent, true table stores achievement data, and associated with dimension table.If dimension table is timetable, true table is product pin
Table is sold, then has achievement data in production marketing table, and join with time correlation, then dimension table when being associated with.
Default affairs can include multiple subtransactions, there may be parallel subtransaction in the plurality of subtransaction.The present invention
Multiple affairs of embodiment are that the multiple affairs split out in affairs according to the function of multiple subtransactions are preset from this, be that is to say,
Each affairs have identical function with a subtransaction in default affairs in multiple affairs, for example, default transaction packet enclosed tool
Affairs A ', subtransaction B ' and subtransaction C ', then the multiple affairs split into include:Affairs A, affairs B and affairs C, wherein, thing
Business A and subtransaction A ' has identical function, and affairs B and subtransaction B ' has identical function, and affairs C has with subtransaction C '
Identical function.Affairs A, affairs B and affairs C are independent affairs, and each affairs are respectively provided with atomicity.So, use is utilized
Multiple affairs handle pending data, a part for each issued transaction pending data, due to each affairs in multiple affairs
Independence is respectively provided with, during pending data is handled, when some affairs appearance exception, for example, when affairs perform failure, then
The abnormal affairs can only be re-executed.
Step S106, judge to whether there is the affairs of operation exception in multiple affairs.
Step S108, if it is judged that the affairs of operation exception in multiple affairs be present, then rerun the operation exception
Affairs.
Judge with the presence or absence of the affairs of operation exception in multiple affairs, if it is present the abnormal affairs are reruned,
Because independently of each other, other affairs in multiple affairs need not then rerun between multiple affairs;If there is no abnormal thing
Business, then pending data terminates.Specifically, judge that the affairs in multiple affairs with the presence or absence of operation exception can pass through detection
The mark of affairs running status is recorded, judges that this identifies whether the mode of display affairs operation exception to judge.
According to embodiments of the present invention, pending data is handled by being separately operable multiple affairs, wherein, multiple affairs are
The mutual independent multiple affairs split out in advance from default affairs, it is for handling pending data to preset affairs
Affairs, default affairs include multiple parallel subtransactions, and each affairs in multiple affairs correspond to one in multiple subtransactions
Individual subtransaction, when the affairs of operation exception in judging multiple affairs be present, then it need to only rerun the abnormal affairs, nothing
Other affairs need to be run.And when using an affairs, such as default affairs are to handle pending data in the prior art, when wherein
There is exception in some subtransaction, because affairs have atomicity, it is necessary to all subtransactions be reruned, in the embodiment of the present invention
In, it need to only rerun and abnormal affairs occur, so substantially increase the efficiency of data processing, solve and count in the prior art
According to treatment effeciency it is low the problem of, reached improve data processing efficiency effect.
Preferably, multiple affairs are being separately operable come before handling pending data, the data processing of the embodiment of the present invention
Method also includes:Obtain multiple subtransactions in default affairs;Multiple subtransactions are extracted as multiple independent affairs, obtained more
Individual affairs.
Here default affairs include multiple subtransactions, i.e., the separate part of function are divided into an affairs more
Individual subtransaction.To ensure program parallelization and not destroying complete function, database program is realized using the method for parallel subtransaction
Parallel processing, can so improve the write efficiency of data warehouse.For example, the data warehouse in Conceptual Modeling engineering write
Cheng Zhong, after the dimension data table data filling of data warehouse, the data of true table, each true table can be filled parallel
Between data it is separate, but all rely on dimension table in data.Process using whole filling data warehouse is complete as one
Whole affairs, then the processing of dimension data and the processing of each true table data can be regarded as subtransaction, and each thing
Real table data can be written in parallel to, and be multiple parallel subtransactions.But because affairs have the characteristics of atomicity, that is, need
Deng could unify after the completion of all operationss to submit.Exception, which occurs, in any step in the meantime can all cause data rewind to be held to affairs
State before beginning.In parallel subtransaction, although subtransaction function is separate, if gone out in any one subtransaction
Now processing is abnormal, then can influence other all parallel subtransactions.When handling again, it is necessary to handle whole mistakes in affairs again
Journey, rather than just the branch for exception occur.In the present invention, parallel subtransaction is extracted as parallel independent thing by function
Business, wherein, there is exception in any one subtransaction, all only can rerun the affairs in there is abnormal subtransaction, and often
Individual subtransaction is all submitted to be independent, with this avoid interactional situation between parallel subtransaction (if desired for etc. whole affairs grasp
It could unify to submit after the completion of work).
The embodiment of the present invention, multiple word subtransactions in default affairs are obtained, multiple subtransactions are extracted as of the invention real
Multiple affairs of example are applied, specifically, each subtransaction completed in same affairs is extracted as into multiple independent affairs can be with
By the way that a SQL program is split as into multiple programs or in data warehouse write-in by the Sequence in SSIS engineerings
Container instruments, a Container is split as multiple Container by function and completed.So, by original multiple
Subtransaction obtains multiple separate affairs so that when occurring the affairs of operation exception in multiple affairs, need to only rerun
The abnormal affairs.
Fig. 2 is the flow chart of preferable data processing method according to embodiments of the present invention.The data processing side of the embodiment
Method can be a kind of preferred embodiment of the data processing method of above-described embodiment.As shown in Fig. 2 the data processing method bag
It is as follows to include step:
Step S202, obtain pending data.
Step S204, multiple affairs are separately operable to handle pending data.
Step S202 and step S204 is identical with the step S102 shown in Fig. 1 and step S104 successively, does not repeat here.
Step S206, records each mode bit corresponding to affairs in multiple affairs, and mode bit is used to reflect in multiple affairs
The running status of each affairs.
It should be noted that mode bit can be used to indicate that the running status of multiple affairs, wherein, it is each in multiple affairs
The corresponding mode bit of affairs, the mode bit can be intended to indicate that the timestamp of affairs operation, can be used for representing affairs
The numerical value of operation.For example, when affairs are run successfully, the mode bit of the affairs becomes the first mark, when affairs operation exception (or
Failure) when, the mode bit is changed into the second mark, in this manner it is possible to judge the affairs by detecting mode bit corresponding to affairs
Whether operation is successful or abnormal.
Affairs corresponding to the mode bit judge whether multiple affairs run completion by record status bit.By recording shape
The mode of state position, the operation conditions for the affairs that can be quickly detected corresponding to mode bit, so as to be handled, effectively increase
Data processing performance.
Step S208, by judging whether mode bit is default identify to judge to whether there is operation exception in multiple affairs
Affairs.Wherein, when mode bit for default mark when, then affairs operation exception corresponding to mode bit, i.e. default mark is in thing
Business runs one set before is used for that a affairs normal operation whether mark judged.
Step S210, if judging, existence position is the affairs of default mark in affairs, it is determined that affairs operation is different
Often.
Step S212, rerun and abnormal affairs occur.
According to embodiments of the present invention, by recording each mode bit corresponding to affairs in multiple affairs, multiple affairs are judged
Mode bit whether be default mark, if default mark, it is determined that affairs corresponding to the mode bit occur abnormal, rerun
Abnormal affairs.The affairs of operation exception are determined using mode bit, the detection speed of abnormal transaction is improved, further improves number
According to the efficiency of processing.
Fig. 3 is the flow chart of another preferable data processing method according to embodiments of the present invention.At the data of the embodiment
Reason method can be a kind of preferred embodiment of the data processing method of above-described embodiment.As shown in figure 3, the data processing side
It is as follows that method includes step:
Step S302, obtain pending data.
Step S304, create the state table for flag state position.
Step S306, it is operation starting time to update the mode bit in state table, and operation starting time is that multiple affairs are opened
Begin the time run.
Step S308, multiple affairs are separately operable to handle pending data.
Step S310, when each affairs end of run in multiple affairs, by the affairs of end of run on state table
Mode bit is updated to the end of run time of the affairs of end of run.
Step S312, judge whether mode bit is operation starting time.
Step S314, if it is judged that mode bit is operation starting time, it is determined that affairs operation is different corresponding to mode bit
Often, the affairs are reruned.
Specifically, the mark of running status can be used as by the use of timestamp in embodiments of the present invention.Record affairs operation
Timestamp, wherein it is possible to be when affairs are run successfully, change the end of run time corresponding with the affairs in state table;Such as
Fruit operation failure, then the mode bit in state table is still operation starting time, so, can by judge the mode bit whether be
Operation starting time judges the state whether to be default mark, so that it is determined that affairs whether operation exception.
For example, as shown in figure 4, the data in embodiments of the invention are written with 5 affairs includes:Affairs A (write-in dimensions
Data), affairs B (write-in factual data), affairs C (write-in factual data), affairs D (write-in factual data) and affairs E (write-in
Factual data), wherein, share the parallel branch that 4 (affairs B, affairs C, affairs D and affairs E) writes factual data.
State table is as shown in table 1, and when multiple affairs bring into operation, the time in more row state table is when bringing into operation
Between, for example, first time operation starting time is arranged to 0:00:00, the paralleling transaction first time end of run time is recorded, if the
The end time of paralleling transaction normal operation is 15:00:00, then may determine that the paralleling transaction end of run time whether phase
Etc. being 15:00:00, if equal, then it is assumed that this time issued transaction success, and by this end of run time 15:00:00 makees
The time to be brought into operation for affairs next time.Program enters before parallel each branch, when first determining whether corresponding to the branch
Between stab whether be equal to this end of run time 15:00:00, if unequal, branch's affairs operation exception, hold again
The affairs of the row branch, other affairs need not rerun;If equal, branch is directly jumped out, and this end of run
Time 15:00:00 conduct runs the time started next time.This step judges to be used for ensureing if a certain parallel branch appearance is different before
Often, then the branch is only handled after reruning, without normal branch between processing.The effect handled again is improved with this
Rate.
After branch's affairs end of run of the operation exception, timestamp corresponding to renewal is the end of run time 15:00:
00.Run and complete when whole branch's affairs, when judging whether the operation starting time of 4 paralleling transactions is equal to end of run again
Between, if equal, the operation of this affairs is fully completed.In the present embodiment if operation starting time and end of run time
All it is 15:00:00, then this affairs operation is fully completed.
Table 1:
Alternatively, mode bit can also be digital state position.Wherein, when digital state position is the first numerical value, digital state
Affairs end of run corresponding to position, when digital state position is second value, affairs operation exception corresponding to digital state position.
First numerical value and second value can be the data for representing different running statuses, and the first numerical value can be 1, the second number
Value can be 0, for example, it is assumed that when mode bit is 1, affairs corresponding to mode bit 1 terminate, that is, judge affairs normal operation;Assuming that
When mode bit is 0, affairs operation exception corresponding to mode bit 0.
Specifically, before multiple paralleling transactions are run first, the mode bit of the plurality of affairs is arranged to 0, first
During end of run, judge multiple affairs respectively corresponding to mode bit, if mode bit is changed into 1, multiple affairs whole normal operations,
The directly affairs of operation next time;If it is 0 to have mode bit corresponding at least one affairs between multiple affairs, the corresponding shape
The affairs that state position is 0 are reruned, and the affairs of other normal operations are not influenceed by the affairs of the operation exception, when the operation is different
When normal affairs are completed, mode bit corresponding to renewal is 1.When whole affairs, which are run, to be completed, judge again the plurality of and act
Whether mode bit corresponding to business is 1, if corresponding mode bit is all 1, the operation of this affairs is fully completed.
The embodiment of the present invention additionally provides a kind of data processing equipment.The device can realize its work(by computer equipment
Energy.It should be noted that the data processing equipment of the embodiment of the present invention can be used for performing the number that the embodiment of the present invention is provided
According to processing method, the data processing method of the embodiment of the present invention can also be filled by the data processing that the embodiment of the present invention is provided
Put to perform.
Fig. 5 is the schematic diagram of data processing equipment according to embodiments of the present invention.As shown in figure 5, the data processing equipment
Including:First acquisition unit 10, processing unit 20, judging unit 30 and running unit 40.
First acquisition unit 10 is used to obtain pending data.
Pending data can need data to be processed, for example, dimension data (such as time data) and/or true number
According to (such as production marketing data).
Processing unit 20 is used to be separately operable multiple affairs to handle pending data, wherein, multiple affairs are from default
The mutual independent multiple affairs split out in advance in affairs, default affairs are the affairs for handling pending data,
Default affairs include multiple subtransactions, and each affairs in multiple affairs correspond to a subtransaction in multiple subtransactions.
Wherein, affairs are a program execution units in database, can in relational database (such as SQL server)
To be a SQL statement or a program.In processing data, an affairs are divided into more height of functional independence
Affairs, and these subtransactions are run, data processing performance can be effectively improved.Multiple affairs can be:Write dimension data
Affairs with write-in factual data affairs.
Default affairs can be to standalone transaction corresponding to pending data, and the default affairs are for handling pending number
According to affairs, for example, being the data for being written to data warehouse in pending data, then, preset affairs be then right therewith
That answers writes pending data the affairs of data warehouse.Specifically, default affairs can be by SSIS (SQL Server
Integration Services) for engineering by initial data write-in data warehouse, data warehouse is to be used to deposit in Conceptual Modeling
The database of multi-dimensional data is stored up, is generally divided into dimension table and true table.Dimension table stores the dimension of all kinds of factual datas
Information is spent, true table stores achievement data, and associated with dimension table.If dimension table is timetable, true table is product pin
Table is sold, then has achievement data in production marketing table, and join with time correlation, then dimension table when being associated with.
Default affairs can include multiple subtransactions, there may be parallel subtransaction in the plurality of subtransaction.The present invention
Multiple affairs of embodiment are that the multiple affairs split out in affairs according to the function of multiple subtransactions are preset from this, be that is to say,
Each affairs have identical function with a subtransaction in default affairs in multiple affairs, for example, default transaction packet enclosed tool
Affairs A ', subtransaction B ' and subtransaction C ', then the multiple affairs split into include:Affairs A, affairs B and affairs C, wherein, thing
Business A and subtransaction A ' has identical function, and affairs B and subtransaction B ' has identical function, and affairs C has with subtransaction C '
Identical function.Affairs A, affairs B and affairs C are independent affairs, and each affairs are respectively provided with atomicity.So, using more
Individual affairs handle pending data, a part for each issued transaction pending data, because each affairs are equal in multiple affairs
With independence, during pending data is handled, when some affairs appearance exception, for example, when affairs perform failure, then may be used
Only to re-execute the abnormal affairs.
Judging unit 30 is used to judge the affairs that whether there is operation exception in multiple affairs.
Running unit 40 is used for if it is judged that the affairs of operation exception in multiple affairs be present, then it is different to rerun operation
Normal affairs.
Judge with the presence or absence of the affairs of operation exception in multiple affairs, if it is present the abnormal affairs are reruned,
Because independently of each other, other affairs in multiple affairs need not then rerun between multiple affairs;If there is no abnormal thing
Business, then pending data terminates.Specifically, judge that the affairs in multiple affairs with the presence or absence of operation exception can pass through detection
The mark of affairs running status is recorded, judges that this identifies whether the mode of display affairs operation exception to judge.
According to embodiments of the present invention, pending data is handled by being separately operable multiple affairs, wherein, multiple affairs are
The mutual independent multiple affairs split out in advance from default affairs, it is for handling pending data to preset affairs
Affairs, default affairs include multiple parallel subtransactions, and each affairs in multiple affairs correspond to one in multiple subtransactions
Individual subtransaction, when the affairs of operation exception in judging multiple affairs be present, then it need to only rerun the abnormal affairs, nothing
Other affairs need to be run.And when using an affairs, such as default affairs are to handle pending data in the prior art, when wherein
There is exception in some subtransaction, because affairs have atomicity, it is necessary to all subtransactions be reruned, in the embodiment of the present invention
In, it need to only rerun and abnormal affairs occur, so substantially increase the efficiency of data processing, solve and count in the prior art
According to treatment effeciency it is low the problem of, reached improve data processing efficiency effect.
Preferably, data processing equipment also includes:Second acquisition unit, for being treated to handle being separately operable multiple affairs
Before processing data, multiple subtransactions in default affairs are obtained;And extraction unit, it is more for multiple subtransactions to be extracted as
Individual independent affairs, obtain multiple affairs.
Here default affairs include multiple subtransactions, i.e., the separate part of function are divided into an affairs more
Individual subtransaction.To ensure program parallelization and not destroying complete function, database program is realized using the method for parallel subtransaction
Parallel processing, can so improve the write efficiency of data warehouse.For example, the data warehouse in Conceptual Modeling engineering write
Cheng Zhong, after the dimension data table data filling of data warehouse, the data of true table, each true table can be filled parallel
Between data it is separate, but all rely on dimension table in data.Process using whole filling data warehouse is complete as one
Whole affairs, then the processing of dimension data and the processing of each true table data can be regarded as subtransaction, and each thing
Real table data can be written in parallel to, and be multiple parallel subtransactions.But because affairs have the characteristics of atomicity, that is, need
Deng could unify after the completion of all operationss to submit.Exception, which occurs, in any step in the meantime can all cause data rewind to be held to affairs
State before beginning.In parallel subtransaction, although subtransaction function is separate, if gone out in any one subtransaction
Now processing is abnormal, then can influence other all parallel subtransactions.When handling again, it is necessary to handle whole mistakes in affairs again
Journey, rather than just the branch for exception occur.In the present invention, parallel subtransaction is extracted as parallel independent thing by function
Business, wherein, there is exception in any one subtransaction, all only can rerun the affairs in there is abnormal subtransaction, and often
Individual subtransaction is all submitted to be independent, with this avoid interactional situation between parallel subtransaction (if desired for etc. whole affairs grasp
It could unify to submit after the completion of work).
The embodiment of the present invention, multiple word subtransactions in default affairs are obtained, multiple subtransactions are extracted as of the invention real
Multiple affairs of example are applied, specifically, each subtransaction completed in same affairs is extracted as into multiple independent affairs can be with
By the way that a SQL program is split as into multiple programs or in data warehouse write-in by the Sequence in SSIS engineerings
Container instruments, a Container is split as multiple Container by function and completed.So, by original multiple
Subtransaction obtains multiple separate affairs so that when occurring the affairs of operation exception in multiple affairs, need to only rerun
The abnormal affairs.
Preferably, judging unit includes:Logging modle, for recording each mode bit corresponding to affairs in multiple affairs,
Mode bit is used for the running status for reflecting each affairs in multiple affairs, wherein, when mode bit is presets mark, mode bit pair
The affairs operation exception answered;First judge module, for by judging whether mode bit is default identify to judge multiple affairs
In whether there is operation exception affairs.
It should be noted that mode bit can be used to indicate that the running status of multiple affairs, wherein, it is each in multiple affairs
The corresponding mode bit of affairs, the mode bit can be intended to indicate that the timestamp of affairs operation, can be used for representing affairs
The numerical value of operation.For example, when affairs are run successfully, the mode bit of the affairs becomes the first mark, when affairs operation exception (or
Failure) when, the mode bit is changed into the second mark, in this manner it is possible to judge the affairs by detecting mode bit corresponding to affairs
Whether operation is successful or abnormal.
Affairs corresponding to the mode bit judge whether multiple affairs run completion by record status bit.By recording shape
The mode of state position, the operation conditions for the affairs that can be quickly detected corresponding to mode bit, so as to be handled, effectively increase
Data processing performance.
When mode bit for default mark when, then affairs operation exception corresponding to mode bit, i.e. default mark is transported in affairs
One set before that goes is used for that a affairs normal operation whether mark judged.
According to embodiments of the present invention, by recording each mode bit corresponding to affairs in multiple affairs, multiple affairs are judged
Mode bit whether be default mark, if default mark, it is determined that affairs corresponding to the mode bit occur abnormal, rerun
Abnormal affairs.The affairs of operation exception are determined using mode bit, the detection speed of abnormal transaction is improved, further improves number
According to the efficiency of processing.
Preferably, data processing equipment also includes:Creating unit, for be separately operable multiple affairs pending to handle
Before data, the state table for flag state position is created;Updating block, it is to start to transport for updating the mode bit in state table
Row time, operation starting time are the time that multiple affairs bring into operation, wherein, when each affairs end of run in multiple affairs
When, the mode bit of the affairs of end of run is updated to the end of run time of the affairs of end of run on state table, judged
Module is additionally operable to judge whether mode bit is operation starting time, wherein, if it is judged that mode bit is operation starting time, then
Determine affairs operation exception corresponding to mode bit.
Specifically, the mark of running status can be used as by the use of timestamp in embodiments of the present invention.Record affairs operation
Timestamp, wherein it is possible to be when affairs are run successfully, change the end of run time corresponding with the affairs in state table;Such as
Fruit operation failure, then the mode bit in state table is still operation starting time, so, can by judge the mode bit whether be
Operation starting time judges the state whether to be default mark, so that it is determined that affairs whether operation exception.
For example, as shown in figure 4, the data in embodiments of the invention are written with 5 affairs includes:Affairs A (write-in dimensions
Data), affairs B (write-in factual data), affairs C (write-in factual data), affairs D (write-in factual data) and affairs E (write-in
Factual data), wherein, share the parallel branch that 4 (affairs B, affairs C, affairs D and affairs E) writes factual data.
State table is as shown in table 1, and when multiple affairs bring into operation, the time in more row state table is when bringing into operation
Between, for example, first time operation starting time is arranged to 0:00:00, the paralleling transaction first time end of run time is recorded, if the
The end time of paralleling transaction normal operation is 15:00:00, then may determine that the paralleling transaction end of run time whether phase
Etc. being 15:00:00, if equal, then it is assumed that this time issued transaction success, and by this end of run time 15:00:00 makees
The time to be brought into operation for affairs next time.Program enters before parallel each branch, when first determining whether corresponding to the branch
Between stab whether be equal to this end of run time 15:00:00, if unequal, branch's affairs operation exception, hold again
The affairs of the row branch, other affairs need not rerun;If equal, branch is directly jumped out, and this end of run
Time 15:00:00 conduct runs the time started next time.This step judges to be used for ensureing if a certain parallel branch appearance is different before
Often, then the branch is only handled after reruning, without normal branch between processing.The effect handled again is improved with this
Rate.
After branch's affairs end of run of the operation exception, timestamp corresponding to renewal is the end of run time 15:00:
00.Run and complete when whole branch's affairs, when judging whether the operation starting time of 4 paralleling transactions is equal to end of run again
Between, if equal, the operation of this affairs is fully completed.In the present embodiment if operation starting time and end of run time
All it is 15:00:00, then this affairs operation is fully completed.
Alternatively, mode bit is digital state position, wherein, when digital state position is the first numerical value, digital state position is right
The affairs end of run answered, when digital state position is second value, affairs operation exception, judges list corresponding to digital state position
Member includes:Second judge module, for judging that digital state position is the first numerical value or second value, wherein, if it is judged that
When digital state position is the first numerical value, affairs end of run corresponding to digital state position is determined;If it is judged that digital state position
When being second value, affairs operation exception corresponding to digital state position is determined.
First numerical value and second value can be the data for representing different running statuses, and the first numerical value can be 1, the second number
Value can be 0, for example, it is assumed that when mode bit is 1, affairs corresponding to mode bit 1 terminate, that is, judge affairs normal operation;Assuming that
When mode bit is 0, affairs operation exception corresponding to mode bit 0.
Specifically, before multiple paralleling transactions are run first, the mode bit of the plurality of affairs is arranged to 0, first
During end of run, judge multiple affairs respectively corresponding to mode bit, if mode bit is changed into 1, multiple affairs whole normal operations,
The directly affairs of operation next time;If it is 0 to have mode bit corresponding at least one affairs between multiple affairs, the corresponding shape
The affairs that state position is 0 are reruned, and the affairs of other normal operations are not influenceed by the affairs of the operation exception, when the operation is different
When normal affairs are completed, mode bit corresponding to renewal is 1.When whole affairs, which are run, to be completed, judge again the plurality of and act
Whether mode bit corresponding to business is 1, if corresponding mode bit is all 1, the operation of this affairs is fully completed.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind
Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, mobile terminal, server or network equipment etc.) performs side described in each embodiment of the present invention
The all or part of step of method.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to be stored
The medium of program code.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.