CN105677512B - Data processing method and device and electronic equipment - Google Patents
Data processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN105677512B CN105677512B CN201511032339.0A CN201511032339A CN105677512B CN 105677512 B CN105677512 B CN 105677512B CN 201511032339 A CN201511032339 A CN 201511032339A CN 105677512 B CN105677512 B CN 105677512B
- Authority
- CN
- China
- Prior art keywords
- data
- type
- format
- preset
- storing data
- 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.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 14
- 238000001914 filtration Methods 0.000 claims description 61
- 238000013500 data storage Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 7
- 230000005611 electricity Effects 0.000 description 5
- KUBDPQJOLOUJRM-UHFFFAOYSA-N 2-(chloromethyl)oxirane;4-[2-(4-hydroxyphenyl)propan-2-yl]phenol Chemical compound ClCC1CO1.C=1C=C(O)C=CC=1C(C)(C)C1=CC=C(O)C=C1 KUBDPQJOLOUJRM-UHFFFAOYSA-N 0.000 description 2
- 241001269238 Data Species 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1461—Backup scheduling policy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a data processing method, a data processing device and electronic equipment, wherein the method comprises the following steps: receiving a data classification instruction for classifying stored data in the electronic equipment; identifying the format of the stored data in the electronic equipment, and matching the format of the stored data with a preset format corresponding to a preset data type in a preset format library; and judging whether a preset format matched with the format of the stored data exists in the preset format library, if so, determining the data type of the stored data as a preset data type corresponding to the matched preset format. By applying the embodiment of the invention, the stored data in the electronic equipment can be accurately and comprehensively classified by matching the format corresponding to the type of the preset data in the preset format library.
Description
Technical field
The present invention relates to data security arts, in particular to a kind of data processing method, device and electronic equipment.
Background technique
In this day and age, everyone life has been come into internet, with electronic equipment (such as desktop computer, notebook electricity
Brain, tablet computer and smart phone) it is universal, people are increasingly dependent on using electronic equipment, produce in the electronic device
More and more data related to user, such as photo, video and music.As hardware technology updates adding for the speed of iteration
Fastly, user often frequently replaces used electronic equipment, however, since there are various in electronic equipment used by a user
The application program of various kinds, and these application programs can generate different types of data, when being backed up or being shown to data,
It generally requires to carry out classification processing to data.
However, existing data classification method, is that the position stored according to the data is classified, as contact person can be total to
With being stored in address list, the related data of instant communication software can be stored in the relevant position of the instant communication software,
When classifying according to such method to data, can there is a situation where that identification is not accurate enough, make troubles for the use of user.
Summary of the invention
The embodiment of the invention discloses a kind of data processing method, device and electronic equipment, it can solve and how to realize pair
Storing data carries out accurate and comprehensive classification in electronic equipment.Concrete scheme is as follows:
In a first aspect, being applied to electronic equipment, the method packet the embodiment of the invention provides a kind of data processing method
It includes:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
Preferably, the method also includes:
According to the corresponding filtering rule of the preset data type, the storing data is filtered;
Filtered storing data is saved.
Preferably, when the data type is picture type, it is described according to the corresponding filtering of the preset data type
Rule is filtered the storing data, comprising:
The storage location of the identification storing data, judges whether the storage location is located at the storage region of setting
In;
If it is not, when the storing data is generated by instant messaging IM application program, the filtering storing data, when
When the storing data is generated by non-IM application program, whether the data volume of the judgement storing data is default less than first
Numerical value, if being less than, the filtering storing data.
Preferably, when the data type is audio types or video type, it is described according to the preset data type
Corresponding filtering rule is filtered the storing data, comprising:
Whether the judgement storing data is stored in the storage region of setting, if it is not, the judgement storing data
Data volume whether less than the second default value, if being less than, the filtering storing data.
Preferably, the method also includes:
Backup reception data instruction, the data backup command carry the data type of classification data;
According to the data type of the classification data carried in the data backup command, to the classification data
It is backed up.
Preferably, the method also includes:
According to the performance of the backup of the classification data, prompt information is exported, to prompt to have classified described in user
Whether data back up completion.
Preferably, the preset data type in the preset format library, comprising:
In audio types, video type, picture type, short message type, message registration type and address list type at least
It is a kind of.
Preferably, the corresponding format of the audio types includes:
At least one of WMA, MP3, WAV, MID.
Preferably, the corresponding format of the video type includes:
At least one of AVI, RMVB, RM, ASF, DIVX, MPG, MPEG, MPE, WMV, MP4, MKV, VOB.
Preferably, the corresponding format of the picture type includes:
At least one of BMP, JPG, JPEG, PNG, GIF.
Second aspect, the embodiment of the invention also provides a kind of data processing equipments, are applied to electronic equipment, described device
It include: sort instructions receiving module, format match module, judgment module and determination type module;
The sort instructions receiving module: for receiving for storing data is classified in the electronic equipment
Data classification instruction;
The format match module: the format of storing data in the electronic equipment for identification has been stored described
The corresponding preset format of the preset data type for including in the format of data and preset format library is matched;
The judgment module: for judging in the preset format library, if there is the format with the storing data
Matched preset format, if so, triggering the determination type module;
The determination type module: for the data type of the storing data to be determined as to matched default lattice
The corresponding preset data type of formula.
Preferably, described device further includes data filtering module and data storage module;
The data filtering module: for having been stored to described according to the corresponding filtering rule of the preset data type
Data are filtered;
The data storage module: for saving filtered storing data.
Preferably, when the determination type module determines that the data type is picture type, the data filtering mould
Block includes the first storage location judging unit, the first data generation judging unit, the first data volume judging unit and the first data
Filter element;
The first storage location judging unit: the storage location of the storing data for identification is deposited described in judgement
Storage space sets whether be located in the storage region of setting, if it is not, triggering first data generate judging unit;
First data generate judging unit: for judging whether the storing data is generated by IM application program,
If being generated by IM application program, first data filtering units are triggered, if not being generated by IM application program, described in triggering
First data volume judging unit;
First data filtering units: for filtering the storing data;
The first data volume judging unit: whether the data volume for judging the storing data is default less than first
Numerical value triggers first data filtering units if being less than.
Preferably, when the determination type module determines that the data type is audio types or video type, it is described
Data filtering module includes the second storage location judging unit, the second data volume judging unit and the second data filtering units;
The second storage location judging unit: for judging whether the storing data is stored in the memory block of setting
In domain, if it is not, triggering the second data volume judging unit;
The second data volume judging unit: whether the data volume for judging the storing data is default less than second
Numerical value triggers second data filtering units if being less than;
Second data filtering units: for filtering the storing data.
Preferably, described device further includes backup instruction receiving module and data backup module;
The backup instruction receiving module: backup instruction for receiving data, the data backup command carrying have been classified
The data type of data;
The data backup module: for the data according to the classification data carried in the data backup command
Type backs up the classification data.
Preferably, described device further includes prompt information output module;
The prompt information output module: for the performance according to the backup of classification data, output prompt
Information, to prompt described in user, whether classification data has backed up completion.
Preferably, the preset data type in the preset format library, comprising:
In audio types, video type, picture type, short message type, message registration type and address list type at least
It is a kind of.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising: shell, processor, memory, electricity
Road plate and power circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory are arranged in circuit board
On;Power circuit, for each circuit or the device power supply for electronic equipment;Memory is for storing executable program code;
Processor runs program corresponding with executable program code by reading the executable program code stored in memory, with
For executing following steps:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
In addition, the embodiment of the invention provides a kind of storage mediums, wherein the storage medium is used to store application program,
The application program for executing a kind of data processing method described in the embodiment of the present invention at runtime.Wherein, the present invention is real
Apply a kind of data processing method provided by example, comprising:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
In addition, the embodiment of the invention provides a kind of application programs, wherein the application program for executing sheet at runtime
A kind of data processing method described in inventive embodiments.Wherein, a kind of data processing method provided by the embodiment of the present invention, packet
It includes:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
In the present solution, receiving for being instructed to the data classification that storing data has been classified in the electronic equipment;Identification
The format of storing data in the electronic equipment, the preset data that will include in this format of storing data and preset format library
The corresponding preset format of type is matched;Judge in the preset format library, if there is the format with the storing data
The preset format matched, if so, the data type of the storing data is determined as the corresponding preset data type of the preset format.
To be matched by format corresponding with the preset data type for including in preset format library, come realize in electronic equipment
Storing data carries out accurate and comprehensive classification.Certainly, it implements any of the products of the present invention or method must be not necessarily required to simultaneously
Reach all the above advantage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of another flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of another flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of another flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of device for classifying data provided in an embodiment of the present invention;
Fig. 6 is a kind of another structural schematic diagram of device for classifying data provided in an embodiment of the present invention;
Fig. 7 is a kind of another structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 8 is a kind of another structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 9 (a) be data processing method provided by a kind of application embodiment of the present invention provided in an embodiment of the present invention into
The sorted data type display diagram of row data;
With Fig. 9 (b) be it is provided in an embodiment of the present invention it is a kind of by data type carry out data backup when display diagram;
Figure 10 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of data processing method, device and electronic equipments, may be implemented to electronic equipment
In storing data carry out accurate and comprehensive classification.
It should be noted that a kind of data processing method provided by the embodiment of the present invention, is applied to electronic equipment, the electricity
Sub- equipment may include desktop computer, laptop, tablet computer and smart phone.
Also, realize that a kind of functional software of data processing method provided by the embodiment of the present invention can be special visitor
Family end software, alternatively, precise information classification can not be carried out by the matched mode of the progress of the format to data to be existing
Other client softwares plug-in unit, this is all reasonable.
In a first aspect, as shown in Figure 1, the embodiment of the invention provides a kind of data processing method, this method may include:
S101: it receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
It is understood that when user have to storing data has classification demand in electronic equipment used in it when,
User is issued by predetermined operation for instructing to the data classification that storing data has been classified in the electronic equipment.The reception
Data classification instruction can be user by function button corresponding to click data classification feature to trigger generation;It can also
Be triggered by user by client software corresponding to log-on data classification feature generation etc., the embodiment of the present invention
The triggering generation form of received data sort instructions is not defined.
S102: identifying in the electronic equipment format of storing data, by the format and preset format of the storing data
The corresponding preset format of preset data type for including in library is matched;
Wherein, which can be stored in the electronic equipment, at this point, being provided using the embodiment of the present invention
Data processing method when carrying out data classification, which may be at the state of not connected network.At this time, it is only necessary to
When the electronic equipment is in the state of connection network, when detecting that there is more new version in the preset format library, in order to guarantee default lattice
Formula library it is comprehensive, update the preset format library.Certainly, which can also be stored in server, at this point,
When carrying out data classification using data processing method provided by the embodiment of the present invention, which then needs in connection net
The state of network, to guarantee in the electronic equipment format of storing data, can in the preset format library for being stored in server
Including preset data type corresponding preset format matched, guarantee that follow-up data classification processing process is normally carried out.
Certainly, it identifies that the format of various storing datas can use the prior art, and establishes the preset format library
To use the prior art, therefore not to repeat here.
It should be noted that receiving for referring to the data classification that storing data has been classified in the electronic equipment
After order, storing data and the in this process format of each storing data of identification in the electronic equipment are traversed, by this
Preset format corresponding to the preset data type for including in the format of storing data and preset format library is matched.Wherein,
It include at least one preset data type, every kind of preset data type pair for including in the preset format library in the preset format library
Answer at least one preset format.
In practical applications, there can be various application programs in electronic equipment used by a user, and these are answered
The data of its respective intrinsic format can be generated with program.Such as various softwares with camera function can generate image data, and
The different software with camera function can generate the image data of its respective intrinsic format;It is various soft with recording function
Part can generate video data, and the different software with recording function can generate the video data of its respective intrinsic format;
The various softwares with sound-recording function can generate audio data, and the different software with sound-recording function can generate it respectively admittedly
The audio data of some formats;The various softwares with communication function can also generate the data of its respective intrinsic format;User
Online is the data of the various formats of caching;And the data of the various formats of user's downloading;Etc., this is all reasonable.
S103: judge in the preset format library, if there is the preset format with the format match of storing data, if
It is to execute step S104;
S104: the data type of the storing data is determined as the corresponding preset data class of matched preset format
Type.
It should be noted that by the format of storing data and every kind in the preset format library are pre- in each electronic equipment
If every kind of preset format in data type is matched, judge in the preset format library, if exist and the storing data
Format match preset format, when existing and the corresponding default lattice of the preset data type of the format match of storing data
When formula, then prove that storing data belongs to the preset data type for this, storing data has been determined as the preset data type by this.
Using the embodiment of the present invention, receive for referring to the data classification that storing data has been classified in the electronic equipment
It enables;It identifies in the electronic equipment format of storing data, includes in the format of storing data and preset format library by this
Preset format corresponding to preset data type is matched;Judge in the preset format library, if exist and stored number with this
According to format match preset format, if so, the data type of the storing data is determined as corresponding to the preset format
Preset data type.To be matched by format corresponding with the preset data type for including in preset format library, Lai Shixian
To storing data carries out accurate and comprehensive classification in electronic equipment.
Further, in practical applications, user may be in order to storing data arranges and right in electronic equipment
Storing data carries out classification processing in the electronic equipment, it is also possible in order to show in electronic equipment storing data and to the electricity
Storing data carries out classification processing in sub- equipment, it is also possible in order to storing data is backed up and right in electronic equipment
Storing data carries out classification processing in the electronic equipment, in latter two situation, in order to realize better effect, to having deposited
When storing up data progress classification processing, need to filter out the unwanted data of user institute, these data can be largely one
A little junk datas.Specifically, as shown in Fig. 2, a kind of data processing method provided by the embodiment of the present invention can also include:
S105: according to the corresponding filtering rule of preset data type, to this, storing data has been filtered;
S106: filtered storing data is saved.
It is understood that the electronic equipment screening and filtering that storing data has carried out entirety can be handled, relative to
The data of different types of data have different attributes, can be sieved according to data type to the data of different types of data
Filtration treatment is selected, specifically, when the data type is picture type, it is described according to the corresponding mistake of preset data type
Filter rule, to this, storing data has been filtered (step S105), may include:
The storage location for identifying the storing data, judges whether the storage location is located in the storage region of setting;
If it is not, the storing data is filtered when storing data is generated by IM application program for this, when the storing data
When being generated by non-IM application program, whether the data volume of the storing data is judged less than the first default value, if being less than, filtering
The storing data.
It should be noted that instant messaging (InstantMessaging, IM) application program is a kind of Internet-based
Instant AC applications program, the application program of online chatting, exchange is realized by instant messaging.Such application program permits
Perhaps two people or more people are exchanged using the instant transmitting text in network, picture, voice messaging even video.Popular IM application program
There are Anychat, Tencent QQ, wechat, MSN, ICQ, POPO, UC, Skype etc..
For example, the storage region set is media library, when the data type for identifying a certain data A is picture category
Type, and identify that data A is stored under " weixin " file, it can determine that data A is not stored in media library, and can
To determine what data A was generated by IM application program wechat, then prove that data A is the picture that wechat generates, at this point it is possible to
Directly filter data A.When the type for identifying a certain data B is picture type, and identify that data B is stored in
Under " bluetooth " file, it can determine that data B is not stored in media library, and data b can be determined by non-IM
Application program generates, and whether the data volume for continuing to judge data B is less than the first default value, if so, directly filtering the number
According to B, if it is not, not filtering data B.
Specifically, when the data type is audio types or video type, it is described corresponding according to the preset data type
Filtering rule, to this, storing data has been filtered (step S105), may include:
Judge whether storing data is stored in the storage region of setting for this, if it is not, judging the number of the storing data
According to amount whether less than the second default value, if being less than, the storing data is filtered.
It should be noted that in practical applications, the data of data and video type for audio types, in setting the
It when two default values, can be the same or different, the setting of second default value can be according to the demand of user by user
Autonomous setting, can also be by the electronic equipment default setting, or is arranged jointly by the two, etc., this is all reasonable.
For example, the storage region set is media library, when judging that the data C of audio types is not stored in the matchmaker
In body library, then whether continue the data volume for the data C for judging the audio types less than the second default value, wherein the of setting
Two default values are 1M, and identify that the data volume of the data C of the audio types is 4M, and judging result is not less than then saving
Otherwise the data C of the audio types filters the data C of the audio types.When judging that the data D of video type also do not deposit
When being stored in media library, subsequent result is identical, according to the data volume of the data D of the video type and second default value
Size, determines whether data D needs to filter, wherein the second default value of the setting can be 1M, or other numbers
Value.
Specifically, the preset data type in the preset format library, may include: audio types, video type, picture
At least one of type, short message type, message registration type and address list type.
Specifically, the corresponding format of the audio types may include: at least one of WMA, MP3, WAV, MID;Institute
State the corresponding format of video type may include: AVI, RMVB, RM, ASF, DIVX, MPG, MPEG, MPE, WMV, MP4, MKV,
At least one of VOB;The corresponding format of the picture type may include: at least one in BMP, JPG, JPEG, PNG, GIF
Kind.
Certainly, when carrying out data classification, in order to guarantee in the determining electronic equipment data type of storing data
Accuracy, and then accurate data classification carried out to storing data, included preset data class in the preset format library
The more comprehensive type the better, and the more comprehensive preset format corresponding to various preset data types the better.It should be noted that above-mentioned
Various preset formats corresponding to various preset data types and various preset data types are merely illustrative, and are actually answered
Various formats corresponding to the various data types and various data types are not limited only to this in.
Further, a kind of data processing method provided by the embodiment of the present invention, as shown in figure 3, being based on step S101
~step S104 can also include:
S301: backup reception data instruction, the data backup command carry the data type of classification data;
It should be noted that when receiving the data backup command, in order to guarantee to be normally carried out subsequent data
Backup process, the electronic equipment need to be under the situations for connecting network.And the electronic equipment is when carrying out data backup, Ke Yijie
Enter any kind of secure network.
It is understood that when user have to storing data has the demand of backup in the electronic equipment when, can pass through
Execute predetermined operation log-on data backup functionality, wherein the starting data backup function can be can trigger by clicking
The function button of the data backup function.The electronic equipment receives the data backup command, in the data backup command carry to
The data type of Backup Data, the data type of the data to be backed up can be independently to be selected to determine by user, is also possible to electricity
Sub- equipment default determination, etc., this is all reasonable.
S302: according to the data type of the classification data carried in the data backup command, to the classification data
It is backed up.
Certainly, for classification data, the user may not be to carry out data backup for the first time in same electronic equipment,
When carrying out data backup to classification data, which can identify the classification data for having carried out backup, at this point,
Again this kind of classification data would not be carried out repeating to back up, wherein identification had carried out the classification data of backup simultaneously
And it is not carried out repeating to back up that the prior art can be used, therefore not to repeat here.
In practical applications, after electronic equipment carries out data classification, classification data can be shown with each data type
In interface, so that user independently selects data type to be backed up, according to the data type pair to be backed up of user selection
The classification data of the data type carries out data backup, the data backup command carry the data type of classification data by
User determines;Alternatively, it is standby that classification data directly directly to be carried out to data according to data type after receiving data backup command
Part, at this point, the data type that data backup command carries classification data is determined that this is all reasonable by electronic equipment.
It wherein, preferably, will be in every kind of data type before data backup in order to preferably provide the usage experience of user
After the unwanted data of included user (such as junk data) are filtered, data backup, therefore, the data backup are being carried out
Function be also based on step S101~step S106 and carry out.
When electronic equipment is smart phone, after the data in electronic equipment are classified, opened up according to data type
Show, as shown in Fig. 9 (a), data type includes address list type (contacts), short message type, message registration (call logs)
Type, calendar (calendar) type, bookmark (bookmarks) type, picture (photos) type, dictionary (dictionary)
Type etc..When carrying out data backup, user input data backup instruction, the data backup command carries classification data
Data type, specific user can click the corresponding icon of each data type in 9 (a), when icon is selected, the icon
Upper right side, which is shown, chooses mark, and data type to be backed up includes: address list type, short message type, message registration class in Fig. 9 (a)
Type, calendar type, bookmark type, picture type.
Further, in order to preferably improve the experience of user, the process of data backup can be presented to the user, to keep away
Exempt from user and generates impatient psychology because not knowing progress, as shown in figure 4, based on step S101~step S104 and step S301~
Step S302, this method can also include:
S303: according to the performance of the backup of classification data, prompt information is exported, this has been classified to prompt user
Whether data back up completion.
It is exported in the form of progress bar in backup procedure specifically, the prompt information can be, this is to be backed up
The backup progress of classification data is presented to the user, and is also possible to export after the completion of data backup, final result is showed use
Family.Wherein, when final result being showed user, which can be auditory tone cues, can be screen intensity prompt, can
To be that interface jumps prompt, it is also possible to Word message prompting, etc., this is all possible.
Fig. 9 (b) is a kind of display diagram when being backed up according to the data type in Fig. 9 (a), for the ease of user's understanding
The progress of backup procedure shows backup progress bar above the interface of Fig. 9 (b), and to the data type for having backed up completion
It is distinctly displayed with the data type for being not backed up completion.
Second aspect is based on above method embodiment, as shown in figure 5, correspondence of the embodiment of the present invention provides a kind of data
Processing unit is applied to electronic equipment, the apparatus may include: sort instructions receiving module 501, is sentenced format match module 502
Disconnected module 503 and determination type module 504;
The sort instructions receiving module 501: for receiving for storing data is classified in the electronic equipment
Data classification instruction;
The format match module 502: the format of storing data in the electronic equipment for identification, by the storing data
Format and preset format library in include the corresponding preset format of preset data type matched;
Judgment module 503: for judging in the preset format library, if there is the format match with the storing data
Preset format, if so, triggering the type determining module 504;
The type determining module 504: for the data type of the storing data to be determined as matched default lattice
The corresponding preset data type of formula.
Using the embodiment of the present invention, receive for referring to the data classification that storing data has been classified in the electronic equipment
It enables;It identifies in the electronic equipment format of storing data, includes in the format of storing data and preset format library by this
Preset format corresponding to preset data type is matched;Judge in the preset format library, if exist and stored number with this
According to format match preset format, if so, it is corresponding pre- that the data type of the storing data is determined as the preset format
If data type.To be matched by format corresponding with the preset data type for including in preset format library, to realize pair
Storing data carries out accurate and comprehensive classification in electronic equipment.
Specifically, as shown in fig. 6, described device can also include data filtering module 601 and data storage module 602;
The data filtering module 601: for according to the corresponding filtering rule of preset data type, to the storing data
It is filtered;
The data storage module 602: for saving filtered storing data.
Specifically, when the type determining module 504 determines that the data type is picture type, the data filtering module
601 may include the first storage location judging unit, the first data generation judging unit, the first data volume judging unit and first
Data filtering units;
The first storage location judging unit: the storage location of the storing data for identification judges the storage location
Whether it is located in the storage region of setting, if it is not, triggering first data generates judging unit;
First data generate judging unit: for judging whether storing data has been generated by IM application program for this, if
It is generated by IM application program, triggers first data filtering units, if not being generated by IM application program, trigger first data
Measure judging unit;
First data filtering units: for filtering the storing data;
The first data volume judging unit: for judging the data volume of the storing data whether less than the first present count
Value, if being less than, triggers first data filtering units.
Specifically, when the type determining module 504 determines that the data type is audio types or video type, the number
It may include the second storage location judging unit, the second data volume judging unit and the second data filtering list according to filtering module 601
Member;
The second storage location judging unit: for judging whether storing data has been stored in the storage region of setting for this
In, if it is not, triggering the second data volume judging unit;
The second data volume judging unit: for judging the data volume of the storing data whether less than the second present count
Value, if being less than, triggers second data filtering units;
Second data filtering units: for filtering the storing data.
Specifically, as shown in fig. 7, the device can also include backup instruction receiving module 701 and data backup module
702;
The backup instruction receiving module 701: backup instruction for receiving data, the data backup command carry number of having classified
According to data type;
The data backup module 702: for the data class according to the classification data carried in the data backup command
Type, to this, classification data has been backed up.
Specifically, as shown in figure 8, the device can also include prompt information output module 703;
The prompt information output module 703: for the performance according to the backup of classification data, output prompt letter
Breath, with prompt user this whether classification data has backed up completion.
Specifically, the preset data type in the preset format library, may include:
In audio types, video type, picture type, short message type, message registration type and address list type at least
It is a kind of.
In addition, as shown in Figure 10, which may include: the embodiment of the invention also provides a kind of electronic equipment
Shell 1001, processor 1002, memory 1003, circuit board 1004 and power circuit 1005, wherein circuit board 1004 is placed in
The space interior that shell 1001 surrounds, processor 1002 and memory 1003 are arranged on circuit board 1004;Power circuit 1005,
For each circuit or the device power supply for electronic equipment;Memory 1003 is for storing executable program code;Processor
1002 run program corresponding with executable program code by reading the executable program code stored in memory 1003,
For executing following steps:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of storing data and the preset format library Zhong Bao
The corresponding preset format of preset data type included is matched;
Judge in the preset format library, if there is the preset format with the format match of storing data, if so, will
The data type of the storing data is determined as the corresponding preset data type of matched preset format.
Using the embodiment of the present invention, receive for referring to the data classification that storing data has been classified in the electronic equipment
It enables;It identifies in the electronic equipment format of storing data, includes in the format of storing data and preset format library by this
Preset format corresponding to preset data type is matched;Judge in the preset format library, if exist and stored number with this
According to format match preset format, if so, it is corresponding pre- that the data type of the storing data is determined as the preset format
If data type.To be matched by format corresponding with the preset data type for including in preset format library, to realize pair
Storing data carries out accurate and comprehensive classification in electronic equipment.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This class of electronic devices includes: smart phone (such as iPhone), multimedia handset, functional mobile phone, with
And low-end mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This class of electronic devices includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
In addition, the embodiment of the invention provides a kind of storage mediums, wherein the storage medium is used to store application program,
The application program for executing a kind of data processing method described in the embodiment of the present invention at runtime.Wherein, the present invention is real
A kind of data processing method provided by example is applied, may include:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
In addition, the embodiment of the invention provides a kind of application programs, wherein the application program for executing sheet at runtime
A kind of data processing method described in inventive embodiments.Wherein, a kind of data processing method provided by the embodiment of the present invention, can
To include:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library
In include the corresponding preset format of preset data type matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if
It is that the data type of the storing data is determined as the corresponding preset data type of matched preset format.
For device, electronic equipment, storage medium and application program embodiment, since it is substantially similar to method reality
Example is applied, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium,
The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (16)
1. a kind of data processing method, which is characterized in that be applied to electronic equipment, which comprises
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library Zhong Bao
The corresponding preset format of preset data type included is matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if so, will
The data type of the storing data is determined as the corresponding preset data type of matched preset format;
According to the corresponding filtering rule of the preset data type, the storing data is filtered;
Filtered storing data is saved.
2. the method according to claim 1, wherein when the data type be picture type when, the basis
The corresponding filtering rule of the preset data type, is filtered the storing data, comprising:
The storage location of the identification storing data, judges whether the storage location is located in the storage region of setting;
If it is not, when the storing data is generated by instant messaging IM application program, the filtering storing data, when described
When storing data is generated by non-IM application program, whether the data volume of the judgement storing data is less than the first present count
Value, if being less than, the filtering storing data.
3. the method according to claim 1, wherein when the data type is audio types or video type
When, it is described according to the corresponding filtering rule of the preset data type, the storing data is filtered, comprising:
Whether the judgement storing data is stored in the storage region of setting, if it is not, the number of the judgement storing data
According to amount whether less than the second default value, if being less than, the filtering storing data.
4. method according to claim 1-3, which is characterized in that the method also includes:
Backup reception data instruction, the data backup command carry the data type of classification data;
According to the data type of the classification data carried in the data backup command, the classification data is carried out
Backup.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
According to the performance of the backup of the classification data, prompt information is exported, to prompt described in user classification data
Whether backup is completed.
6. the method according to claim 1, wherein the preset data type in the preset format library, comprising:
At least one of audio types, video type, picture type, short message type, message registration type and address list type.
7. according to the method described in claim 6, it is characterized in that, the corresponding format of the audio types includes:
At least one of WMA, MP3, WAV, MID.
8. according to the method described in claim 6, it is characterized in that, the corresponding format of the video type includes:
At least one of AVI, RMVB, RM, ASF, DIVX, MPG, MPEG, MPE, WMV, MP4, MKV, VOB.
9. according to the method described in claim 6, it is characterized in that, the corresponding format of the picture type includes:
At least one of BMP, JPG, JPEG, PNG, GIF.
10. a kind of data processing equipment, which is characterized in that be applied to electronic equipment, described device includes: that sort instructions receive mould
Block, format match module, judgment module, determination type module, data filtering module and data storage module;
The sort instructions receiving module: for receiving for the data that storing data is classified in the electronic equipment
Sort instructions;
The format match module: the format of storing data in the electronic equipment for identification, it will the storing data
Format and preset format library in include the corresponding preset format of preset data type matched;
The judgment module: for judging in the preset format library, if there is the format match with the storing data
Preset format, if so, triggering the determination type module;
The determination type module: for the data type of the storing data to be determined as matched preset format pair
The preset data type answered;
The data filtering module: it is used for according to the corresponding filtering rule of the preset data type, to the storing data
It is filtered;
The data storage module: for saving filtered storing data.
11. device according to claim 10, which is characterized in that when the determination type module determines the data type
When for picture type, the data filtering module includes that the first storage location judging unit, the first data generate judging unit, the
One data volume judging unit and the first data filtering units;
The first storage location judging unit: the storage location of the storing data for identification judges the storage position
It sets and whether is located in the storage region of setting, if it is not, triggering first data generate judging unit;
First data generate judging unit: for judging whether the storing data is generated by IM application program, if
It is generated by IM application program, triggers first data filtering units, if not being generated by IM application program, triggering described first
Data volume judging unit;
First data filtering units: for filtering the storing data;
The first data volume judging unit: for judging the data volume of the storing data whether less than the first present count
Value triggers first data filtering units if being less than.
12. device according to claim 11, which is characterized in that when the determination type module determines the data type
When for audio types or video type, the data filtering module includes that the second storage location judging unit, the second data volume are sentenced
Disconnected unit and the second data filtering units;
The second storage location judging unit: for judging whether the storing data is stored in the storage region of setting
In, if it is not, triggering the second data volume judging unit;
The second data volume judging unit: for judging the data volume of the storing data whether less than the second present count
Value triggers second data filtering units if being less than;
Second data filtering units: for filtering the storing data.
13. the described in any item devices of 0-12 according to claim 1, which is characterized in that described device further includes that backup instruction connects
Receive module and data backup module;
The backup instruction receiving module: backup instruction for receiving data, the data backup command carry classification data
Data type;
The data backup module: for the data class according to the classification data carried in the data backup command
Type backs up the classification data.
14. device according to claim 13, which is characterized in that described device further includes prompt information output module;
The prompt information output module: for the performance according to the backup of classification data, exporting prompt information,
To prompt described in user, whether classification data has backed up completion.
15. device according to claim 10, which is characterized in that the preset data type in the preset format library, packet
It includes: at least one of audio types, video type, picture type, short message type, message registration type and address list type.
16. a kind of electronic equipment characterized by comprising shell, processor, memory, circuit board and power circuit, wherein
Circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power circuit, for being electric
The each circuit or device of sub- equipment are powered;Memory is for storing executable program code;Processor is by reading memory
The executable program code of middle storage runs program corresponding with executable program code, for executing following steps:
It receives for being instructed to the data classification that storing data has been classified in the electronic equipment;
The format of storing data is identified in the electronic equipment, by the format of the storing data and preset format library Zhong Bao
The corresponding preset format of preset data type included is matched;
Judge in the preset format library, if there is the preset format with the format match of the storing data, if so, will
The data type of the storing data is determined as the corresponding preset data type of matched preset format;
According to the corresponding filtering rule of the preset data type, the storing data is filtered;
Filtered storing data is saved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511032339.0A CN105677512B (en) | 2015-12-31 | 2015-12-31 | Data processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511032339.0A CN105677512B (en) | 2015-12-31 | 2015-12-31 | Data processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677512A CN105677512A (en) | 2016-06-15 |
CN105677512B true CN105677512B (en) | 2019-04-12 |
Family
ID=56298477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511032339.0A Expired - Fee Related CN105677512B (en) | 2015-12-31 | 2015-12-31 | Data processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677512B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227769B (en) * | 2016-07-15 | 2019-11-26 | 北京奇虎科技有限公司 | Date storage method and device |
WO2018027468A1 (en) * | 2016-08-08 | 2018-02-15 | 马岩 | Classified storage method and system for big data |
CN106294703A (en) * | 2016-08-08 | 2017-01-04 | 广东欧珀移动通信有限公司 | A kind of file classifying method, device and terminal |
KR102605755B1 (en) * | 2016-12-19 | 2023-11-27 | 삼성전자주식회사 | Electronic device for controlling speaker and method of operating the same |
CN107423410A (en) * | 2017-07-28 | 2017-12-01 | 福建中金在线信息科技有限公司 | A kind of data managing method, device and mobile terminal |
CN107967347B (en) * | 2017-12-07 | 2021-01-22 | 湖北三新文化传媒有限公司 | Batch data processing method, server, system and storage medium |
CN109885577B (en) * | 2019-03-11 | 2021-07-13 | Oppo广东移动通信有限公司 | Data processing method, device, terminal and storage medium |
CN113127495B (en) * | 2019-12-31 | 2024-08-23 | 深圳云天励飞技术有限公司 | Database updating method and device |
CN112230977B (en) * | 2020-09-06 | 2022-06-17 | 厦门天锐科技股份有限公司 | Data iteration system and method of software project |
CN112597334B (en) * | 2021-01-15 | 2021-09-28 | 天津帕克耐科技有限公司 | Data processing method of communication data center |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591747A (en) * | 2011-12-29 | 2012-07-18 | 中兴通讯股份有限公司 | Data backup method and device |
CN102760070A (en) * | 2012-06-08 | 2012-10-31 | 华为终端有限公司 | Method for storing downloaded file and mobile terminal |
CN104932894A (en) * | 2015-06-25 | 2015-09-23 | 努比亚技术有限公司 | Method and terminal for managing similar applications |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7984175B2 (en) * | 2003-12-10 | 2011-07-19 | Mcafee, Inc. | Method and apparatus for data capture and analysis system |
-
2015
- 2015-12-31 CN CN201511032339.0A patent/CN105677512B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591747A (en) * | 2011-12-29 | 2012-07-18 | 中兴通讯股份有限公司 | Data backup method and device |
CN102760070A (en) * | 2012-06-08 | 2012-10-31 | 华为终端有限公司 | Method for storing downloaded file and mobile terminal |
CN104932894A (en) * | 2015-06-25 | 2015-09-23 | 努比亚技术有限公司 | Method and terminal for managing similar applications |
Also Published As
Publication number | Publication date |
---|---|
CN105677512A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677512B (en) | Data processing method and device and electronic equipment | |
CN105100366A (en) | Method, device and system for confirming harassment telephone number | |
CN104468329B (en) | Member adding method and device based on instant messaging | |
US20160132866A1 (en) | Device, system, and method for creating virtual credit card | |
CN106528709A (en) | Social information recommendation method and apparatus | |
CN104793725B (en) | The processing method and processing device of alert notification message | |
EP3866410B1 (en) | Message display method, apparatus, and device | |
CN102081501A (en) | Method and device for providing shortcut operation application programs for user and mobile terminal | |
CN105635266B (en) | Method, apparatus and terminal for reported data | |
CN104035995A (en) | Method and device for generating group tags | |
CN104144239A (en) | Voice assist communication method and device | |
CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
US20130143620A1 (en) | Screen capture method of mobile communication terminal | |
CN105068976A (en) | Ticket information exhibition method and device | |
CN108491282A (en) | The method and apparatus that webpage and operating system are communicated | |
CN106888308B (en) | A kind of method of speech processing and mobile terminal | |
CN104462271A (en) | Method for mining activity degree of user and relevant equipment | |
CN110278273B (en) | Multimedia file uploading method, device, terminal, server and storage medium | |
CN104065742A (en) | Picking-up person information processing method and device for safe kindergarten picking up | |
US20120117197A1 (en) | Content auto-discovery | |
CN104144107A (en) | Method, device and system for achieving account noting | |
CN107885571A (en) | Show page control method and device | |
CN104216991A (en) | Information processing method and electronic equipment | |
CN104902055B (en) | Contact person's creation method and device | |
CN105450507A (en) | Method and device for sharing information in social network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190412 |
|
CF01 | Termination of patent right due to non-payment of annual fee |