Summary of the invention
In view of this, the disclosure provides a kind of data statistical approach and device, in the number for protecting two data owning sides
On the basis of privacy, realize that two sides calculate safely.
Specifically, this specification one or more embodiment is achieved by the following technical solution:
In a first aspect, providing a kind of data statistical approach, the method is applied to joint local data side and cooperation data
The data of side carry out data statistics, and local data side has multiple first data of statistical value to be calculated, the multiple first number
According to different Data Identifications is respectively corresponded, cooperation data side has corresponding multiple second data of the Data Identification, the side
Method includes:
Corresponding to each Data Identification, the first parameter and the second parameter are generated;If the Data Identification corresponding first counts
According to data statistics is not involved in, then the second parameter is equal to the first parameter, and otherwise, second parameter is according to the first parameter and described
First data are calculated;
By the first parameter and the second parameter of each Data Identification and the corresponding Data Identification, it is sent to cooperation number
According to side;
Partner's calculated value that cooperation data side returns is received, partner's calculated value is cooperation data root according to selection
The first parameter or the second parameter obtain, if corresponding second data of the Data Identification participate in data statistics, cooperate data
The second parameter of side's selection, otherwise, cooperation data side selects the first parameter;
By removing the calculated value of the first parameter unless each in partner's calculated value, the statistical value is obtained.
Second aspect, provides a kind of data statistical approach, the method be used for local data side and statistical data side it
Between carry out data statistics, the statistical data side has multiple first data of statistical value to be calculated, the multiple first data
Different Data Identifications is respectively corresponded, the local data side has corresponding second data of same Data Identification;The method
Include:
Receive the first parameter and second of Data Identification and the corresponding Data Identification that the statistical data side is sent
Parameter;Wherein, when corresponding first data of the Data Identification participate in data statistics, second parameter is according to the first ginseng
Several and first data are calculated, and otherwise, second parameter is equal to the first parameter;
If corresponding second data of the Data Identification are the local data for participating in data statistics, the data mark is selected
Know corresponding second parameter;Otherwise, corresponding first parameter of the Data Identification is selected;
Statistics calculating is carried out according to the first parameter of selection and the second parameter, obtains partner's calculated value;
Partner's calculated value is sent to the statistical data side, so that the statistical data root is according to the conjunction
Work side's calculated value removes the calculated value of the first parameter unless each, obtains the statistical value.
The third aspect provides a kind of data statistics device, and described device is for joint local data side and cooperation data side
Data carry out data statistics, the local data side have statistical value to be calculated multiple first data, the multiple first
Data respectively correspond different Data Identifications, and the cooperation data side has corresponding multiple second data of the Data Identification;
Described device includes:
Parameter generation module generates the first parameter and the second parameter for corresponding to each Data Identification;If the data
It identifies corresponding first data and is not involved in data statistics, then the second parameter is equal to the first parameter, and otherwise, second parameter is root
It is calculated according to the first parameter and first data;
Data transmission blocks, for by the first parameter and second of each Data Identification and the corresponding Data Identification
Parameter is sent to the cooperation data side;
Data reception module, the partner's calculated value returned for receiving cooperation data side, partner's calculated value are
Cooperation data root is obtained according to the first parameter or the second parameter of selection, if corresponding second data of the Data Identification participate in number
According to statistics, then cooperate data side and select the second parameter, otherwise, cooperation data side selects the first parameter;
Statistical disposition module obtains institute for the calculated value by going the first parameter unless each in partner's calculated value
State statistical value.
Fourth aspect, provides a kind of data statistics device, described device be used for local data side and statistical data side it
Between carry out data statistics, the statistical data side has multiple first data of statistical value to be calculated, the multiple first data
Different Data Identifications is respectively corresponded, the local data side has corresponding second data of same Data Identification;Described device
Include:
Parameter receiving module, for receiving the Data Identification and the corresponding data mark that the statistical data side is sent
The first parameter and the second parameter known;Wherein, when corresponding first data of the Data Identification participate in data statistics, described the
Two parameters are calculated according to the first parameter and first data, and otherwise, second parameter is equal to the first parameter;
Parameter selecting module, if being the local number for participating in data statistics for corresponding second data of the Data Identification
According to then selecting corresponding second parameter of the Data Identification;Otherwise, corresponding first parameter of the Data Identification is selected;
It counts computing module and obtains partner for carrying out statistics calculating according to the first parameter and the second parameter of selection
Calculated value;
Numerical value sending module, for partner's calculated value to be sent to the statistical data side, so that the system
The calculated value that root goes the first parameter unless each according to partner's calculated value is counted, the statistical value is obtained.
5th aspect, provides a kind of data statistics equipment, the equipment includes memory, processor, and is stored in
On reservoir and the computer instruction that can run on a processor, the processor perform the steps of when executing instruction
Corresponding to each Data Identification, the first parameter and the second parameter are generated;If the Data Identification corresponding first counts
According to data statistics is not involved in, then the second parameter is equal to the first parameter, and otherwise, second parameter is according to the first parameter and described
First data are calculated;
By the first parameter and the second parameter of each Data Identification and the corresponding Data Identification, it is sent to cooperation number
According to side;
Partner's calculated value that cooperation data side returns is received, partner's calculated value is cooperation data root according to selection
The first parameter or the second parameter obtain, if corresponding second data of the Data Identification participate in data statistics, cooperate data
The second parameter of side's selection, otherwise, cooperation data side selects the first parameter;
By removing the calculated value of the first parameter unless each in partner's calculated value, the statistical value is obtained.
6th aspect, provides a kind of data statistics equipment, the equipment includes memory, processor, and is stored in
On reservoir and the computer instruction that can run on a processor, the processor perform the steps of when executing instruction
Receive the first parameter and second of Data Identification and the corresponding Data Identification that the statistical data side is sent
Parameter;Wherein, when corresponding first data of the Data Identification participate in data statistics, second parameter is according to the first ginseng
Several and first data are calculated, and otherwise, second parameter is equal to the first parameter;
If corresponding second data of the Data Identification are the local data for participating in data statistics, the data mark is selected
Know corresponding second parameter;Otherwise, corresponding first parameter of the Data Identification is selected;
Statistics calculating is carried out according to the first parameter of selection and the second parameter, obtains partner's calculated value;
Partner's calculated value is sent to the statistical data side, so that the statistical data root is according to the conjunction
Work side's calculated value removes the calculated value of the first parameter unless each, obtains the statistical value.
The data statistical approach and device of this specification one or more embodiment, by generating for obscuring truthful data
The first parameter and the second parameter, by these parameters be sent to cooperation data side when, can make cooperate data side will not know
Know the truthful data of local terminal, also, cooperating partner's calculated value that data side returns is also the data mistake according to cooperation data side
Filter condition determines, and local terminal not will recognize that the data selection done cooperation data side, is protecting two data to gather around to realize
On the basis of the data-privacy for the side of having, two number formularies of joint are calculated according to two sides safety has been carried out.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment,
Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment
Scheme is clearly and completely described, it is clear that described embodiment is only a part of the embodiment, rather than whole realities
Apply example.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, all should belong to the disclosure protection range.
In big data era, the storage mode of data can be vertical mode, i.e., multiple data owning sides can possess together
The different attribute information of one entity, for example, the vehicle insurance of the same natural person point is in a mechanism, the amount for which loss settled of the natural person
In another mechanism.The data of this vertical mode store, and may cause when carrying out some data statistics calculating, can be related to
Multiple data owning sides need multiple data owning sides to cooperate to complete a data statistics.However, due between different enterprises
The considerations of competitive relation or secret protection, cannot reveal the respective data secret of enterprise.
In the example of the disclosure again, it is intended to which the data based on different data owning sides carry out data statistics, while will not
The respective data-privacy of leak data owning side, as follows will be by taking an exemplary application scenarios as an example, this method is described in detail.
Application scenarios:
In one example, data source A and data source B can be respectively as follows: there are two data source.Assuming that data source A can be with
It is a data structures, data source B can be an insurance institution, the two data sources can store the same car owner's respectively
Different information.
Data source A: assuming that data source A can store the vehicle insurance point of each car owner, vehicle insurance point, which can be, carries out car owner
The score precisely drawn a portrait and obtained after risk analysis, the score of vehicle insurance point is higher, may indicate that risk is lower.As shown in table 1, number
Example data structure according to the source side A storage vehicle insurance point is as follows:
The data structure of 1 data source A of table
Column name |
Type |
Explanation |
Example |
idcard_no |
string |
Identification card number |
******197309119564 |
score |
int |
Vehicle insurance point |
510 |
Data source B: assuming that data source B can store the Claims Resolution information of each car owner, for example, the Claims Resolution information of car owner can
To include claim times, amount for which loss settled etc..As shown in table 2, the example data structure for each car owner that the side data source B stores is such as
Under:
The data structure of 2 data source B of table
Column name |
Type |
Explanation |
Example |
idcard_no |
string |
Identification card number |
******197309119564 |
gender |
string |
Gender |
female |
times |
int |
Nearest 1 year claim times |
3 |
amount |
int |
Amount for which loss settled |
3500 |
Based on above-mentioned application scenarios, can the data based on data source A and data source B, it is common to complete data statistics
Processing.For example, the demand of statistical work can be " summations of female user claim times of the statistics vehicle insurance point greater than 500 points ",
So, " vehicle insurance point is greater than 500 points " needs the data of foundation data source A to determine, " female user, claim times " these data
It is stored in data source B, therefore, this statistical work needs the data of data source A and data source B to cooperate.
In description of this specification one or more embodiment to data statistical approach, it can will possess statistical data
Data source is known as statistical data side, another data source can be known as cooperating data side.For example, in statistical work " statistics vehicle
In the summation of female user claim times of the danger point greater than 500 points ", " claim times " are statistical data, so data source B is system
The side of counting, then data source A is cooperation data side.
Statistical data side and cooperation data side can store the different information of the same car owner respectively, can be by statistical data
The owner information (for example, claim times) wait participate in statistics stored in side is known as the first data, will store in cooperation data side
The owner information (for example, vehicle insurance point) of participation statistics be known as the second data.In addition, all including in data source A and data source B
Identification card number idcard_no is properly termed as Data Identification, and statistical data Fang Fang (for example, data source B) can store the data mark
Know corresponding first data, cooperation data side (for example, data source A) can store the same Data Identification corresponding second and count
According to.
Fig. 1 illustrates a kind of process of data statistical approach, may include:
In step 100, statistical data side corresponds to each Data Identification, generates the first parameter and the second parameter.
For example, the first parameter can be a random number, alternatively, the first parameter is also possible to be calculated according to a random number
Obtained numerical value, e.g., the half of random number.
For example, the numerical value of the second parameter can be determined according to data filtering condition, if Data Identification corresponding first
Data meet local data filtering condition, are the data for participating in data statistics, then can be according to the first parameter and the first data
Second parameter is calculated.For example, the first parameter and the first data can be carried out to summation statistics obtains the second parameter.If
Corresponding second data of Data Identification are unsatisfactory for local data filtering condition, then the second parameter can be set equal to the first ginseng
Number.But in actual implementation, the generating mode of the second parameter is not limited to obtain the mode that the first data and the first parameter are summed
It arrives, other calculations can also be used.
In a step 102, statistical data side is by the first parameter of local Data Identification and the corresponding Data Identification
With the second parameter, it is sent to cooperation data side.
At step 104, cooperate data side's selection parameter, if corresponding second data of Data Identification are local participation data
The data of statistics then select corresponding second parameter of the Data Identification;Otherwise, corresponding first parameter of selection Data Identification.
For example, cooperation data side is the of the Data Identification and corresponding data mark that receive the transmission of statistical data side
After one parameter and the second parameter, subsequent step 106 can be participated in the selection of this step progress parameter, the parameter of selection
Processing.
Wherein, cooperation data side can be according to local data filtering condition, if a Data Identification corresponding second
Data meet filter condition, are the data for participating in data statistics, then can choose the second parameter;Otherwise, if a data mark
Know corresponding second data not filter condition, is not the data for participating in data statistics, then can choose the first parameter.
In step 106, the first parameter of selection and the second parameter are carried out statistics calculating by cooperation data side, are cooperated
Square calculated value.For example, when the statistical value to be obtained is summation statistics, can by the first parameter of selection and the second parameter into
Row adduction;Certainly in other statisticals, the first parameter and the second parameter can also be subjected to corresponding other forms
It calculates.
In step 108, partner's calculated value is sent to the statistical data side by cooperation data side.
In step 110, statistical data side removes the calculated value of the first parameter with partner's calculated value, obtains statistical value.
For example, it may be subtracting the sum of each first parameter with partner's calculated value.
The process example of above-mentioned Fig. 1 uses oblivious transfer protocol (Oblivious transfer, OT), which is
A kind of intercommunication agreement for protecting privacy can make communicating pair transmit message in a manner of a kind of selection blurring, can be with
So that the recipient of service obtains certain message of service sender's input in a manner of casual, receiving thus can protect
The privacy of person is not known to sender.
For example, in the example in fig 1, statistical data side can be by all Data Identifications and corresponding first parameter,
Two parameters are sent to cooperation data side, and statistical data side is according to local data filtering condition to the second parameter setting in fact
Different numerical value, but by cooperation data side from the perspective of, what is received is all Data Identifications, will not reveal statistical number
Filter data is crossed according to side.Furthermore statistical data side has obscured the truthful data of oneself by way of two parameters, to cooperation number
It is not true first data according to the first parameter and the second parameter that just transmit, data-privacy will not be caused to reveal.Also,
Again by from the perspective of statistical data side, it received partner's calculated value be to cooperate data side to carry out the choosing after data filtering
It selects, but statistical data side also cannot be distinguished which data cooperation data side has selected, therefore, the data of cooperation data side also can
Access secret protection.
Based on data structure shown in table 1, it is assumed that vehicle insurance divided data such as the following table 3 that data source A possesses, wherein idcard_
No can be the identification card number of car owner, and score can be the vehicle insurance point of the car owner.
The data of 3 data source A of table
idcard_no |
score |
1234567 |
490 |
2345678 |
501 |
3456789 |
530 |
Based on data structure shown in table 2, it is assumed that the data that data source B possesses such as the following table 4:
The data of 4 data source B of table
idcard_no |
gender |
times |
amount |
1234567 |
Male |
3 |
5000 |
2345678 |
Female |
7 |
23000 |
3456789 |
Female |
6 |
16000 |
It is based on above-mentioned table 3 and table 4, the summation of female user claim times of the statistics vehicle insurance point greater than 500 points as follows.It can be with
See, the statistical data " claim times " of this statistical work is stored in data source B, and times this column in table 4 are properly termed as
" statistics column ", i.e., the data to this column carry out summation statistics.And " vehicle insurance point is greater than 500 points " in filter condition is located at number
According to source A (the second data are used for the filter condition obtained as statistical value), filter condition " women " is located at data source B, that is, filters
Condition can all exist in two data sources.Data source A and data source B carries out data files, may be implemented to unite to claim times
The work of meter summation (obtaining statistical value).
Fig. 2 illustrates the process that combined data source A and data source B carries out summation statistics, may include:
In step 200, data source B generates a random number for every data line, and according to data filtering condition
Generate M0 and M1.
In this step, such as data exemplified by table 4, the corresponding column of claim times times are statistics column.It is therein 3,7,
6 be all the first data in statistics column.
The random number generated for every data line, it is assumed that corresponding 1234567 random number is t1, corresponding
2345678 random number is t2, and corresponding 3456789 random number is t3.
According to local data filtering condition " female user ", available 2345678 and 3456789 the two
The car owner of idcard_no meets the condition, is the first data for participating in this data statistics;And 1234567 car owner does not meet
Filter condition is not involved in data statistics.Accordingly, it is assumed that each first data in statistics column are indicated with b, then can be generated pair
Answer the first parameter and the second parameter of each idcard_no.First parameter therein can be each idcard_no of above-mentioned correspondence
Random number, the second parameter can be the sum of random number first data corresponding with the idcard_no, and first data can be with
It is the b for participating in statistics.
Such as the example of the following table 5, a random number is all generated to each row of data, it is assumed that the true value of corresponding statistics column is b.It is right
Each row of data traverses, if this row data meets the filter condition of itself, generates M0=t, M1=t+b;If be unsatisfactory for
The filter condition of itself, then generate M0=M1=t.
The MO and M1 of the every data line of table 5
idcard_no |
M0 |
M1 |
1234567 |
t1 |
t1 |
2345678 |
t2 |
t2+7 |
3456789 |
t3 |
t3+6 |
The M0 and M1 that this step generates are that true statistics column data is obscured by the generation of random value, even if cooperation
Data side receives idcard_no corresponding M0 and M1, can not know the corresponding true system of Data Identification idcard_no
Count column data b is how many.For example, even if receiving the corresponding t of Data Identification 23456782And t2+ 7, it can not know true b
Numerical value 7.
In addition, above-mentioned random number t corresponding with each Data Identification respectively1、t2And t3, can be different.
In step 202, data source B by the MO of the Data Identification of every data line and the corresponding Data Identification and
M1 is sent to data source A.
In step 204, data source A is according to local data filtering condition, if the corresponding second data ginseng of Data Identification
With data statistics, then M1 is selected, otherwise, selects MO.
For example, data source A can be according to filter condition " vehicle insurance point be greater than 500 points ", to judge each Data Identification
Whether corresponding second data of idcard_no (score in table 3) are greater than 500 points.If the corresponding score of idcard_no is greater than
500, then " t+b " in table 5 is selected, otherwise, if the corresponding score of idcard_no less than 500, selects " t " in table 5.
For example, by taking idcard_no is 1234567 as an example, the corresponding vehicle insurance point of the Data Identification is 490, and is discontented with
The filter condition of foot " vehicle insurance point is greater than 500 points ", then can choose in table 5 corresponding 1234567 M0, i.e. selection t1.In another example
By taking idcard_no is 2345678 as an example, in table 3, the corresponding vehicle insurance point of the Data Identification is 501, and " vehicle insurance point is greater than satisfaction
500 points " filter condition, then can choose in table 5 corresponding 2345678 M1, i.e. selection t2+7.Similarly, for idcard_no
It is 3456789, t3+6 will be selected.
In step 206, data source A will select number to do cumulative, obtain accumulated value.
For example, the parameter of selection can be carried out accumulation operations by data source A, an accumulated value is obtained.For example, accumulated value can
To be M=t1+t2+7+t3+6.The accumulated value is partner's calculated value.
In a step 208, accumulated value is sent to data source B by data source A.
In step 210, data source B subtracts the sum of M0 with accumulated value, obtains statistical value.
In this step, after data source B receives accumulated value, accumulated value is subtracted the sum of all random number MO, obtained
Seek to the sum of the claim times of statistics.For example, M-(t1+t2+t3)=13 can be calculated, as final statistical value, wherein
M be accumulated value.
In this example, after data source B receives accumulated value, not can know that the side data source A specific choice be M0 or
M1, and only receive an accumulated value;Equally, data source A can not know the participation statistical data of the side data source B filtering,
And only receive two parameters.Therefore, this mode does not reveal either party detailed data in calculating process, and
It has been efficiently completed the summation statistics of two sides.
Above-mentioned process shown in Fig. 2 is for example to seek claim times so that statistical value is the sum of multiple first data as an example
Summation.In other examples, the data statistical approach of this specification one or more embodiment can also be applied to other systems
The scene calculated, for example, statistical value can also be the average value for seeking multiple first data.
For seeking " average values of female user claim times of the vehicle insurance point greater than 500 points ", Fig. 2 institute can also be used
The process flow shown, unlike, different the first parameter and the second parameter can be used.For example, when data line is unsatisfactory for
The filter condition of itself, then the first parameter and the second parameter that corresponding data mark generates can be M0=M1=t;And work as a line
Data meet the filter condition of itself, then the first parameter and the second parameter that corresponding data mark generates can be the first parameter and add
The half of upper first data.
For example, the M0 of generation can be t by taking Data Identification 2345678 in table 5 as an example2, the M1 of generation can be " t2+7/
2".Alternatively, can also be the half that the first parameter is generated as to random number, such as " t2/ 2 ", corresponding second parameter can
To be " (t2+7)/2".It is as shown in table 6 below:
MO and M1 when 6 assembly average of table
idcard_no |
M0 |
M1 |
1234567 |
t1 |
t1 |
2345678 |
t2 |
t2+7/2 |
3456789 |
t3 |
t3+6/2 |
After pending data source B receives the accumulated value M of data source A transmission, it is assumed that data source A selection is rear two row data
(corresponding data mark 2345678 and 3456789), still can be M-(t1+t2+t3)=6.5.
In order to realize that above-mentioned method, this specification one or more embodiment additionally provide a kind of data statistics device,
As shown in figure 3, the apparatus may include: parameter generation module 31, data transmission blocks 32, data reception module 33 and Statistics Division
Manage module 34.
Parameter generation module 31 generates the first parameter and the second parameter for corresponding to each Data Identification;If the number
It is not involved in data statistics according to corresponding first data are identified, then the second parameter is equal to the first parameter, and otherwise, second parameter is
It is calculated according to the first parameter and first data;
Data transmission blocks 32, for by the first parameter of each Data Identification and the corresponding Data Identification and the
Two parameters are sent to the cooperation data side;
Data reception module 33, the partner's calculated value returned for receiving cooperation data side, partner's calculated value
It is that cooperation data root is obtained according to the first parameter or the second parameter of selection, if corresponding second data of the Data Identification participate in
Data statistics then cooperates data side and selects the second parameter, and otherwise, cooperation data side selects the first parameter;
Statistical disposition module 34 is obtained for the calculated value by going the first parameter unless each in partner's calculated value
The statistical value.
In one example, the multiple first data are located locally in the same statistics column of data source.
In one example, parameter generation module 31, for being calculated according to the first parameter and first data
When the second parameter, it is particularly used for being carried out summing by first parameter and first data counting obtaining the second parameter.System
Meter processing module 34 is particularly used for when for by removing the calculated value of the first parameter unless each in partner's calculated value
Subtract the sum of each described first parameter by accumulated value, the accumulated value be cooperate data root according to the first parameter of selection or
Second parameter is cumulative to be obtained.
In one example, parameter generation module 31 are counted for carrying out summation by the first parameter and the first data
It when to the second parameter, is particularly used for: if corresponding first data of the Data Identification, which meet, participates in statistical data for determining
Data filtering condition, then when the statistical value is the sum of multiple first data, first parameter is a random number, institute
Stating the second parameter is the sum of the random number and first data.
In one example, parameter generation module 31 are counted for carrying out summation by the first parameter and the first data
It when to the second parameter, is particularly used for: if corresponding first data of the Data Identification, which meet, participates in statistical data for determining
Data filtering condition, then when the statistical value is the average value of multiple first data, second parameter is described first
Parameter adds the half of first data.
In order to realize that above-mentioned method, this specification one or more embodiment additionally provide a kind of data statistics device,
As shown in figure 4, the apparatus may include: parameter receiving module 41, parameter selecting module 42, statistics computing module 43 and numerical value hair
Send module 44.
Parameter receiving module 41, for receiving the Data Identification and the corresponding data that the statistical data side is sent
The first parameter and the second parameter of mark;Wherein, described when corresponding first data of the Data Identification participate in data statistics
Second parameter is calculated according to the first parameter and first data, and otherwise, second parameter is equal to the first parameter;
Parameter selecting module 42, if being the local number for participating in data statistics for corresponding second data of the Data Identification
According to then selecting corresponding second parameter of the Data Identification;Otherwise, corresponding first parameter of the Data Identification is selected;
Statistics computing module 43 is cooperated for carrying out statistics calculating according to the first parameter and the second parameter of selection
Square calculated value;
Numerical value sending module 44, for partner's calculated value to be sent to the statistical data side, so that described
Statistical data root removes the calculated value of the first parameter unless each according to partner's calculated value, obtains the statistical value.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each module can be realized in the same or multiple software and or hardware when specification one or more embodiment.
Each step in process shown in above method embodiment, execution sequence are not limited to the sequence in flow chart.
In addition, the description of each step, can be implemented as software, hardware or its form combined, for example, those skilled in the art can
In the form of implementing these as software code, can be can be realized the corresponding logic function of the step computer it is executable
Instruction.When it is realized in the form of software, the executable instruction be can store in memory, and by the place in equipment
Device is managed to execute.
For example, corresponding to the above method, this specification one or more embodiment provides a kind of data statistics equipment simultaneously,
The equipment carries out data statistics for the data of joint local data side and cooperation data side, and the local data side has wait count
Multiple first data of statistical value are calculated, the multiple first data respectively correspond different Data Identifications, the cooperation data side
With corresponding multiple second data of the Data Identification.The equipment may include processor, memory and be stored in storage
On device and the computer instruction that can run on a processor, the processor is by executing described instruction, for realizing following step
It is rapid:
Corresponding to each Data Identification, the first parameter and the second parameter are generated;If the Data Identification corresponding first counts
According to data statistics is not involved in, then the second parameter is equal to the first parameter, and otherwise, second parameter is according to the first parameter and described
First data are calculated;
By the first parameter and the second parameter of each Data Identification and the corresponding Data Identification, it is sent to cooperation number
According to side;
Partner's calculated value that cooperation data side returns is received, partner's calculated value is cooperation data root according to selection
The first parameter or the second parameter obtain, if corresponding second data of the Data Identification participate in data statistics, cooperate data
The second parameter of side's selection, otherwise, cooperation data side selects the first parameter;
By removing the calculated value of the first parameter unless each in partner's calculated value, the statistical value is obtained.
For example, corresponding to the above method, this specification one or more embodiment also provides a kind of data statistics equipment, should
Equipment has statistics to be calculated for carrying out data statistics, the statistical data side between local data side and statistical data side
Multiple first data of value, the multiple first data respectively correspond different Data Identifications, and the local data side has same
Corresponding second data of one Data Identification.The equipment may include processor, memory and storage on a memory and can be
The computer instruction run on processor, the processor is by executing described instruction, for realizing following steps:
Receive the first parameter and second of Data Identification and the corresponding Data Identification that the statistical data side is sent
Parameter;Wherein, when corresponding first data of the Data Identification participate in data statistics, second parameter is according to the first ginseng
Several and first data are calculated, and otherwise, second parameter is equal to the first parameter;
If corresponding second data of the Data Identification are the local data for participating in data statistics, the data mark is selected
Know corresponding second parameter;Otherwise, corresponding first parameter of the Data Identification is selected;
Statistics calculating is carried out according to the first parameter of selection and the second parameter, obtains partner's calculated value;
Partner's calculated value is sent to the statistical data side, so that the statistical data root is according to the conjunction
Work side's calculated value removes the calculated value of the first parameter unless each, obtains the statistical value.
The device or module that above-described embodiment illustrates can specifically realize by computer chip or entity, or by having
The product of certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be personal meter
Calculation machine, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation are set
It is any several in standby, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
It should be understood by those skilled in the art that, this specification one or more embodiment can provide for method, system or
Computer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implemented
The form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used one
It is a or it is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to disk storage
Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for server-side
For apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method
The part of embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this public affairs
It opens, all within the spirit and principle of the disclosure, any modification, equivalent substitution, improvement and etc. done should be included in the disclosure
Within the scope of protection.