CN102999601A - Method for sorting files, and multimedia terminal - Google Patents

Method for sorting files, and multimedia terminal Download PDF

Info

Publication number
CN102999601A
CN102999601A CN2012104723617A CN201210472361A CN102999601A CN 102999601 A CN102999601 A CN 102999601A CN 2012104723617 A CN2012104723617 A CN 2012104723617A CN 201210472361 A CN201210472361 A CN 201210472361A CN 102999601 A CN102999601 A CN 102999601A
Authority
CN
China
Prior art keywords
file
filename
character
sort
treatment
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.)
Pending
Application number
CN2012104723617A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2012104723617A priority Critical patent/CN102999601A/en
Publication of CN102999601A publication Critical patent/CN102999601A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is suitable for the technical field of mobile communication, and provides a method for sorting files, and a multimedia terminal. The method comprises the steps of determining a classifying mark and a file to be stored; distributing the file to be sorted into a large class corresponding to the classifying mark same as the first bit of character of a file name of the file to be sorted according to the classifying mark and the first bit of character of the file name of the file to be sorted; distributing the file to be sorted in each large class into a small class corresponding to the classifying mark same as a second bit of character of the file name of the file to be ordered according to the classifying mark and the second bit of character of the file name of the file to be sorted; and sorting the file to be sorted in the small class according to the order of the file names from small to large and the file name of the file to be sorted. By a classifying method, the sorting method is optimized, and the problem of low ordering efficiency in the prior art is solved.

Description

A kind of method of file ordering and multimedia terminal
Technical field
The invention belongs to multimedia information technique field, relate in particular to a kind of method and multimedia terminal of file ordering.
Background technology
The blue light player multimedia function can be supported multiple input source at present, such as: portable hard drive, network digital life (the DIGITAL LIVING NETWORK ALLIANCE of alliance, DLNA), the network storage (Network Attached Storage, NAS) server etc., because the capacity of hard disk is increasing now, many players can collect a large amount of multimedia files and be kept on the big capacity hard disk.When these equipment are linked into blue light player as input source, we can search up to ten thousand multimedia files, in order to make very easily locating file of user, blue light player is supporting document name ranking function, if for the ordering of up to ten thousand the files methods such as bubbling method according to usual our usefulness, can in up to ten thousand files, repeatedly compare, almost each file will compare many times with alternative document, for file seldom the time, can not seem so very slow, when running into up to ten thousand files, will cause like this showing that (ranking function complete rear just can show) is very slow, the user experiences very bad.Therefore there is slow, the inefficient problem of file ordering speed in prior art.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method and multimedia terminal of file ordering, has slow, the inefficient problem of file ordering speed to solve prior art.
Embodiments of the invention are achieved in that a kind of method of file ordering, said method comprising the steps of:
Determine class indication and treat that sort file, described class indication are 0 to 9 these 10 numerals and these 26 letters of A to Z, these 26 alphabetical case-insensitives of described A to Z, class indication is totally 36 characters;
According to described class indication and described first character treating the filename of sort file, the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file;
According to described class indication and the second character for the treatment of the filename of sort file, will treat that in each large class sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file;
According to the filename for the treatment of sort file, in group, the described sort file for the treatment of is sorted according to filename order from small to large.
Another purpose of embodiments of the invention is to provide a kind of multimedia terminal of file ordering, and described multimedia terminal comprises:
Determining unit is used for determining class indication and treating that sort file, described class indication are 0 to 9 these 10 numerals and these 26 letters of A to Z, these 26 alphabetical case-insensitives of described A to Z, and class indication is totally 36 characters;
The first taxon is used for according to class indication and described first character treating the filename of sort file, and the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file;
The second taxon is used for will treating that according to described class indication and the second character for the treatment of the filename of sort file sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file in each large class;
Sequencing unit is used for the described sort file for the treatment of being sorted according to filename order from small to large in group according to the filename for the treatment of sort file.
The embodiment of the invention is determined the large class of file by the first character of filename, the group of file determined in the second character of file, then only need to a small amount of file be sorted, and has solved slow, the inefficient problem of file ordering speed that prior art exists.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the scene schematic diagram of the method for file ordering provided by the invention;
Fig. 2 is the realization flow figure of the method for file ordering provided by the invention;
Fig. 3 is the modular structure figure of the mobile intelligent terminal of file ordering provided by the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the scene schematic diagram that method was suitable for of file ordering provided by the invention, for convenience of explanation, only shows the part relevant with the present embodiment.
As shown in Figure 1, class indication is 0 to 9 these 10 numeral and these 26 English alphabets of A to Z, totally 36 characters, the class indication here is the Rule of judgment of classification, at first compare according to first character of the filename of file to be sorted class indication with large class, if first character of filename is identical with class indication, the file allocation that filename is corresponding is to large class corresponding to class indication;
In large class, continue according to class indication 0 to 9 this 10 numeral and these 26 English alphabets of A to Z the group of the file allocation to 36 in the large class be need to prove, if filename only has 1 character, will be assigned to large class and can not be assigned to group.
The invention provides a kind of method of file ordering, described method as shown in Figure 2, concrete steps comprise:
S11, determine class indication and treat sort file, described class indication is 0 to 9 these 10 numerals and these 26 letters of A to Z, totally 36 characters.
Need to prove, the distinguishing characteristics that class indication refers to classify when specifically the character of filename corresponding positions is identical with class indication, is divided into a class here, and these 26 letters of A to Z are as the class indication case-insensitive here; Treat that sort file refers to the file in the multimedia terminal provided by the present invention, is used to sort.
S12, according to described class indication and described first character treating the filename of sort file, the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file.
Need to prove when first character treating sort file is identical with class indication, in large class corresponding to described class indication, for example have a file to be called a7k described file allocation to be sorted, then described
S13, according to described class indication with treat the second character of the filename of sort file, will treat that in each large class sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file.
S14, basis are treated the filename of sort file, in group the described sort file for the treatment of are sorted according to filename order from small to large.
Optionally, the method for realization S14 specifically comprises:
Begin comparison from the second character of filename;
Need to prove, because divide a group, according to the method for classification, first character is inevitable identical.
When the character of the first identical bits of filename is not identical, judges in the not identical character and whether have vacant position;
Need to prove, when two filenames of the different expressions of the character of first identical bits compared, the character of front identical bits was all identical, the not identical situation of first identical bits character of appearance.
When if not identical character does not have the room, not identical character order from small to large is 0 to 9, and A to Z treats that to not identical character ownership sort file sorts according to identical characters order from small to large not;
Need to prove, when referring to the contrast of two filenames here, not identical character has appearred, treat the sort file size order according to what the size order of the not identical character in first place was determined described not identical character ownership, the little then corresponding sort file of the order of the first not identical character comes the front.
If have vacant position in the not identical character, the file arrangements that not identical character is had vacant position in the filename not identical character in filename does not have the file front in room.
Need to prove, when if first identical bits character is not identical, and the expression of having vacant position in the not identical character has a filename shorter, the another one filename is long, suppose than the position of short filename is long and be positive integer greater than 1 for N(N), illustrate that so the figure place of another filename is greater than N, because N position, front is all identical, after the completeer N position, the N+1 position than short filename is the room so, therefore the filename figure place be N file arrangements in front, when for example filename 09ak and 09ak8m compare, to the 5th, first position appears different when relatively, in a filename, be the room, in the another one filename 8.
Optionally, said method also comprises:
When receiving the order of search file, carry first large class that finds described searched file place of the filename of searched file in the order according to described search file, then find the group at described searched file place according to the second of the filename of described searched file, then in group, filename contrasted by turn and find searched file.
The embodiment of the invention is by the method for secondary classification, and the quantity of documents of needs ordering is reduced, and reduced the complexity of ordering, improved the efficient of ordering, and the beneficial effect that also brings in addition is, when locating file, also easily finds according to classification, and efficient is higher.
The invention provides a kind of multimedia terminal of file ordering, described mobile intelligent terminal specifically comprises as shown in Figure 3:
Determining unit 21 is used for determining class indication and treating that sort file, described class indication are 0 to 9 these 10 numerals and these 26 letters of A to Z, these 26 alphabetical case-insensitives of described A to Z, and class indication is totally 36 characters;
The first taxon 22 is used for according to class indication and described first character treating the filename of sort file, and the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file;
The second taxon 23 is used for will treating that according to described class indication and the second character for the treatment of the filename of sort file sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file in each large class;
Sequencing unit 24 is used for the described sort file for the treatment of being sorted according to filename order from small to large in group according to the filename for the treatment of sort file.
Optionally, described sequencing unit 24 specifically is used for:
Begin comparison from the second character of filename;
When the character of the first identical bits of filename is not identical, judges in the not identical character and whether have vacant position;
When if not identical character does not have the room, not identical character order from small to large is 0 to 9, and A to Z sorts according to the sort file for the treatment of of not identical character order from small to large to the ownership of identical characters not;
If have vacant position in the not identical character, not identical character is had vacant position in the filename treat that sort file is arranged in that character not identical in the filename do not have a room treat the sort file front.
Further alternative, described multimedia terminal also comprises:
Search unit, be used for when receiving the order of search file, carry first large class that finds described searched file place of the filename of searched file in the order according to described search file, then find the group at described searched file place according to the second of the filename of described searched file, then in group by turn contrast find searched file.
One of ordinary skill in the art will appreciate that as the included modules of above-described embodiment is to divide according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skills it is also understood that, all or part of step in the method for the file ordering of realization above-described embodiment is to come the relevant hardware of instruction finish by program, described program can be in being stored in the multimedia terminal read/write memory medium, described storage medium comprises ROM/RAM etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method for a file ordering is characterized in that, described method comprises:
Determine class indication and treat that sort file, described class indication are 0 to 9 these 10 numerals and these 26 letters of A to Z, these 26 alphabetical case-insensitives of described A to Z, class indication is totally 36 characters;
According to described class indication and described first character treating the filename of sort file, the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file;
According to described class indication and the second character for the treatment of the filename of sort file, will treat that in each large class sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file;
According to the filename for the treatment of sort file, in group, the described sort file for the treatment of is sorted according to filename order from small to large.
2. the method for claim 1 is characterized in that, described basis is treated the filename of sort file, treats that sort file sorts according to filename order from small to large and is specially described in group:
Begin comparison from the second character of filename;
When the character of the first identical bits of filename is not identical, judges in the not identical character and whether have vacant position;
When if not identical character does not have the room, not identical character order from small to large is 0 to 9, and A to Z sorts according to the sort file for the treatment of of not identical character order from small to large to not identical character ownership;
If have vacant position in the not identical character, not identical character is had vacant position in the filename treat that sort file is arranged in that character not identical in the filename do not have a room treat the sort file front.
3. method as claimed in claim 1 or 2 is characterized in that, described method also comprises:
When receiving the order of search file, carry first large class that finds described searched file place of the filename of searched file in the order according to described search file, then find the group at described searched file place according to the second of the filename of described searched file, then in group, filename contrasted by turn and find searched file.
4. the multimedia terminal of a file ordering is characterized in that, described multimedia terminal comprises:
Determining unit is used for determining class indication and treating that sort file, described class indication are 0 to 9 these 10 numerals and these 26 letters of A to Z, these 26 alphabetical case-insensitives of described A to Z, and class indication is totally 36 characters;
The first taxon is used for according to class indication and described first character treating the filename of sort file, and the described sort file for the treatment of is assigned in large class corresponding to the class indication identical with first character of the filename for the treatment of sort file;
The second taxon is used for will treating that according to described class indication and the second character for the treatment of the filename of sort file sort file is assigned in group corresponding to the class indication identical with the second character of the filename for the treatment of sort file in each large class;
Sequencing unit is used for the described sort file for the treatment of being sorted according to filename order from small to large in group according to the filename for the treatment of sort file.
5. multimedia terminal as claimed in claim 4 is characterized in that, described sequencing unit specifically is used for:
Begin comparison from the second character of filename;
When the character of the first identical bits of filename is not identical, judges in the not identical character and whether have vacant position;
When if not identical character does not have the room, not identical character order from small to large is 0 to 9, and A to Z sorts according to the sort file for the treatment of of not identical character order from small to large to the ownership of identical characters not;
If have vacant position in the not identical character, not identical character is had vacant position in the filename treat that sort file is arranged in that character not identical in the filename do not have a room treat the sort file front.
6. such as claim 4 or 5 described multimedia terminals, it is characterized in that, described multimedia terminal also comprises:
Search unit, be used for when receiving the order of search file, carry first large class that finds described searched file place of the filename of searched file in the order according to described search file, then find the group at described searched file place according to the second of the filename of described searched file, then in group by turn contrast find searched file.
CN2012104723617A 2012-11-20 2012-11-20 Method for sorting files, and multimedia terminal Pending CN102999601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104723617A CN102999601A (en) 2012-11-20 2012-11-20 Method for sorting files, and multimedia terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104723617A CN102999601A (en) 2012-11-20 2012-11-20 Method for sorting files, and multimedia terminal

Publications (1)

Publication Number Publication Date
CN102999601A true CN102999601A (en) 2013-03-27

Family

ID=47928169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104723617A Pending CN102999601A (en) 2012-11-20 2012-11-20 Method for sorting files, and multimedia terminal

Country Status (1)

Country Link
CN (1) CN102999601A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186672A (en) * 2013-03-28 2013-07-03 广东欧珀移动通信有限公司 File ordering method and file ordering device
CN105373611A (en) * 2015-11-18 2016-03-02 广东欧珀移动通信有限公司 File display method and apparatus
CN106708977A (en) * 2016-12-07 2017-05-24 潘岩 Method and device for sorting webpage information articles
CN108133048A (en) * 2018-01-16 2018-06-08 广东欧珀移动通信有限公司 file ordering method, device and mobile terminal
CN108563682A (en) * 2018-03-08 2018-09-21 维沃移动通信有限公司 The sort method and device of multimedia file
CN108763468A (en) * 2018-05-29 2018-11-06 周宇 Dictionary sequence processing method, device and e-learning equipment
CN109144956A (en) * 2018-08-27 2019-01-04 Tcl移动通信科技(宁波)有限公司 Mobile terminal multifile sorting processing method, mobile terminal and storage medium
CN110275978A (en) * 2019-07-01 2019-09-24 成都启英泰伦科技有限公司 Quick storage of the voice big data on redundant arrays of inexpensive disks and access amending method
CN113449160A (en) * 2021-06-30 2021-09-28 平安科技(深圳)有限公司 Intelligent data screening method, device, equipment and medium
CN115794745A (en) * 2023-01-29 2023-03-14 深圳市乐凡信息科技有限公司 File searching method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175830B1 (en) * 1999-05-20 2001-01-16 Evresearch, Ltd. Information management, retrieval and display system and associated method
CN1360267A (en) * 2002-01-30 2002-07-24 北京大学 Sorting and searching method for files
CN101882152A (en) * 2010-06-13 2010-11-10 博采林电子科技(深圳)有限公司 Portable learning machine and resource retrieval method thereof
CN102193930A (en) * 2010-03-04 2011-09-21 深圳市迈乐数码科技股份有限公司 Remote-controller-based file retrieval method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175830B1 (en) * 1999-05-20 2001-01-16 Evresearch, Ltd. Information management, retrieval and display system and associated method
CN1360267A (en) * 2002-01-30 2002-07-24 北京大学 Sorting and searching method for files
CN102193930A (en) * 2010-03-04 2011-09-21 深圳市迈乐数码科技股份有限公司 Remote-controller-based file retrieval method and system
CN101882152A (en) * 2010-06-13 2010-11-10 博采林电子科技(深圳)有限公司 Portable learning machine and resource retrieval method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186672B (en) * 2013-03-28 2016-01-20 广东欧珀移动通信有限公司 file ordering method and device thereof
CN103186672A (en) * 2013-03-28 2013-07-03 广东欧珀移动通信有限公司 File ordering method and file ordering device
CN105373611A (en) * 2015-11-18 2016-03-02 广东欧珀移动通信有限公司 File display method and apparatus
CN105373611B (en) * 2015-11-18 2018-09-04 广东欧珀移动通信有限公司 A kind of document display method and device
CN106708977A (en) * 2016-12-07 2017-05-24 潘岩 Method and device for sorting webpage information articles
CN108133048B (en) * 2018-01-16 2020-09-25 Oppo广东移动通信有限公司 File sorting method and device and mobile terminal
CN108133048A (en) * 2018-01-16 2018-06-08 广东欧珀移动通信有限公司 file ordering method, device and mobile terminal
CN108563682A (en) * 2018-03-08 2018-09-21 维沃移动通信有限公司 The sort method and device of multimedia file
CN108563682B (en) * 2018-03-08 2019-12-24 维沃移动通信有限公司 Method and device for ordering multimedia files
CN108763468A (en) * 2018-05-29 2018-11-06 周宇 Dictionary sequence processing method, device and e-learning equipment
CN108763468B (en) * 2018-05-29 2021-06-22 周宇 Dictionary sorting processing method and device and electronic learning equipment
CN109144956A (en) * 2018-08-27 2019-01-04 Tcl移动通信科技(宁波)有限公司 Mobile terminal multifile sorting processing method, mobile terminal and storage medium
CN110275978A (en) * 2019-07-01 2019-09-24 成都启英泰伦科技有限公司 Quick storage of the voice big data on redundant arrays of inexpensive disks and access amending method
CN113449160A (en) * 2021-06-30 2021-09-28 平安科技(深圳)有限公司 Intelligent data screening method, device, equipment and medium
CN115794745A (en) * 2023-01-29 2023-03-14 深圳市乐凡信息科技有限公司 File searching method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN102999601A (en) Method for sorting files, and multimedia terminal
CN101295319B (en) Method and device for expanding query, search engine system
CN103167172B (en) Integration method and system for variety of chat records
CN100468402C (en) Sort data storage and split catalog inquiry method based on catalog tree
CN103077183A (en) Data importing method and system for distributed sequence list
CN102521275A (en) Classifying method, classifying device and a terminal of application program
CN104021161A (en) Cluster storage method and device
CN103020255A (en) Hierarchical storage method and hierarchical storage device
CN101976259A (en) Method and device for recommending series documents
CN104298736A (en) Method and device for aggregating and connecting data as well as database system
CN103970779A (en) Method, device and equipment for classifying documents
CN104217011B (en) The querying method and device of HBase secondary index tables
CN104077415A (en) Searching method and device
CN105988996A (en) Index file generation method and device
CN104077385A (en) Classification and retrieval method of files
CN106202392A (en) A kind of photo classification method and terminal
CN103810204A (en) Information search method and information search device
CN100524312C (en) Mass storing and managing method of smart card
CN104202428A (en) Distributed file storage system and method
CN106021615A (en) Method and device for optimizing title search
CN103744863A (en) Multimedia file playing method and electronic device
CN102262646A (en) Music document classifying method of set-top box
CN103870493A (en) Page automatic input system and method
CN104915389A (en) System and method for program content catalog and classified binding
CN102135969A (en) Index database constructing method and equipment as well as searching method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130327