CN106997431A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN106997431A
CN106997431A CN201610046778.5A CN201610046778A CN106997431A CN 106997431 A CN106997431 A CN 106997431A CN 201610046778 A CN201610046778 A CN 201610046778A CN 106997431 A CN106997431 A CN 106997431A
Authority
CN
China
Prior art keywords
bitmap
monocase
numerical value
user
unit interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610046778.5A
Other languages
Chinese (zh)
Other versions
CN106997431B (en
Inventor
黄海
沈涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610046778.5A priority Critical patent/CN106997431B/en
Publication of CN106997431A publication Critical patent/CN106997431A/en
Application granted granted Critical
Publication of CN106997431B publication Critical patent/CN106997431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/316User authentication by observing the pattern of computer usage, e.g. typical user behaviour

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiments of the invention provide a kind of data processing method and device, in the present invention, for any user and any operation feature, no matter there is the operating characteristics several times in the user, user's mark in the embodiment of the present invention, the user that the user can be only stored in corresponding relation between operating characteristics and bitmap three identifies and the operating characteristics, do not store the execution moment, but represent whether the per unit period operating characteristics occurs using bitmap, wherein, identifying bitmap corresponding with a certain operating characteristics in a certain user includes multiple monocase numerical value, any monocase numerical value can represent that the user identifies whether corresponding user occurs in that the operating characteristics in the corresponding unit interval of monocase numerical value, therefore, compared to prior art, the embodiment of the present invention can save memory space.

Description

A kind of data processing method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data processing method and device.
Background technology
Currently, user performed on network pay, transfer accounts or log in etc. sensitive operation number of times it is more and more, these are quick Property of the sense operation often with user is closely bound up, therefore, in order to ensure that the property of user is not suffered a loss, when user is performing , it is necessary to judge that the sensitive operation whether there is risk during a certain sensitive operation, and interruption should when the sensitive operation has risk Sensitive operation.
At present, it will usually in the following way come judge the sensitive operation whether there is risk, including:Obtain the sensitive operation Current operation feature, obtain user's each sensitive operation for performing within a period of time before performing the sensitive operation Historical operation feature, judge to whether there is significant difference between current operation feature and historical operation feature, it is notable when existing During difference, determine that the sensitive operation has risk.
Wherein, in order to judge that each sensitive operation that user performs whether there is risk using the above method, whenever user , it is necessary to obtain execution moment when performing the sensitive operation and obtain the operation of the sensitive operation when performing a sensitive operation Feature, user's mark of user, the operating characteristics and execution moment composition one then be recorded and stored in and be locally stored User mark, operating characteristics and perform moment three between corresponding relation in, wherein, perform the moment representation be Date Hour Minute Second, for example, 35 points 03 second at 2015 08 month 05 day 23;It is same for other users.
However, inventor has found that this scheme in correlation technique at least has the disadvantage that during the present invention is realized:
When a user performs many sensitive operations for one day, many bars can be stored on a use in above-mentioned corresponding relation The record at family, it is user mark, an operating characteristics and an execution moment of each record all comprising the user, overall On can take very many memory spaces, when the number of days that user is more and calculates is more, shared by so above-mentioned corresponding relation Memory space will in it is geometric increase.
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:
During the operating characteristics at execution moment and the sensitive operation when getting user and performing sensitive operation, in user's mark In the first corresponding relation between knowledge, operating characteristics and bitmap three, search whether to exist and user mark and the behaviour Make the corresponding bitmap of feature;
When there is the bitmap corresponding with user mark and the operating characteristics, calculate positioned at the end of the bitmap The unit interval being spaced between the corresponding unit interval of monocase numerical value and unit interval where the execution moment Number;Monocase numerical value only includes a character;
In the default monocase numerical value of end supplement described several first of the bitmap, and supplemented with described several the The end of the bitmap of one default monocase numerical value supplements one second default monocase numerical value.
Further, methods described also includes:
When in the absence of the bitmap corresponding with user mark and the operating characteristics, according to the described second default monocase Numerical value creates bitmap;
User mark, the operating characteristics and the bitmap of the establishment are constituted into a record storage corresponding described first In relation.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
The default monocase numerical value of end supplement described several first in the bitmap, and supplemented with the number The end of the bitmap of individual first default monocase numerical value supplements one second default monocase numerical value, including:
Determine the unit interval where the execution moment;
Target time section where the unit interval determined described in being searched in second corresponding relation;
The sub- bitmap corresponding with the target time section found is searched in second corresponding relation;
In the default monocase numerical value of end supplement described several first of the sub- bitmap, and several supplemented with described The end of the sub- bitmap of first default monocase numerical value supplements one second default monocase numerical value.
Further, methods described also includes:
When to inquire about the total number of species for the operating characteristics that user to be checked occurs in unit interval to be checked, in user In the first corresponding relation between mark, operating characteristics and bitmap three, searching whether to exist includes the user's to be checked The target record of user's mark;
When there is the target record of the user for including the user to be checked mark, for each target record, in institute State in the bitmap in target record, judge in the corresponding monocase numerical value of the unit interval to be checked with the presence or absence of described the Two default monocase numerical value;
In the bitmap of all target records, count and exist in the corresponding monocase numerical value of the unit interval to be checked The number of the bitmap of described second default monocase numerical value, and it is used as the total number.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
It is described to judge in the corresponding monocase numerical value of the unit interval to be checked with the presence or absence of the described second default monocase number Value, including:
The target time section where the unit interval to be checked is searched in second corresponding relation;
The target sub- bitmap corresponding with the target time section is searched in second corresponding relation;
Monocase numerical value corresponding with the unit interval to be checked is searched in the sub- bitmap of the target;
With the presence or absence of the described second default monocase numerical value in the monocase numerical value found described in judging.
Second aspect according to embodiments of the present invention includes there is provided a kind of data processing equipment, described device:
First searching modul, for the behaviour for performing moment and the sensitive operation when getting user and performing sensitive operation When making feature, in the first corresponding relation between user's mark, operating characteristics and bitmap three, search whether exist and institute State user and identify the bitmap corresponding with the operating characteristics;
Computing module, for when there is the bitmap corresponding with user mark and the operating characteristics, calculating and being located at institute It is spaced between the corresponding unit interval of monocase numerical value at the end of rheme figure and the unit interval where the execution moment Unit interval number;Monocase numerical value only includes a character;
Complementary module, monocase numerical value is preset for described several first in the end of bitmap supplement, and in supplement The end of the bitmaps of described several first default monocase numerical value supplements one second default monocase numerical value.
Further, described device also includes:
Creation module, for when in the absence of the bitmap corresponding with user mark and the operating characteristics, according to described Second default monocase numerical value creates bitmap;
Memory module, for user mark, the operating characteristics and the bitmap of the establishment to be constituted into a record storage In first corresponding relation.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
The complementary module includes:
Determining unit, for determine it is described execution the moment where unit interval;
First searching unit, for the target where the unit interval determined described in being searched in second corresponding relation Period;
Second searching unit, it is corresponding with the target time section found for being searched in second corresponding relation Sub- bitmap;
Supplementary units, preset monocase numerical value, and mending for described several first in the end of sub- bitmap supplement The end for having filled the sub- bitmap of described several first default monocase numerical value supplements one second default monocase numerical value.
Further, described device also includes:
Second searching modul, the species for the operating characteristics that user to be checked occurs in unit interval to be checked will be inquired about for working as Total number when, identify in user, in the first corresponding relation between operating characteristics and bitmap three, search whether there is bag Include the target record of user's mark of the user to be checked;
Judge module, for when there is the target record of the user for including the user to be checked mark, for each described In target record, the bitmap in the target record, judge in the corresponding monocase numerical value of the unit interval to be checked With the presence or absence of the described second default monocase numerical value;
Statistical module, in the bitmap of all target records, counting the corresponding list of the unit interval to be checked There is the number of the bitmap of the described second default monocase numerical value in character numerical value, and be used as the total number.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
The judge module includes:
3rd searching unit, for being searched in second corresponding relation during target where the unit interval to be checked Between section;
4th searching unit, for searching the target sub- position corresponding with the target time section in second corresponding relation Figure;
5th searching unit, for searching monocase corresponding with the unit interval to be checked in the sub- bitmap of the target Numerical value;
Judging unit, for judging in the monocase numerical value found with the presence or absence of the described second default monocase numerical value.
The technical scheme that embodiments of the invention are provided can include the following benefits:
In the prior art, for any user and any operation feature, there is the operating characteristics several times in the user, existing Corresponding relation in technology will store user's mark, several operating characteristicses and the several unit intervals of several users, Representation at the time of in the prior art is date Hour Minute Second.
And in the present invention, for any user and any operation feature, no matter there is the operating characteristics several times in the user, The use can be only stored in the corresponding relation between user's mark, operating characteristics and bitmap three in the embodiment of the present invention User's mark at family and the operating characteristics, do not store the execution moment, but the per unit period is represented using bitmap Whether the operating characteristics is occurred, wherein, identifying bitmap corresponding with a certain operating characteristics in a certain user includes multiple individual characters Numerical value is accorded with, any monocase numerical value can represent that the user identifies corresponding user in the corresponding unit of the monocase numerical value Between section whether occur in that the operating characteristics, therefore, compared to prior art, the embodiment of the present invention can save 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.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets embodiments of the invention, And be used to explain principle of the invention together with specification.
Fig. 1 is a kind of flow chart of data processing method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of data processing method according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of data processing equipment according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to accompanying drawing When, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.In following exemplary embodiment Described embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are weighed with such as appended The example of the consistent apparatus and method of some aspects be described in detail in sharp claim, the present invention.
Fig. 1 is a kind of flow chart of data processing method according to an exemplary embodiment, as shown in figure 1, this method For in terminal, comprising the following steps.
In step S101, moment and the operating characteristics of the sensitive operation are performed when getting user and performing sensitive operation When, identify in user, in the first corresponding relation between operating characteristics and bitmap three, search whether to exist and the user marks Know the bitmap corresponding with the operating characteristics;
In embodiments of the present invention, user is identified for unique mark user, title or user that can be for user for identifying User account of account etc., the present invention is not limited to this.
Sensitive operation can be to pay, transfer accounts and log in etc. the operation closely bound up with the property of user.
Generally, user is that sensitive operation is performed in the terminal oneself used, therefore, and operating characteristics can be user Hardware identifier of terminal that the IP address of the terminal used or user use etc., the hardware identifier of different terminals is different. Terminal can be mobile phone, tablet personal computer or Intelligent worn device etc., and the present invention is not limited to this.
For example, when user needs login service device, user can obtain the login page for login service device in terminal, Login page includes login account input frame, login password input frame and login button, and user can be in login account input frame Middle input user account, and user cipher is inputted in login password input frame, then click on login button;When terminal connects When receiving user and clicking on the operation of login button, it is determined that receive sensitive operation, now terminal will obtain terminal it is current when Execution moment when carving and performing the sensitive operation as user, then obtain user account that user input in login page with User cipher, and obtain the current IP address of terminal or hardware identifier and be used as the operating characteristics of the sensitive operation, afterwards end Hold to server and send the user account, the user cipher, the execution moment and the operating characteristics.
Server receiving terminal sends the user account, the user cipher, the execution moment and the operating characteristics, then obtains The first corresponding relation between the user's mark, operating characteristics and the bitmap three that are locally stored, and looked into the first corresponding relation Look for the presence or absence of the bitmap identified with the user and the operating characteristics is corresponding.
When there is the bitmap corresponding with user mark and the operating characteristics, in step s 102, calculating and being located at the bitmap The corresponding unit interval of monocase numerical value at end and the unit interval where the execution moment between be spaced unit when Between section number;
Bitmap is made up of multiple monocase numerical value, and any one monocase numerical value is that the first default monocase numerical value or second are default Monocase numerical value, wherein, the first default monocase numerical value can be 0, and the second default monocase numerical value can be 1.
Each monocase numerical value in bitmap all corresponds to a unit interval, in the adjacent monocase numerical value of any two, Two monocase numerical value corresponding period is also adjacent.Secondly, in a bitmap, it is assumed that monocase numerical value 1 and individual character Symbol numerical value 2 is adjacent, and monocase numerical value 1 is located at before monocase numerical value 2, then the corresponding unit interval of monocase numerical value 1 Section and monocase numerical value 1 corresponding unit interval adjacent with the corresponding unit interval of monocase numerical value 2 is located at monocase number Before the corresponding unit interval of value 2.
The duration of unit interval can be 1 second, 2 seconds or 3 seconds etc., and the present invention is not limited to this.It should be noted that In embodiments of the present invention, only with unit interval when be illustrated within a length of 1 second, but not as to the present invention protection The limitation of scope.
Wherein, can be with when a certain monocase numerical value in bitmap to be obtained is corresponding performs the unit interval where the moment The serial number of the monocase numerical value in bitmap is searched, the serial number of the monocase numerical value in bitmap can be:It is located at The number+1 of monocase numerical value before the monocase numerical value.The monocase numerical value corresponding unit interval performed where the moment Section is the unit interval for being ordered as the serial number;For example, the unit interval for being ordered as 1 is the 0th second~the 1st second, The unit interval for being ordered as 2 is the 1st second~the 2nd second, and the unit interval for being ordered as 3 is the 2nd second~the 3rd second etc..
Wherein, in a certain bar record in the first corresponding relation between user's mark, operating characteristics and bitmap three, when When a certain monocase numerical value in bitmap in the record presets monocase numerical value for first, then it represents that user's mark in the record Know operating characteristics of the corresponding user in the record occurred in the corresponding unit interval of a certain monocase numerical value;When the note When a certain monocase numerical value in bitmap in record presets monocase numerical value for second, then it represents that user's mark pair in the record Operating characteristics of the user answered in the corresponding unit interval of a certain monocase numerical value did not occurred the record.
In embodiments of the present invention, for the user and the operating characteristics, when the user in a certain unit interval occurs in that this During operating characteristics and after the default monocase numerical value of end supplement second of bitmap, if one after the unit interval Or continuous multiple unit intervals do not occur this feature, without presetting monocase numerical value in the end of bitmap supplement first, directly To the user when a unit interval after the unit interval occurs in that the operating characteristics, the unit interval is determined The number of section and the unit interval being spaced between the unit interval after the unit interval, then in bitmap End supplement this several first and preset monocase numerical value, then in the position that monocase numerical value is preset supplemented with this several first The end of figure supplements one second default monocase numerical value.
For example, it is assumed that unit interval when a length of 1 second, the first default monocase numerical value is the 0, and second default monocase Numerical value is 1.To user 1 and operating characteristics IP1, it is assumed that now the bitmap corresponding with user 1 and IP1 is " 001101 ", It can be drawn from bitmap " 001101 ":User 1 did not occurred IP1 at the 1st second~the 2nd second, and user 1 was at the 2nd second~the 3rd second Do not occur IP1, user 1 occurred in that IP1 at the 3rd second~the 4th second, and user 1 occurred in that IP1 at the 4th second~the 5th second, use Family 1 did not occurred IP1 at the 5th second~the 6th second, and user was occurring in that IP1 at the 6th second~the 7th second.
Assuming that user 1 did not occurred IP1 at the 7th second~the 8th second, then without to the bitmap corresponding with IP1 of user 1 " 001101 " It is updated, if user 1 does not occur feature IP1 at the 8th second~the 9th second and at the 9th second~the 10th second yet, and until User 1 just occurs in that IP1 within 10th second~the 11st second, because the monocase numerical value " 1 " positioned at bitmap " 001101 " end is right The unit interval answered is the 6th second~the 7th second, and three are spaced between the 6th second~the 7th second and the 10th second~the 11st second Unit interval, be respectively:7th second~the 8th second, the 8th second~the 9th second and the 9th second~the 10th second, then in bitmap " 001101 " End supplements 30, obtains bitmap " 001101000 ", and then supplementing one 1 at bitmap " 001101000 " end obtains To bitmap " 0011010001 ".
In step s 103, this several first is supplemented at the end of the bitmap and presets monocase numerical value, and supplemented with this The end of the bitmap of individual several first default monocase numerical value supplements one 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 embodiments of the present invention, the number for the monocase numerical value that the bitmap sometimes in a record includes can be very more, example Such as, it is assumed that unit interval when a length of 1 second, include 86400 unit intervals within one day, each unit interval is right A monocase numerical value is answered, then after many days, the number of the monocase numerical value included in bitmap will be countless.
When the number for the monocase numerical value that the bitmap during one records includes is very more, if to be searched in a bitmap During the corresponding monocase numerical value of a certain unit interval, it is corresponding in very many monocase numerical value to search the unit interval Monocase numerical value can take a lot of time, and search efficiency is relatively low.
Therefore, in order to improve search efficiency, in an alternative embodiment of the invention, for user's mark, operating characteristics and bitmap Any one record in the first corresponding relation between three, the bitmap during this is recorded is split as many according to target time section Individual sub- bitmap, the duration of target time section is more than the duration of unit interval, for any sub- bitmap of fractionation, by the sub- position Scheme corresponding target time section and the sub- bitmap is stored in the second corresponding relation between target time section and sub- bitmap, for Other each sub- bitmaps split, are performed both by aforesaid operations.Now the bitmap in the first corresponding relation is target time section and son The second corresponding relation between bitmap.
The duration of target time section can be 6 hours, 12 hours or 24 hours etc., and the present invention is not limited to this, this hair Bright embodiment with target time section when be illustrated within a length of 24 hours, but not as limiting the scope of the invention, Namely target time section when a length of 86400 seconds, include up to 86400 monocase numerical value in a sub- bitmap.Wherein, In embodiments of the present invention, every day can be a target time section, and so, target time section can think date, example Such as so-and-so in so-and-so in year one day the moon.
So, if to search the corresponding monocase numerical value of a certain unit interval, the unit interval institute can first be determined Target time section, then in the second corresponding relation between target time section and sub- bitmap search with the target time section Corresponding sub- bitmap, searches the corresponding monocase numerical value of the unit interval, due to the sub- bitmap in the sub- bitmap afterwards The number of the monocase numerical value included is less, therefore it is corresponding quickly can to find the unit interval from the sub- bitmap Monocase numerical value.
If, can for example, 3 points of the 20th~21 second corresponding monocase numerical value when searching 2015 08 month 08 day 15 To determine target time section first as on 08 08th, 2015, then the second couple between target time section and sub- bitmap Should be related to it is middle lookup and target time section 2015 year 08 month corresponding sub- bitmap on the 08th, then with target time section 2015 3 points of the 20th~21 second corresponding monocase numerical value when year searches 15 in 08 day 08 month in corresponding sub- bitmap.
Wherein, in this step S103, it may be determined that the unit interval where the execution moment;In the second corresponding relation Search the target time section where the unit interval determined;The object time searched and found in the second corresponding relation The corresponding sub- bitmap of section;This several first is supplemented at the end of the sub- bitmap and presets monocase numerical value, and supplemented with The end that this several first presets the sub- bitmap of monocase numerical value supplements one second default monocase numerical value.
It is default single according to second in step S104 when in the absence of the bitmap corresponding with user mark and operating characteristics Character numerical value creates bitmap;
When in the absence of the bitmap corresponding with the user of user mark and the operating characteristics, illustrate the user in historical process In do not occurred the operating characteristics also, now in order to which the operating characteristics that the user occurs at the execution moment is stored, Need to create a bitmap according to the second default monocase numerical value.Wherein it is possible to count positioned at the unit where the execution moment The quantity of unit interval before period, generates a room figure, quantity first is supplemented in the figure of room default single Character numerical value, then in last the first default monocase numerical value of default monocase numerical value supplement second.
In step S105, the user is identified, bitmap of the operating characteristics with creating constitutes one and be recorded and stored in first In corresponding relation.
In an alternative embodiment of the invention, sometimes may continuously occur the default individual character of destination number first in a bitmap Numerical value is accorded with, destination number is more than or equal to 4, due to continuously there is the character that the default monocase numerical value of destination number first includes Quantity it is more, therefore, when in a bitmap it is continuous there is the default monocase numerical value of destination number first when, can be by position Continuously occur the default monocase numerical value of destination number first in figure and replace with " the default list of the default identifier first of destination number Character numerical value ", default identifier only includes a character, can be "×" or "+" etc., and the present invention is not limited this It is fixed.
Wherein, in alphabet A~Z, each sequencing numbers of letter in alphabet A~Z is different, for example, A Sequencing numbers in alphabet A~Z are that sequencing numbers of 1, the B in alphabet A~Z are 2, and Z is in alphabet A~Z In sequencing numbers be 26.Therefore, in an alternative embodiment of the invention, it is possible to use sequence of the letter in alphabet A~Z Number to represent destination number.
So, when destination number is less than or equal to 26, " destination number presets identifier first and presets monocase numerical value " Only include 3 characters, so as to save memory space., can be with for example, it is assumed that continuously occur in that 10 0 in bitmap " J × 0 " is replaced with by continuously occur 10 0.
When destination number is more than 26, " destination number preset identifier first preset monocase numerical value " though the character included So it is more than 3, but can still saves memory space;And when destination number is far longer than 26, save the effect of memory space Fruit is more preferably obvious.For example, it is assumed that continuously occurring in that 52 0 in bitmap, " 2 can be replaced with by continuously occur 52 0 ×Z×0”.Or, it is assumed that assuming that continuously occurring in that 45 0 in bitmap, continuously occur 45 0 can be replaced with “3×O×0”。
Wherein, sometimes can may also continuously occur the default monocase numerical value of destination number second, number of targets in a bitmap Amount is more than or equal to 4, due to continuously occur the quantity for the character that the default monocase numerical value of destination number second includes compared with It is many, therefore, when in a bitmap it is continuous there is the default monocase numerical value of destination number second when, can will be continuous in bitmap There is the default monocase numerical value of destination number first and replace with that " it is pre- that destination number presets identifier second in the manner described above If monocase numerical value ", so as to save memory space.
In the prior art, for any user and any operation feature, there is the operating characteristics several times in the user, existing Corresponding relation in technology will store user's mark, several operating characteristicses and the several unit intervals of several users, Representation at the time of in the prior art is date Hour Minute Second.
And in the embodiment shown in Fig. 1 of the present invention, for any user and any operation feature, no matter the user occurred In the corresponding relation between user's mark, operating characteristics and bitmap three in the operating characteristics several times, the embodiment of the present invention only The user that the user can only be stored identifies and the operating characteristics, does not store the execution moment, but using bitmap come table Show whether the per unit period operating characteristics occurs, wherein, identify position corresponding with a certain operating characteristics in a certain user Figure includes multiple monocase numerical value, and any monocase numerical value can represent that the user identifies corresponding user in the monocase Whether the corresponding unit interval of numerical value occurs in that the operating characteristics, therefore, and compared to prior art, the embodiment of the present invention can To save memory space.
Afterwards, it may be desirable to inquire about the total number of the species for the operating characteristics that user occurs in a certain unit interval, exist In further embodiment of this invention, the operating characteristics that user occurs in a certain unit interval can be inquired about by the following method Species total number, referring to Fig. 2, this method includes:
In step s 201, it is total when the species that inquire about the operating characteristics that user to be checked occurs in unit interval to be checked During number, in the first corresponding relation between user's mark, operating characteristics and bitmap three, searching whether to exist includes treating Inquire about the target record of user's mark of user;
When there is the target record of the user for including user to be checked mark, in step S202, for each target record, In bitmap in target record, judge default single with the presence or absence of second in the corresponding monocase numerical value of unit interval to be checked Character numerical value;
Further, when the target record in the absence of user's mark including user to be checked, then illustrate in historical process User did not occurred the operating characteristics, so as to terminate flow.
In an alternative embodiment of the invention, if bitmap in the first corresponding relation is the between target time section and sub- bitmap Two corresponding relations;The duration of target time section is more than the duration of unit interval;
Then this step is specifically as follows:For either objective record, the bitmap in the target record is target time section and sub- position The second corresponding relation between figure, the target time section where searching unit interval to be checked in above-mentioned second corresponding relation; The sub- bitmap of the target corresponding with the target time section found is searched in above-mentioned second corresponding relation;In the sub- bitmap of target Search monocase numerical value corresponding with unit interval to be checked;It is pre- with the presence or absence of second in the monocase numerical value that judgement is found If monocase numerical value.For other each target records, aforesaid operations are performed both by.
In step S203, in the bitmap of all target records, the corresponding monocase numerical value of unit interval to be checked is counted The number of the middle bitmap that there is the second default monocase numerical value, and it is used as the total number.
Fig. 3 is a kind of block diagram of data processing equipment according to an exemplary embodiment.Reference picture 3, the device includes:
First searching modul 11, for performing moment and the sensitive operation when getting user and performing sensitive operation During operating characteristics, identify in user, in the first corresponding relation between operating characteristics and bitmap three, search whether to exist with The user identifies the bitmap corresponding with the operating characteristics;
Computing module 12, for when there is the bitmap corresponding with user mark and the operating characteristics, calculating to be located at Between between the corresponding unit interval of monocase numerical value at the end of the bitmap and the unit interval where the execution moment Every unit interval number;Monocase numerical value only includes a character;
Complementary module 13, presets monocase numerical value, and mending for described several first in the end of bitmap supplement The end for having filled the bitmap of described several first default monocase numerical value supplements one second default monocase numerical value.
Further, described device also includes:
Creation module, for when in the absence of the bitmap corresponding with user mark and the operating characteristics, according to described Second default monocase numerical value creates bitmap;
Memory module, for user mark, the operating characteristics and the bitmap of the establishment to be constituted into a record storage In first corresponding relation.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
The complementary module 13 includes:
Determining unit, for determine it is described execution the moment where unit interval;
First searching unit, for the target where the unit interval determined described in being searched in second corresponding relation Period;
Second searching unit, it is corresponding with the target time section found for being searched in second corresponding relation Sub- bitmap;
Supplementary units, preset monocase numerical value, and mending for described several first in the end of sub- bitmap supplement The end for having filled the sub- bitmap of described several first default monocase numerical value supplements one second default monocase numerical value.
Further, described device also includes:
Second searching modul, the species for the operating characteristics that user to be checked occurs in unit interval to be checked will be inquired about for working as Total number when, identify in user, in the first corresponding relation between operating characteristics and bitmap three, search whether there is bag Include the target record of user's mark of the user to be checked;
Judge module, for when there is the target record of the user for including the user to be checked mark, for each described In target record, the bitmap in the target record, judge in the corresponding monocase numerical value of the unit interval to be checked With the presence or absence of the described second default monocase numerical value;
Statistical module, in the bitmap of all target records, counting the corresponding list of the unit interval to be checked There is the number of the bitmap of the described second default monocase numerical value in character numerical value, and be used as the total number.
Wherein, the bitmap in first corresponding relation is the second corresponding relation between target time section and sub- bitmap;Target The duration of period is more than the duration of unit interval;
The judge module includes:
3rd searching unit, for being searched in second corresponding relation during target where the unit interval to be checked Between section;
4th searching unit, for searching the target sub- position corresponding with the target time section in second corresponding relation Figure;
5th searching unit, for searching monocase corresponding with the unit interval to be checked in the sub- bitmap of the target Numerical value;
Judging unit, for judging in the monocase numerical value found with the presence or absence of the described second default monocase numerical value.
In the prior art, for any user and any operation feature, there is the operating characteristics several times in the user, existing Corresponding relation in technology will store user's mark, several operating characteristicses and the several unit intervals of several users, Representation at the time of in the prior art is date Hour Minute Second.
And in the embodiment shown in Fig. 3 of the present invention, for any user and any operation feature, no matter the user occurred In the corresponding relation between user's mark, operating characteristics and bitmap three in the operating characteristics several times, the embodiment of the present invention only The user that the user can only be stored identifies and the operating characteristics, does not store the execution moment, but using bitmap come table Show whether the per unit period operating characteristics occurs, wherein, identify position corresponding with a certain operating characteristics in a certain user Figure includes multiple monocase numerical value, and any monocase numerical value can represent that the user identifies corresponding user in the monocase Whether the corresponding unit interval of numerical value occurs in that the operating characteristics, therefore, and compared to prior art, the embodiment of the present invention can To save 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.

Claims (10)

1. a kind of data processing method, it is characterised in that methods described includes:
During the operating characteristics at execution moment and the sensitive operation when getting user and performing sensitive operation, in user's mark In the first corresponding relation between knowledge, operating characteristics and bitmap three, search whether to exist and user mark and the behaviour Make the corresponding bitmap of feature;
When there is the bitmap corresponding with user mark and the operating characteristics, calculate positioned at the end of the bitmap The unit interval being spaced between the corresponding unit interval of monocase numerical value and unit interval where the execution moment Number;Monocase numerical value only includes a character;
In the default monocase numerical value of end supplement described several first of the bitmap, and supplemented with described several the The end of the bitmap of one default monocase numerical value supplements one second default monocase numerical value.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
When in the absence of the bitmap corresponding with user mark and the operating characteristics, according to the described second default monocase Numerical value creates bitmap;
User mark, the operating characteristics and the bitmap of the establishment are constituted into a record storage corresponding described first In relation.
3. according to the method described in claim 1, it is characterised in that the bitmap in first corresponding relation is the object time The second corresponding relation between Duan Yuzi bitmaps;The duration of target time section is more than the duration of unit interval;
The default monocase numerical value of end supplement described several first in the bitmap, and supplemented with the number The end of the bitmap of individual first default monocase numerical value supplements one second default monocase numerical value, including:
Determine the unit interval where the execution moment;
Target time section where the unit interval determined described in being searched in second corresponding relation;
The sub- bitmap corresponding with the target time section found is searched in second corresponding relation;
In the default monocase numerical value of end supplement described several first of the sub- bitmap, and several supplemented with described The end of the sub- bitmap of first default monocase numerical value supplements one second default monocase numerical value.
4. the method according to any one of claim 1-3 claim, it is characterised in that methods described also includes:
When to inquire about the total number of species for the operating characteristics that user to be checked occurs in unit interval to be checked, in user In the first corresponding relation between mark, operating characteristics and bitmap three, searching whether to exist includes the user's to be checked The target record of user's mark;
When there is the target record of the user for including the user to be checked mark, for each target record, in institute State in the bitmap in target record, judge in the corresponding monocase numerical value of the unit interval to be checked with the presence or absence of described the Two default monocase numerical value;
In the bitmap of all target records, count and exist in the corresponding monocase numerical value of the unit interval to be checked The number of the bitmap of described second default monocase numerical value, and it is used as the total number.
5. method according to claim 4, it is characterised in that the bitmap in first corresponding relation is the object time The second corresponding relation between Duan Yuzi bitmaps;The duration of target time section is more than the duration of unit interval;
It is described to judge in the corresponding monocase numerical value of the unit interval to be checked with the presence or absence of the described second default monocase number Value, including:
The target time section where the unit interval to be checked is searched in second corresponding relation;
The target sub- bitmap corresponding with the target time section is searched in second corresponding relation;
Monocase numerical value corresponding with the unit interval to be checked is searched in the sub- bitmap of the target;
With the presence or absence of the described second default monocase numerical value in the monocase numerical value found described in judging.
6. a kind of data processing equipment, it is characterised in that described device includes:
First searching modul, for the behaviour for performing moment and the sensitive operation when getting user and performing sensitive operation When making feature, in the first corresponding relation between user's mark, operating characteristics and bitmap three, search whether exist and institute State user and identify the bitmap corresponding with the operating characteristics;
Computing module, for when there is the bitmap corresponding with user mark and the operating characteristics, calculating and being located at institute It is spaced between the corresponding unit interval of monocase numerical value at the end of rheme figure and the unit interval where the execution moment Unit interval number;Monocase numerical value only includes a character;
Complementary module, monocase numerical value is preset for described several first in the end of bitmap supplement, and in supplement The end of the bitmaps of described several first default monocase numerical value supplements one second default monocase numerical value.
7. device according to claim 6, it is characterised in that described device also includes:
Creation module, for when in the absence of the bitmap corresponding with user mark and the operating characteristics, according to described Second default monocase numerical value creates bitmap;
Memory module, for user mark, the operating characteristics and the bitmap of the establishment to be constituted into a record storage In first corresponding relation.
8. device according to claim 6, it is characterised in that the bitmap in first corresponding relation is the object time The second corresponding relation between Duan Yuzi bitmaps;The duration of target time section is more than the duration of unit interval;
The complementary module includes:
Determining unit, for determine it is described execution the moment where unit interval;
First searching unit, for the target where the unit interval determined described in being searched in second corresponding relation Period;
Second searching unit, it is corresponding with the target time section found for being searched in second corresponding relation Sub- bitmap;
Supplementary units, preset monocase numerical value, and mending for described several first in the end of sub- bitmap supplement The end for having filled the sub- bitmap of described several first default monocase numerical value supplements one second default monocase numerical value.
9. the device according to any one of claim 6-8 claim, it is characterised in that described device also includes:
Second searching modul, the species for the operating characteristics that user to be checked occurs in unit interval to be checked will be inquired about for working as Total number when, identify in user, in the first corresponding relation between operating characteristics and bitmap three, search whether there is bag Include the target record of user's mark of the user to be checked;
Judge module, for when there is the target record of the user for including the user to be checked mark, for each described In target record, the bitmap in the target record, judge in the corresponding monocase numerical value of the unit interval to be checked With the presence or absence of the described second default monocase numerical value;
Statistical module, in the bitmap of all target records, counting the corresponding list of the unit interval to be checked There is the number of the bitmap of the described second default monocase numerical value in character numerical value, and be used as the total number.
10. device according to claim 9, it is characterised in that when the bitmap in first corresponding relation is target Between the second corresponding relation between Duan Yuzi bitmaps;The duration of target time section is more than the duration of unit interval;
The judge module includes:
3rd searching unit, for being searched in second corresponding relation during target where the unit interval to be checked Between section;
4th searching unit, for searching the target sub- position corresponding with the target time section in second corresponding relation Figure;
5th searching unit, for searching monocase corresponding with the unit interval to be checked in the sub- bitmap of the target Numerical value;
Judging unit, for judging in the monocase numerical value found with the presence or absence of the described second default monocase numerical value.
CN201610046778.5A 2016-01-22 2016-01-22 Data processing method and device Active CN106997431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610046778.5A CN106997431B (en) 2016-01-22 2016-01-22 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610046778.5A CN106997431B (en) 2016-01-22 2016-01-22 Data processing method and device

Publications (2)

Publication Number Publication Date
CN106997431A true CN106997431A (en) 2017-08-01
CN106997431B CN106997431B (en) 2020-09-25

Family

ID=59428275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610046778.5A Active CN106997431B (en) 2016-01-22 2016-01-22 Data processing method and device

Country Status (1)

Country Link
CN (1) CN106997431B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415952A (en) * 2018-02-02 2018-08-17 北京腾云天下科技有限公司 User data storage method, label computational methods and computing device
CN108415978A (en) * 2018-02-09 2018-08-17 北京腾云天下科技有限公司 User tag storage method, user's portrait computational methods and computing device
CN109471786A (en) * 2018-11-16 2019-03-15 苏州好玩友网络科技有限公司 A kind of collecting method, device, equipment and storage medium
CN110442599A (en) * 2019-07-29 2019-11-12 浙江大华技术股份有限公司 A kind of data processing, the method and apparatus for hiding vehicle query
CN111415200A (en) * 2020-03-20 2020-07-14 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device
CN112269726A (en) * 2020-10-22 2021-01-26 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device
CN112527803A (en) * 2020-12-30 2021-03-19 北京百家科技集团有限公司 Data processing method and device and computer equipment
CN114356972A (en) * 2021-12-03 2022-04-15 四川科瑞软件有限责任公司 Data processing method, and event time-based retrieval method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
CN101582817A (en) * 2009-06-29 2009-11-18 华中科技大学 Method for extracting network interactive behavioral pattern and analyzing similarity
US20110251991A1 (en) * 2005-12-01 2011-10-13 International Business Machines Corporation Journaling database changes using minimized journal entries that may be output in human-readable form
CN103179132A (en) * 2013-04-09 2013-06-26 中国信息安全测评中心 Method and device for detecting and defending CC (challenge collapsar)
CN103581626A (en) * 2013-11-04 2014-02-12 浙江宇视科技有限公司 Video monitoring system and video storage information recording method
CN104486777A (en) * 2014-12-01 2015-04-01 中国联合网络通信集团有限公司 Method and device for processing data
CN104680395A (en) * 2009-08-28 2015-06-03 谷歌公司 Audience segment estimation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110251991A1 (en) * 2005-12-01 2011-10-13 International Business Machines Corporation Journaling database changes using minimized journal entries that may be output in human-readable form
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
CN101582817A (en) * 2009-06-29 2009-11-18 华中科技大学 Method for extracting network interactive behavioral pattern and analyzing similarity
CN104680395A (en) * 2009-08-28 2015-06-03 谷歌公司 Audience segment estimation
CN103179132A (en) * 2013-04-09 2013-06-26 中国信息安全测评中心 Method and device for detecting and defending CC (challenge collapsar)
CN103581626A (en) * 2013-11-04 2014-02-12 浙江宇视科技有限公司 Video monitoring system and video storage information recording method
CN104486777A (en) * 2014-12-01 2015-04-01 中国联合网络通信集团有限公司 Method and device for processing data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FREEDOMAI: ""位图法统计活跃用户"", 《HTTPS://BLOG.CSDN.NET/FREEDOMAI/ARTICLE/DETAILS/48167363》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415952A (en) * 2018-02-02 2018-08-17 北京腾云天下科技有限公司 User data storage method, label computational methods and computing device
CN108415978A (en) * 2018-02-09 2018-08-17 北京腾云天下科技有限公司 User tag storage method, user's portrait computational methods and computing device
CN108415978B (en) * 2018-02-09 2021-04-09 北京腾云天下科技有限公司 User tag storage method, user portrait calculation method and calculation equipment
CN109471786A (en) * 2018-11-16 2019-03-15 苏州好玩友网络科技有限公司 A kind of collecting method, device, equipment and storage medium
CN110442599A (en) * 2019-07-29 2019-11-12 浙江大华技术股份有限公司 A kind of data processing, the method and apparatus for hiding vehicle query
CN111415200A (en) * 2020-03-20 2020-07-14 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device
CN111415200B (en) * 2020-03-20 2023-05-26 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device
CN112269726A (en) * 2020-10-22 2021-01-26 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device
CN112527803A (en) * 2020-12-30 2021-03-19 北京百家科技集团有限公司 Data processing method and device and computer equipment
CN112527803B (en) * 2020-12-30 2024-01-26 北京百家科技集团有限公司 Data processing method and device and computer equipment
CN114356972A (en) * 2021-12-03 2022-04-15 四川科瑞软件有限责任公司 Data processing method, and event time-based retrieval method and device

Also Published As

Publication number Publication date
CN106997431B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN106997431A (en) A kind of data processing method and device
CN110489644B (en) Information pushing method, information pushing device, computer readable storage medium and computer equipment
EP3370391B1 (en) System for data cleansing based aggregation and prioritization of it asset field values from real-time event logs and method thereof
Hasija et al. Scheduling in flowshops to minimize total tardiness of jobs
Sung et al. Extended optimal replacement policy for a two-unit system with failure rate interaction and external shocks
CN105577402B (en) Service exception monitoring method and equipment based on historical data
CN107330119B (en) Caching data processing method, electronic equipment, computer storage media
CN106599725B (en) The randomization method for secret protection of diagram data publication
CN106487860A (en) The processing method and processing device of job information
CN108259533A (en) A kind of data transmission method and device
CN110795471A (en) Data matching method and device, computer readable storage medium and electronic equipment
CN104408189B (en) The methods of exhibiting and device of keyword ranking
CN104778177A (en) Data processing method and device
CN110807618A (en) Dynamic scheduling method, device and equipment
CN104239538B (en) A kind of snapshot-type log compression method, system and device
CN106528575B (en) Data interconnection method and device
CN110362540A (en) A kind of storage of data, visitor's number acquisition methods and device
JP2008129796A (en) Computer system for estimating credit rating of telephone contractor based on telephone number
CN105404671A (en) Implementation method and apparatus for mobile terminal electronic billing
CN110837606A (en) Spatio-temporal data fusion query method, device, server and storage medium
CN106126633A (en) The processing method of noble metal data, device and system
CN104299141A (en) Data processing method and device
CN107168547B (en) Method and device for inputting command
CN109388385A (en) Method and apparatus for application and development
CN104537104A (en) Software ranking method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200922

Address after: Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: Grand Cayman Islands

Patentee before: Alibaba Group Holding Ltd.