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:
Obtain each tactful strategy mark hit during decision task is performed;
In default corresponding relation between strategy mark and key assignments position, filled out in the key assignments position corresponding with the tactful mark
Enter the first default monocase numerical value, and in the key assignments position corresponding with other tactful marks in addition to the strategy mark
Insert the second default monocase numerical value;Each monocase numerical value only includes a character;
Utilize the numerical generation target value in the key assignments position in the default corresponding relation;The character that the target value includes
The number of key assignments position that includes less equal than the default corresponding relation of number;
The task identification of the decision task and the target value are bound.
Wherein, each tactful strategy hit during decision task is performed that obtains is identified, including:
Obtain each tactful policy name hit during decision task is performed and identified as the strategy;
Or,
Obtain each tactful policy name hit during decision task is performed;Obtain the policy name that has stored with
The first corresponding relation between the index number of sequential index;Searched and each strategy names respectively in first corresponding relation
Claim corresponding index number and identified as the strategy.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
Numerical generation target value in the key assignments position using in the default corresponding relation, including:
By the numerical value in all key assignments position in the default corresponding relation according to default between the corresponding strategy mark in key assignments position
Order is combined the numerical value for obtaining preset data form;
The numerical value of the preset data form is defined as the target value.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
Numerical generation target value in the key assignments position using in the default corresponding relation, including:
By in the default corresponding relation all key assignments position in numerical value according to key assignments position it is corresponding strategy mark between described in
Preset order is combined the numerical value for obtaining preset data form;
The numerical value of the preset data form is converted to the numerical value of target data form, the numerical value bag of the target data form
Number of the number of the character included less than the character that the numerical value of the preset data form includes;
The numerical value of the target data form is defined as the target value.
Wherein, the task identification by the decision task is bound with the target value, including:
The task identification of the decision task and target value composition one are recorded and stored in the task identification stored
In the second corresponding relation between target value.
Second aspect according to embodiments of the present invention includes there is provided a kind of data processing method, methods described:
When receiving the inquiry request for carrying task identification, the target value mutually bound with the task identification is obtained;
The target value is converted into multiple monocase numerical value;Each monocase numerical value only includes a character;
For each monocase numerical value, in the default corresponding relation between strategy mark and key assignments position, according to the list
Sequence of positions of the character numerical value in the multiple monocase numerical value determines the strategy mark corresponding with the monocase numerical value,
The monocase numerical value is being inserted with the key assignments position for determining that tactful mark is corresponding;
The strategy corresponding with the key assignments position for having inserted the first default monocase numerical value is searched in the default corresponding relation to mark
Know.
Wherein, the target value that the acquisition is mutually bound with the task identification, including:
Obtain the second corresponding relation between the task identification stored and target value;
The numerical value corresponding with the task identification is searched in second corresponding relation and is mutually tied up as with the task identification
Fixed target value.
Wherein, it is described that the target value is converted into multiple monocase numerical value, including:
Whether the data format for judging the target value is preset data form;
When the data format of the target value is preset data form, the target value is split, obtains multiple
Monocase numerical value;
When the data format of the target value is not preset data form, the Data Format Transform by the target value is
Preset data form, the target value of the preset data form being converted to is split, and obtains multiple monocase numbers
Value.
Wherein, the default corresponding relation between strategy mark and key assignments position is the corresponding relation between policy name and key assignments position;
The sequence of positions according to the monocase numerical value in the multiple monocase numerical value is determined and the monocase numerical value
Corresponding strategy mark, including:
Obtain sequence of positions of the monocase numerical value in the multiple monocase numerical value;
In default corresponding relation between the policy name and key assignments position, the plan that sequence of positions is the sequence of positions is searched
Omit title and be used as the strategy corresponding with the monocase numerical value to identify.
Wherein, the default corresponding relation between strategy mark and key assignments position is between index number and the key assignments position of policy name
Corresponding relation;
The sequence of positions according to the monocase numerical value in the multiple monocase numerical value is determined and the monocase numerical value
Corresponding strategy mark, including:
Obtain sequence of positions corresponding index number of the monocase numerical value in the multiple monocase numerical value;
In default corresponding relation between index number and the key assignments position of the policy name, search and the index number phase
Index number together is simultaneously used as the strategy corresponding with the monocase numerical value to identify.
The third aspect according to embodiments of the present invention includes there is provided a kind of data processing equipment, described device:
First acquisition module, each tactful strategy mark hit for obtaining during decision task is performed;
First inserts module, in the default corresponding relation between strategy mark and key assignments position, being identified with the strategy
The first default monocase numerical value is inserted in corresponding key assignments position, and is marked with other strategies in addition to the strategy mark
The second default monocase numerical value is inserted in sensible corresponding key assignments position;Each monocase numerical value only includes a character;
Generation module, for utilizing the numerical generation target value in the key assignments position in the default corresponding relation;The target
Number of the number for the character that numerical value includes less equal than the key assignments position that the default corresponding relation includes;
Binding module, for the task identification of the decision task and the target value to be bound.
Wherein, first acquisition module includes:
First acquisition unit, for obtaining each tactful policy name hit during decision task is performed and conduct
The strategy mark;
Or,
Second acquisition unit, for obtaining each tactful policy name hit during decision task is performed;
3rd acquiring unit, for obtaining the first corresponding pass between the policy name stored and the index number of sequential index
System;
First searching unit, is compiled for searching the index corresponding with each policy name respectively in first corresponding relation
Number and be used as it is described strategy mark.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
The generation module includes:
First assembled unit, for the numerical value in all key assignments position in the default corresponding relation is corresponding according to key assignments position
Preset order between strategy mark is combined the numerical value for obtaining preset data form;
First determining unit, for the numerical value of the preset data form to be defined as into the target value.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
The generation module includes:
Second assembled unit, for the numerical value in all key assignments position in the default corresponding relation is corresponding according to key assignments position
The preset order between strategy mark is combined the numerical value for obtaining preset data form;
First converting unit, the numerical value for the numerical value of the preset data form to be converted to target data form, the mesh
Number of the number less than the character that the numerical value of the preset data form includes for the character that the numerical value of mark data format includes;
Second determining unit, for the numerical value of the target data form to be defined as into the target value.
Wherein, the binding module by the task identification of the decision task and the target value specifically for constituting a note
Record and be stored in the second corresponding relation between the task identification stored and target value.
Fourth aspect according to embodiments of the present invention includes there is provided a kind of data processing equipment, described device:
Second acquisition module, for when receiving the inquiry request for carrying task identification, acquisition mutually to be tied up with the task identification
Fixed target value;
Modular converter, for the target value to be converted into multiple monocase numerical value;Each monocase numerical value only includes one
Character;
Determining module, for for each monocase numerical value, the default corresponding relation between key assignments position to be identified in strategy
In, determined according to sequence of positions of the monocase numerical value in the multiple monocase numerical value relative with the monocase numerical value
The strategy mark answered;Second inserts module, for described in inserted with the key assignments position for determining that tactful mark is corresponding
Monocase numerical value;
Searching modul, for searching the key assignments position phase with having inserted the first default monocase numerical value in the default corresponding relation
Corresponding strategy mark.
Wherein, second acquisition module includes:
4th acquiring unit, for obtaining the second corresponding relation between the task identification stored and target value;
Second searching unit, for searching the numerical value corresponding with the task identification and conduct in second corresponding relation
The target value mutually bound with the task identification.
Wherein, the modular converter includes:
Judging unit, for judging whether the data format of the target value is preset data form;
First split cells, for when the data format of the target value is preset data form, by the target value
Split, obtain multiple monocase numerical value;
Second converting unit, for when the data format of the target value is not preset data form, by the number of targets
The Data Format Transform of value is preset data form;Second split cells, for by the preset data form being converted to
Target value split, obtain multiple monocase numerical value.
Wherein, the default corresponding relation between strategy mark and key assignments position is the corresponding relation between policy name and key assignments position;
The determining module includes:
5th acquiring unit, for obtaining sequence of positions of the monocase numerical value in the multiple monocase numerical value;
3rd searching unit, in the default corresponding relation between the policy name and key assignments position, searching sequence of positions
Policy name for the sequence of positions is simultaneously used as the strategy mark corresponding with the monocase numerical value.
Wherein, the default corresponding relation between strategy mark and key assignments position is between index number and the key assignments position of policy name
Corresponding relation;
The determining module includes:
6th acquiring unit, it is corresponding for obtaining sequence of positions of the monocase numerical value in the multiple monocase numerical value
Index number;
4th searching unit, in the default corresponding relation between the index number of the policy name and key assignments position, looking into
Look for the index number identical index number and identified as the strategy corresponding with the monocase numerical value.
The technical scheme that embodiments of the invention are provided can include the following benefits:
In the prior art, the policy name of the All Policies hit during performing decision task can be obtained, then will life
In each tactful policy name be recorded and stored in policy name and task with the task identification of decision task composition respectively
In corresponding relation between mark.And can obtain the policy name of miss All Policies, and by the decision task
Task identification is constituted respectively with miss each tactful policy name and record storage is in task identification and miss strategy
In corresponding relation between title.It is required for all storing the policy name of All Policies however, often performing a decision task
Get off, due to many characters that the policy name of strategy is generally comprised, directly deposit each tactful policy name of hit
More memory space can be taken by storing up.
In embodiments of the present invention, each tactful strategy mark hit during decision task is performed is obtained;In plan
In default corresponding relation slightly between mark and key assignments position, first is inserted in the key assignments position corresponding with the strategy of acquisition mark
Default monocase numerical value, and inserted in the key assignments position corresponding with other tactful marks in addition to the strategy mark of acquisition
Second default monocase numerical value;Utilize the numerical generation target value in the key assignments position in above-mentioned default corresponding relation, number of targets
The number for the character that value includes is less equal than the number for the key assignments position that default corresponding relation includes;By appointing for the decision task
Business mark is bound with target value.For any strategy, it can just represent to perform decision task using a monocase numerical value
During whether hit the strategy, it is same for other each strategies.And because monocase numerical value only includes one
Individual character, and the policy name of strategy generally comprises many characters, therefore, can be saved using the method for the embodiment of the present invention
Memory space.
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.
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, each tactful strategy mark hit during decision task is performed is obtained;
The strategy mark of strategy can be tactful policy name or the index number of strategy etc..
In an embodiment of the invention, each tactful strategy names hit during decision task is performed can be obtained
Claim, and be used as strategy mark.
In an alternative embodiment of the invention, technical staff is embodied as the index number that All Policies distribute a sequential index, appoints
The tactful index number of meaning two is different.For each strategy, by the tactful policy name and the tactful mark group of the strategy
Into first corresponding relation of the record storage between policy name and the index number of sequential index, for other each plans
Slightly, aforesaid operations are performed both by.
In all index numbers of distribution, there is preset order between these index numbers.For example, index number be 1,2,
3rd, 4 and 5 etc., there is between these index numbers incremental order.
Therefore, in this step, each tactful policy name hit during decision task is performed can be obtained;
Then the first corresponding relation between the policy name stored and the index number of sequential index is obtained;Finally in the first correspondence
The index number corresponding with each policy name is searched in relation respectively, and is used as strategy mark.
In step s 102, in the default corresponding relation between strategy mark and key assignments position, in the strategy mark phase with acquisition
The first default monocase numerical value is inserted in corresponding key assignments position, and is marked with other strategies in addition to the strategy mark of acquisition
The second default monocase numerical value is inserted in sensible corresponding key assignments position;
In embodiments of the present invention, technical staff is locally being provided with many strategies in advance, when user inputs a sensitive request
When, decision center will carry out a decision-making for sensitivity request, and the process for performing decision task is exactly to judge that the sensitivity please
Ask and hit which of multiple strategies of prior setting strategy.
For example, a strategy is odd-numbered day payment times restriction strategy, this strategy includes an odd-numbered day payment times threshold value.
When sensitivity request is pays request, the user same day prepaid number of times is counted, by the number of times of the statistics and the strategy
Odd-numbered day payment times threshold value be compared, if the number of times of the statistics be more than or equal to the strategy in odd-numbered day payment times threshold
Value, it is determined that odd-numbered day payment times restriction strategy has been hit in sensitivity request.
For another example another strategy is single payment restriction strategy, this strategy includes a single payment threshold
Value.When sensitivity request is pays request, the payment that the payment is asked and the single payment threshold in the strategy
Value is compared, if the single payment threshold value that the payment of payment request is more than or equal in the strategy, really
Single payment restriction strategy has been hit in fixed sensitivity request.
In embodiments of the present invention, technical staff is stored in the default corresponding relation between strategy mark and key assignments position to set in advance
The strategy mark for the All Policies put, the corresponding key assignments position of each strategy mark.For any one strategy mark correspondence
Key assignments position, when inserting first in identifying corresponding key assignments position in the strategy and presetting monocase numerical value, then it represents that hit this
The corresponding strategy of strategy mark, when inserting the second default monocase numerical value in identifying corresponding key assignments position in the strategy, is then marked
Know the miss strategy and identify corresponding strategy;Corresponding key assignments position is identified for other each strategies, it is same.
When the strategy of strategy is designated the policy name of strategy, the default corresponding relation between strategy mark and key assignments position is plan
Default corresponding relation slightly between title and key assignments position;When the strategy of strategy is designated the index number of strategy, strategy mark
Default corresponding relation between key assignments position is the default corresponding relation between index number and key assignments position.
In an embodiment of the invention, the default corresponding relation between strategy mark and key assignments position can be prior for technical staff
In the corresponding relation being locally created, so, the default correspondence set up in advance may be by when performing step S102 every time
Relation, and empty the numerical value inserted in the key assignments position in default corresponding relation after execution of step S104, under causing
Default corresponding relation once can be still utilized when performing step S102, namely can be successfully in default corresponding relation
The numerical value inserted in key assignments position.
In an alternative embodiment of the invention, each time when performing step S102, can also set up a new strategy mark with
All plans set in advance are all stored in default corresponding relation between key assignments position, default corresponding relation newly-established each time
Strategy mark slightly, deletes newly-established default corresponding relation again after execution of step S104.
In this step, the occurrence of monocase numerical value this hair is preset for the occurrence and second of the first default monocase numerical value
It is bright that this is not limited, it need to only meet the first default monocase numerical value different from the second default monocase numerical value.
Preferably, the first default monocase numerical value can be 0, and the second default monocase numerical value can be 1.
In step s 103, the numerical generation target value in the key assignments position in above-mentioned default corresponding relation is utilized;
In an embodiment of the invention, preset between the All Policies in corresponding relation are identified and meet preset order;For example,
Assuming that strategy is designated index number, such as index number is to have between 1,2,3,4 and 5 etc., these index numbers
Incremental order.
Therefore, this step is specifically as follows:By the numerical value in all key assignments position in default corresponding relation according to key assignments position correspondence
Strategy mark between preset order be combined the numerical value for obtaining preset data form;The numerical value of preset data form is true
It is set to target value.
For example, it is assumed that shown in default corresponding relation table 1 below, preset data form is binary data format.First is default single
Character numerical value is 0, and the second default monocase numerical value is 1.
Table 1
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
Numerical value in key assignments position in table 1 is combined according to the incremental order between the corresponding index number in key assignments position and obtained
The numerical value " 1001101111 " of binary data format, mesh is defined as by the numerical value " 1001101111 " of binary data format
Mark numerical value.
In an alternative embodiment of the invention, preset between the All Policies in corresponding relation are identified and meet preset order;For example,
Assuming that strategy is designated index number, it is assumed that index number is to have between 1,2,3,4 and 5 etc., these index numbers
Incremental order.
Therefore, this step is specifically as follows:By the numerical value in all key assignments position in default corresponding relation according to key assignments position correspondence
Strategy mark between preset order be combined the numerical value for obtaining preset data form;The numerical value of preset data form is changed
For the numerical value of target data form, the number for the character that the numerical value of the target data form includes is less than the preset data form
The number for the character that numerical value includes, is then defined as target value by the numerical value for the target data form being converted to.
For example, it is assumed that shown in default corresponding relation table 2 below, preset data form is binary data format, target data lattice
Formula is octal data form, decimal data form or hexadecimal data form etc., and the embodiment of the present invention is with target data
Form is that decimal data form is illustrated, but not as limiting the scope of the invention, the first default individual character
It is 0 to accord with numerical value, and the second default monocase numerical value is 1.
Table 2
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
Numerical value in key assignments position in table 2 is combined according to the incremental order between the corresponding index number in key assignments position and obtained
The numerical value " 1001101111 " of binary data format, decimal data form is converted to by the numerical value of binary data format
Numerical value " 623 ", target value is defined as by the numerical value " 623 " of decimal data form;Wherein, decimal data form
Numerical value " 623 " includes 3 characters, and the numerical value " 1001101111 " of binary data format includes 10 characters, the decimal system
The number for the character that the numerical value " 623 " of data format includes includes less than the numerical value " 1001101111 " of binary data format
Character number.
In step S104, the task identification of the decision task and target value are bound.
In embodiments of the present invention, the task identification of the decision task can be constituted into one with target value to be recorded and stored in
In the second corresponding relation between the task identification and target value that have stored, to realize target value and the decision task
Task identification is bound.
In the prior art, the policy name of the All Policies hit during performing decision task can be obtained, then will life
In each tactful policy name be recorded and stored in policy name and task with the task identification of decision task composition respectively
In corresponding relation between mark.And can obtain the policy name of miss All Policies, and by the decision task
Task identification is constituted respectively with miss each tactful policy name and record storage is in task identification and miss strategy
In corresponding relation between title.It is required for all storing the policy name of All Policies however, often performing a decision task
Get off, due to many characters that the policy name of strategy is generally comprised, directly deposit each tactful policy name of hit
More memory space can be taken by storing up.
In embodiments of the present invention, each tactful strategy mark hit during decision task is performed is obtained;In plan
In default corresponding relation slightly between mark and key assignments position, first is inserted in the key assignments position corresponding with the strategy of acquisition mark
Default monocase numerical value, and inserted in the key assignments position corresponding with other tactful marks in addition to the strategy mark of acquisition
Second default monocase numerical value;Utilize the numerical generation target value in the key assignments position in above-mentioned default corresponding relation, number of targets
The number for the character that value includes is less equal than the number for the key assignments position that default corresponding relation includes;By appointing for the decision task
Business mark is bound with target value.For any strategy, it can just represent to perform decision task using a monocase numerical value
During whether hit the strategy, it is same for other each strategies.And because monocase numerical value only includes one
Individual character, and the policy name of strategy generally comprises many characters, therefore, can be saved using the method for the embodiment of the present invention
Memory space.
Afterwards, it may be desirable to which which strategy inquiry has hit when performing a certain decision task, in further embodiment of this invention
In, it can by the following method inquire about and which strategy has been hit when performing a certain decision task, referring to Fig. 2, this method bag
Include:
In step s 201, when receiving the inquiry request for carrying task identification, the mesh mutually bound with the task identification is obtained
Mark numerical value;
Wherein, when technical staff needs the strategy and basis that evaluation decision center hits during a certain decision task is performed
When whether the result of determination that the strategy of hit is obtained is accurate, technical staff needs to know that decision center is performing the decision task
During hit which strategy, now technical staff return can to decision center send for inquire about decision center perform should certainly
The tactful inquiry request hit during plan task, the inquiry request carries the task identification of the decision task;In decision-making
The heart receives the inquiry request, and the task identification is extracted from inquiry request, then obtains the task identification stored and target
The second corresponding relation between numerical value;The target value corresponding with the task identification is searched in the second corresponding relation, and will
The target value found is defined as the target value mutually bound with the task identification.
In step S202, target value is converted into multiple monocase numerical value;
Wherein, monocase numerical value is the numerical value using a character representation, namely monocase numerical value is only including a character.
Whether the data format for judging target value is preset data form;When the data format of target value is preset data lattice
During formula, target value is split, multiple monocase numerical value are obtained;When the data format of target value is not preset data
During form, it is preset data form by the Data Format Transform of target value, obtains the target value of preset data form, will
The target value for the preset data form being converted to is split, and obtains multiple monocase numerical value.
For example, in an embodiment of the invention, it is assumed that target value is " 1001101111 ", preset data form is entered for two
Data format processed.Whether the data format for judging target value " 1001101111 " is binary data format, and determine mesh
The data format for marking numerical value is binary data format, then splits target value " 1001101111 ", obtain 10
Monocase numerical value, be respectively:" 1 ", " 0 ", " 0 ", " 1 ", " 1 ", " 0 ", " 1 ", " 1 ", " 1 " and " 1 ".
For example, in an embodiment of the invention, it is assumed that target value " 623 ", preset data form is binary data lattice
Formula.Whether the data format for judging target value " 623 " is binary data format, and determines target value " 623 "
Data format be not binary data format, but for decimal data form, then target value " 623 " is converted to two
Binary data form, obtains the numerical value " 1001101111 " of binary data format, is converted into the number of binary data format
Value " 1001101111 " is split, and obtains 10 monocase numerical value, is respectively:“1”、“0”、“0”、“1”、“1”、
" 0 ", " 1 ", " 1 ", " 1 " and " 1 ".
In step S203, for each monocase numerical value, in the default corresponding relation between strategy mark and key assignments position,
The strategy mark corresponding with the monocase numerical value is determined according to sequence of positions of the monocase numerical value in the plurality of monocase numerical value
Know, the monocase numerical value is inserted in the corresponding key assignments position of the strategy mark with determining;
The default corresponding relation between strategy mark and key assignments in this step and the strategy mark and key assignments in step S102
Between default corresponding relation it is identical.
In an embodiment of the invention, tactful strategy is designated the policy name of strategy, then strategy mark and key assignments position
Between default corresponding relation for policy name and key assignments position between default corresponding relation.
Wherein, determined according to sequence of positions of the monocase numerical value in multiple monocase numerical value corresponding with the monocase numerical value
Strategy mark, Ke Yiwei:
Obtain sequence of positions of the monocase numerical value in the multiple monocase numerical value being converted to;Due to policy name and key assignments
Preset order is met between the All Policies title in default corresponding relation between position, therefore can be in policy name and key assignments
In corresponding relation between position, sequence of positions is searched for the policy name of the sequence of positions and as relative with the monocase numerical value
The strategy mark answered.
In an alternative embodiment of the invention, tactful strategy is designated the index number of strategy, then strategy mark and key assignments position
Between default corresponding relation for index number and key assignments position between default corresponding relation;Such as index number is 1,2,3,4
With 5 etc., there is incremental order between these index numbers.
Wherein, determined according to sequence of positions of the monocase numerical value in multiple monocase numerical value corresponding with the monocase numerical value
Strategy mark, Ke Yiwei:
Obtain sequence of positions corresponding index number of the monocase numerical value in the multiple monocase numerical value being converted to;In rope
Draw numbering key assignments position between default corresponding relation in, search with the index number identical index number and as with the list
The corresponding strategy mark of character numerical value.
In step S204, searched in default corresponding relation corresponding with the key assignments position for having inserted the first default monocase numerical value
Strategy mark.
Further, send corresponding with the key assignments position for having inserted the first default monocase numerical value to the sender of the inquiry request
Strategy mark, or in the local displaying strategy mark corresponding with the key assignments position for having inserted the first default monocase numerical value.
Further, the key assignments position that can also search and insert the second default monocase numerical value in default corresponding relation is relative
The strategy mark answered;Then the key assignments position phase with having inserted the second default monocase numerical value is sent to the sender of the inquiry request
Corresponding strategy mark, or identified in the local displaying strategy corresponding with the key assignments position for having inserted the second default monocase numerical value.
Support to obtain each tactful strategy mark hit during decision task is performed in the embodiment of the present invention;In plan
In default corresponding relation slightly between mark and key assignments position, first is inserted in the key assignments position corresponding with the strategy of acquisition mark
Default monocase numerical value, and inserted in the key assignments position corresponding with other tactful marks in addition to the strategy mark of acquisition
Second default monocase numerical value;Utilize the numerical generation target value in the key assignments position in above-mentioned default corresponding relation, number of targets
The number for the character that value includes is less equal than the number for the key assignments position that default corresponding relation includes;By appointing for the decision task
Business mark is bound with target value.For any strategy, it can just represent to perform decision task using a monocase numerical value
During whether hit the strategy, it is same for other each strategies.And because monocase numerical value only includes one
Individual character, and the policy name of strategy generally comprises many characters, therefore, can be saved using the method for the embodiment of the present invention
Memory space.
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, each tactful strategy mark hit for obtaining during decision task is performed;
First inserts module 12, in the default corresponding relation between strategy mark and key assignments position, being marked with the strategy
Insert the first default monocase numerical value in sensible corresponding key assignments position, and with other strategies in addition to the strategy mark
Mark inserts the second default monocase numerical value in corresponding key assignments position;Each monocase numerical value only includes a character;
Generation module 13, for utilizing the numerical generation target value in the key assignments position in the default corresponding relation;The mesh
Number of the number for the character that mark numerical value includes less equal than the key assignments position that the default corresponding relation includes;
Binding module 14, for the task identification of the decision task and the target value to be bound.
Wherein, the first acquisition module bag 11 is included:
First acquisition unit, for obtaining each tactful policy name hit during decision task is performed and conduct
The strategy mark;
Or,
Second acquisition unit, for obtaining each tactful policy name hit during decision task is performed;
3rd acquiring unit, for obtaining the first corresponding pass between the policy name stored and the index number of sequential index
System;
First searching unit, is compiled for searching the index corresponding with each policy name respectively in first corresponding relation
Number and be used as it is described strategy mark.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
The generation module 13 includes:
First assembled unit, for the numerical value in all key assignments position in the default corresponding relation is corresponding according to key assignments position
Preset order between strategy mark is combined the numerical value for obtaining preset data form;
First determining unit, for the numerical value of the preset data form to be defined as into the target value.
Wherein, preset order is met between the All Policies mark in the default corresponding relation;
The generation module 13 includes:
Second assembled unit, for the numerical value in all key assignments position in the default corresponding relation is corresponding according to key assignments position
The preset order between strategy mark is combined the numerical value for obtaining preset data form;
First converting unit, the numerical value for the numerical value of the preset data form to be converted to target data form, the mesh
Number of the number less than the character that the numerical value of the preset data form includes for the character that the numerical value of mark data format includes;
Second determining unit, for the numerical value of the target data form to be defined as into the target value.
Wherein, the binding module 14 by the task identification of the decision task and the target value specifically for constituting one
It is recorded and stored in the second corresponding relation between the task identification stored and target value.
In the prior art, the policy name of the All Policies hit during performing decision task can be obtained, then will life
In each tactful policy name be recorded and stored in policy name and task with the task identification of decision task composition respectively
In corresponding relation between mark.And can obtain the policy name of miss All Policies, and by the decision task
Task identification is constituted respectively with miss each tactful policy name and record storage is in task identification and miss strategy
In corresponding relation between title.It is required for all storing the policy name of All Policies however, often performing a decision task
Get off, due to many characters that the policy name of strategy is generally comprised, directly deposit each tactful policy name of hit
More memory space can be taken by storing up.
In embodiments of the present invention, each tactful strategy mark hit during decision task is performed is obtained;In plan
In default corresponding relation slightly between mark and key assignments position, first is inserted in the key assignments position corresponding with the strategy of acquisition mark
Default monocase numerical value, and inserted in the key assignments position corresponding with other tactful marks in addition to the strategy mark of acquisition
Second default monocase numerical value;Utilize the numerical generation target value in the key assignments position in above-mentioned default corresponding relation, number of targets
The number for the character that value includes is less equal than the number for the key assignments position that default corresponding relation includes;By appointing for the decision task
Business mark is bound with target value.For any strategy, it can just represent to perform decision task using a monocase numerical value
During whether hit the strategy, it is same for other each strategies.And because monocase numerical value only includes one
Individual character, and the policy name of strategy generally comprises many characters, therefore, can be saved using the method for the embodiment of the present invention
Memory space.
Fig. 4 is a kind of block diagram of data processing equipment according to an exemplary embodiment.Reference picture 4, the device includes:
Second acquisition module 21, for when receiving the inquiry request for carrying task identification, obtaining and the task identification phase
The target value of binding;
Modular converter 22, for the target value to be converted into multiple monocase numerical value;Each monocase numerical value only includes one
Individual character;
Determining module 23, for for each monocase numerical value, the default corresponding pass between key assignments position to be identified in strategy
In system, determined and the monocase numerical value phase according to sequence of positions of the monocase numerical value in the multiple monocase numerical value
Corresponding strategy mark;Second inserts module 24, for being inserted with the key assignments position for determining that tactful mark is corresponding
The monocase numerical value;
Searching modul 25, the key assignments position for searching and having inserted the first default monocase numerical value in the default corresponding relation
Corresponding strategy mark.
Wherein, second acquisition module 21 includes:
4th acquiring unit, for obtaining the second corresponding relation between the task identification stored and target value;
Second searching unit, for searching the numerical value corresponding with the task identification and conduct in second corresponding relation
The target value mutually bound with the task identification.
Wherein, the modular converter 22 includes:
Judging unit, for judging whether the data format of the target value is preset data form;
First split cells, for when the data format of the target value is preset data form, by the target value
Split, obtain multiple monocase numerical value;
Second converting unit, for when the data format of the target value is not preset data form, by the number of targets
The Data Format Transform of value is preset data form;Second split cells, for by the preset data form being converted to
Target value split, obtain multiple monocase numerical value.
Wherein, the default corresponding relation between strategy mark and key assignments position is the corresponding relation between policy name and key assignments position;
The determining module 23 includes:
5th acquiring unit, for obtaining sequence of positions of the monocase numerical value in the multiple monocase numerical value;
3rd searching unit, in the default corresponding relation between the policy name and key assignments position, searching sequence of positions
Policy name for the sequence of positions is simultaneously used as the strategy mark corresponding with the monocase numerical value.
Wherein, the default corresponding relation between strategy mark and key assignments position is between index number and the key assignments position of policy name
Corresponding relation;
The determining module 23 includes:
6th acquiring unit, it is corresponding for obtaining sequence of positions of the monocase numerical value in the multiple monocase numerical value
Index number;
4th searching unit, in the default corresponding relation between the index number of the policy name and key assignments position, looking into
Look for the index number identical index number and identified as the strategy corresponding with the monocase numerical value.
Support to obtain each tactful strategy mark hit during decision task is performed in the embodiment of the present invention;In plan
In default corresponding relation slightly between mark and key assignments position, first is inserted in the key assignments position corresponding with the strategy of acquisition mark
Default monocase numerical value, and inserted in the key assignments position corresponding with other tactful marks in addition to the strategy mark of acquisition
Second default monocase numerical value;Utilize the numerical generation target value in the key assignments position in above-mentioned default corresponding relation, number of targets
The number for the character that value includes is less equal than the number for the key assignments position that default corresponding relation includes;By appointing for the decision task
Business mark is bound with target value.For any strategy, it can just represent to perform decision task using a monocase numerical value
During whether hit the strategy, it is same for other each strategies.And because monocase numerical value only includes one
Individual character, and the policy name of strategy generally comprises many characters, therefore, can be saved using the method for the embodiment of the present invention
Memory space.
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.