Specific embodiment
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for being conducive to the explanation of the embodiment of the present invention,
There is no specific meanings for itself.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the embodiment of the present invention may include all
Such as mobile phone, smart phone, laptop, digit broadcasting receiver, personal digital assistant (PDA, Personal
Digital Assistant), tablet computer (PAD), portable media player (PMP, Portable Media
Player), the fixed terminal of the mobile terminal of navigation device etc. and such as number TV, desktop computer etc..In the following, false
If terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to be used in particular for mobile purpose element it
Outside, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, audio/video (A/V) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, its can with digital multimedia broadcasting (DMB,
Digital Multimedia Broadcasting) electronic program guides (EPG, Electronic Program Guide),
The electronic service guidebooks of digital video broadcast-handheld (DVB-H, Digital Video Broadcasting-Handheld)
The form of (ESG, Electronic Service Guide) etc. and exist.Broadcasting reception module 111 can be by using each
The broadcast system of seed type receives signal broadcast.Particularly, broadcasting reception module 111 can be by using such as multi-media broadcast
Broadcast-ground (DMB-T, Digital Multimedia Broadcasting-Terrestrial), digital multimedia broadcasting-defend
Star (DMB-S, Digital Multimedia Broadcasting-Satellite), digital video broadcast-handheld (DVB-H),
The Radio Data System of forward link media (MediaFLO, Media Forward Link Only), received terrestrial digital broadcasting are comprehensive
The number for servicing (ISDB-T, Integrated Services Digital Broadcasting-Terrestrial) etc. is wide
It broadcasts system and receives digital broadcasting.Broadcasting reception module 111 may be constructed such that the various broadcast systems for being adapted to provide for broadcast singal
And above-mentioned digit broadcasting system.It can be deposited via the received broadcast singal of broadcasting reception module 111 and/or broadcast related information
Storage is in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include Wireless LAN (Wi-Fi, WLAN,
Wireless Local Area Networks), WiMAX (Wibro), worldwide interoperability for microwave accesses (Wimax), under high speed
Downlink packet accesses (HSDPA, High Speed Downlink Packet Access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
Tooth, radio frequency identification (RFID, Radio Frequency Identification), Infrared Data Association (IrDA, Infrared
Data Association), ultra wide band (UWB, Ultra Wideband), purple honeybee etc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module
Typical case be global positioning system (GPS, Global Positioning System).According to current technology, position letter
It ceases range information and correct time information of the calculating of module 115 from three or more satellites and the information of calculating is answered
With triangulation, to according to longitude, latitude and highly accurately calculate three-dimensional current location information.Currently, for calculating
The method of position and temporal information using three satellites and by using an other satellite correct calculated position and
The error of temporal information.In addition, location information module 115 can calculate speed by Continuous plus current location information in real time
Spend information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus
Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121
Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110
It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way
Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can
The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122
Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal
It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include proximity sensor 141.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user
Kind of information and may include subscriber identification module (UIM, User Identify Module), client identification module (SIM,
Subscriber Identity Module), Universal Subscriber identification module (USIM, Universal Subscriber
Identity Module) etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take intelligence
The form of card, therefore, identification device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170
It can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and transmit the input received
One or more elements in mobile terminal 100 can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI, User Interface) or graphic user interface (GUI, Graphical User
Interface).When mobile terminal 100 is in video calling mode or image capture mode, display unit 151 can be shown
Show captured image and/or received image, the UI or GUI that show video or image and correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD, Liquid
Crystal Display), thin film transistor (TFT) LCD (TFT-LCD, Thin Film Transistor-LCD), organic light-emitting diodes
It manages in (OLED, Organic Light-Emitting Diode) display, flexible display, three-dimensional (3D) display etc.
It is at least one.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as
Transparent display, typical transparent display can be, for example, transparent organic light emitting diode (TOLED) display etc..According to
Specific desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), example
Such as, mobile terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for examining
Survey touch input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit
153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list
Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store the data that has exported or will export (for example, telephone directory, message, still image, video etc.).And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM, Random Access
Memory), static random-access memory (SRAM, Static Random Access Memory), read-only memory (ROM,
Read Only Memory), electrically erasable programmable read-only memory (EEPROM, Electrically Erasable
Programmable Read Only Memory), programmable read only memory (PROM, Programmable Read Only
Memory), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture
It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital
Signal Processing), digital signal processing device (DSPD, Digital Signal Processing Device), can
Programmed logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field
Programmable Gate Array), processor, controller, microcontroller, microprocessor, be designed to execute it is described herein
At least one of the electronic unit of function implement, in some cases, such embodiment can be in controller 180
Middle implementation.For software implementation, the embodiment of such as process or function can with allow to execute at least one functions or operations
Individual software module implement.Software code can be by the software application write with any programming language appropriate
(or program) is implemented, and software code can store in memory 160 and executed by controller 180.
So far, mobile terminal is described according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to an embodiment of the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA, Frequency Division Multiple Access), time division multiple acess
(TDMA, Time Division Multiple Access), CDMA (CDMA, Code Division Multiple
Access) and Universal Mobile Communication System (UMTS, Universal Mobile Telecommunications System) is (special
Not, long term evolution (LTE, Long Term Evolution)), global system for mobile communications (GSM) etc..As unrestricted
Property example, description below is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base station (BS, Base
Station) 270, base station controller (BSC, Base Station Controller) 275 and mobile switching centre (MSC,
Mobile Switching Center)280.MSC280 is configured to and Public Switched Telephony Network (PSTN, Public
Switched Telephone Network) 290 formation interfaces.MSC280 is also structured to and can couple via back haul link
BSC275 to base station 270 forms interface.Back haul link can be constructed according to any in several known interfaces, described
Interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that as shown in Figure 2
System may include multiple BSC275.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS 270.Alternatively, each subregion can by two for diversity reception or more
Multiple antennas covering.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency
It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver
System (BTS, Base Transceiver Station) or other equivalent terms.In this case, term " base station "
It can be used for broadly indicating single BSC275 and at least one BS 270.Base station can also be referred to as " cellular station ".Alternatively, special
Each subregion for determining BS 270 can be referred to as multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to by broadcsting transmitter (BT, Broadcast Transmitter) 295
The mobile terminal 100 operated in system.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to connect
Receive the broadcast singal sent by BT295.In fig. 2 it is shown that several satellites 300, such as global positioning system can be used
(GPS) satellite 300.The help of satellite 300 positions at least one of multiple mobile terminals 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.Location information module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 desired to obtain
Location information.It substitutes GPS tracking technique or except GPS tracking technique, the position that can track mobile terminal can be used
Other technologies.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100
Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each
Reverse link signal is handled in specific BS 270.The data of acquisition are forwarded to relevant BSC275.BSC provides logical
Talk about the mobile management function of resource allocation and the coordination including the soft switching process between BS 270.BSC275 will also be received
Data are routed to MSC280, provide the additional route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS 270 correspondingly with by forward link signals
It is sent to mobile terminal 100.
The mobile communication module 112 of wireless communication unit 110 is mobile based on the access built in mobile terminal in mobile terminal
The necessary data (including customer identification information and authentication information) of communication network (such as 2G/3G/4G mobile communications network) accesses
Mobile communications network is that the business such as the web page browsing of mobile terminal user, network multimedia broadcasting transmit mobile data (packet
Include the mobile data of uplink and the mobile data of downlink).
The related protocol function reality that the wireless Internet module 113 of wireless communication unit 110 passes through operation hotspot
The function of existing hotspot, hotspot are supported multiple mobile terminal (any mobile terminal except mobile terminal) accesses, are led to
The webpage that the mobile communication crossed between multiplexing mobile communication module 112 and mobile communications network is connected as mobile terminal user is clear
It lookes at, (movement of mobile data and downlink including uplink is logical for the business transmission mobile data such as network multimedia plays
Letter data), since mobile terminal is substantially the mobile communication connection transmission movement being multiplexed between mobile terminal and communication network
Communication data, therefore the flow of the mobile data of mobile terminal consumption is included in movement by the charging entity of communication network side
The post and telecommunication tariff of terminal, to consume the data flow for the mobile data for including in the post and telecommunication tariff that mobile terminal signing uses
Amount.
Based on above-mentioned 100 hardware configuration of mobile terminal and communication system, each embodiment of the method for the present invention is proposed.
Since mobile terminal is limited by its volume, the demand of heat dissipation, processor is generally weaker than the processing capacity of PC machine
Very much;When the resource for needing to search for needs from numerous and jumbled storage system, often to wait for a long time.As mobile terminal is deposited
Storage capacity is increasing, and the processing capacity of processor is insufficient to restrict the experience for largely affecting user.
The technical solution of the embodiment of the present invention inquires the resource in mass-storage system by classification;Utilize movement
The characteristic that equipment is not shut down pre-processes the resource in storage system, that is, adds in the case where mobile device is in standby
Add resource index.Meanwhile resource synchronization module is added, after the property parameters in new resources management module are indexed, by attribute
Parameter removes new resources management module.In this way, there was only the property parameters of a small amount of new resources in new resources management module always, it can
With offer inquiry cracking in the case where not indexing;The property parameters of a large amount of old resource can also be searched quickly using index
It arrives.
Fig. 3 is the flow diagram one of the resource query method of the embodiment of the present invention, the resource query method in this example
Applied to terminal, as shown in figure 3, the resource query method the following steps are included:
Step 301: when being stored in new resources, the property parameters of the new resources being stored in first resource management module and the
Two resource management modules, wherein when the property parameters of the new resources in the Secondary resource management module for deposit add money
After the index of source, the property parameters of the new resources of deposit are deleted from the first resource management module.
In the embodiment of the present invention, terminal can be the equipment such as mobile phone, tablet computer, music player.Terminal has storage
System, storage system can store various resources, such as office data, multimedia document, video, music, these
After resource is stored to storage system, each resource corresponds to a property parameters, and the property parameters of the resource include at least
Location parameter, in addition, property parameters can also include: name parameter, type parameter, capacity parameter, time parameter etc..Wherein,
Location parameter shows the resource in the storage location of storage system, and name parameter shows the title of the resource, type parameter
The Doctype of the resource is shown, time parameter shows the storage date of the resource.
When the storage system of terminal is stored in new resources, the property parameters of new resources can be stored in simultaneously first resource by terminal
Management module and Secondary resource management module, here, first resource management module is also referred to as new resources management module, Secondary resource
Management module is also referred to as global resource management module.For first resource management module, the category of part resource has been only included
Property parameter, generally, this part resource refers to the resource of new deposit storage system, this part resource is not added resource index.
It include the property parameters of whole resources for Secondary resource management module, it is most in Secondary resource management module
Property parameters are added to resource index, and the property parameters of resource that only part is newly stored in are not added resource index.
Such as: A, B, C, D are the resource that storage system is newly stored in, and a, b, c, d respectively correspond the property parameters of each resource,
A, b, c, d are so stored in first resource management module and Secondary resource management module simultaneously, if Secondary resource management module
Resource index is added to a being newly stored in, then then deleting a in first resource management module.At this moment state is are as follows:
One resource management module includes b, c, d, and Secondary resource management module includes: that a (addition resource index), b (are not added with resource rope
Draw), c (being not added with resource index), d (being not added with resource index).
It, can be according to different indexing means, such as with two to property parameters addition resource index in the embodiment of the present invention
16 English alphabet sequences are indexed processing to the first letter of the name of each resource.In this way, originally unordered attribute
Parameter will be arranged after index process according to particular order, convenient for inquiry.
Step 302: when obtaining resource query instruction, objective attribute target attribute ginseng is inquired from the first resource management module
Number;When not inquiring the objective attribute target attribute parameter from the first resource management module, mould is managed from the Secondary resource
The objective attribute target attribute parameter is inquired according to resource index in block.
In the embodiment of the present invention, when user wants to inquire some resource within the storage system, then triggers resource query and refer to
It enables, here, resource query instructs the instruction information for carrying resource to be checked, which money is the instruction information for will clearly inquire
Source.
When terminal obtains resource query instruction, firstly, objective attribute target attribute parameter is inquired from first resource management module, this
In, objective attribute target attribute parameter is the property parameters of resource to be checked.Each property parameters in first resource management module are equal
It is not added with resource index, therefore, it is necessary to check each property parameters one by one from the first resource management module, is with determination
It is no to inquire the objective attribute target attribute parameter.When not inquiring the objective attribute target attribute parameter from the first resource management module
When, the objective attribute target attribute parameter is inquired according to resource index from the Secondary resource management module.
In the embodiment of the present invention, the property parameters quantity in first resource management module is smaller, and inquiry velocity is very fast, and second
Property parameters in resource management module are added with resource index, and inquiry velocity is also very fast.It can be to storage by classified inquiry
Each resource in system carries out quick search.Without may provide the user in real time in the case where reinforcing processor speed
Inquiry velocity, promote the experience of user.
Fig. 4 is the flow diagram two of the resource query method of the embodiment of the present invention, the resource query method in this example
Applied to terminal, as shown in figure 4, the resource query method the following steps are included:
Step 401: when being stored in new resources, the property parameters of the new resources being stored in first resource management module and the
Two resource management modules.
In the embodiment of the present invention, terminal can be the equipment such as mobile phone, tablet computer, music player.Terminal has storage
System, storage system can store various resources, such as office data, multimedia document, video, music, these
After resource is stored to storage system, each resource corresponds to a property parameters, and the property parameters of the resource include at least
Location parameter, in addition, property parameters can also include: name parameter, type parameter, capacity parameter, time parameter etc..Wherein,
Location parameter shows the resource in the storage location of storage system, and name parameter shows the title of the resource, type parameter
The Doctype of the resource is shown, time parameter shows the storage date of the resource.
When the storage system of terminal is stored in new resources, the property parameters of new resources can be stored in simultaneously first resource by terminal
Management module and Secondary resource management module, here, first resource management module is also referred to as new resources management module, Secondary resource
Management module is also referred to as global resource management module.For first resource management module, the category of part resource has been only included
Property parameter, generally, this part resource refers to the resource of new deposit storage system, this part resource is not added resource index.
It include the property parameters of whole resources for Secondary resource management module, it is most in Secondary resource management module
Property parameters are added to resource index, and the property parameters of resource that only part is newly stored in are not added resource index.
Step 402: whether detection terminal is in standby;When the terminal is in standby, described second
The property parameters of new resources in resource management module for deposit add resource index, and from the first resource management module
Delete the property parameters of the new resources of deposit.
Such as: A, B, C, D are the resource that storage system is newly stored in, and a, b, c, d respectively correspond the property parameters of each resource,
A, b, c, d are so stored in first resource management module and Secondary resource management module simultaneously, if Secondary resource management module
Resource index is added to a being newly stored in, then then deleting a in first resource management module.At this moment state is are as follows:
One resource management module includes b, c, d, and Secondary resource management module includes: that a (addition resource index), b (are not added with resource rope
Draw), c (being not added with resource index), d (being not added with resource index).
It, can be according to different indexing means, such as with two to property parameters addition resource index in the embodiment of the present invention
16 English alphabet sequences are indexed processing to the first letter of the name of each resource.In this way, originally unordered attribute
Parameter will be arranged after index process according to particular order, convenient for inquiry.
In the embodiment of the present invention, when terminal is in standby, processor has many process resources, therefore, can be with
It is waited during idle time using processor and processing is indexed to property parameters, i.e., be deposit in the Secondary resource management module
The property parameters of new resources add resource index.At the same time, resource disparate modules are deleted from the first resource management module
Except the property parameters after the addition resource index.
In addition, the embodiment of the present invention can also detect the power consumption parameter of terminal;When the terminal power consumption parameter be less than etc.
It is the property parameters addition resource index of the new resources of deposit in the Secondary resource management module when threshold value, and from
The property parameters of the new resources of deposit are deleted in the first resource management module.Here, the power consumption parameter of terminal is smaller,
Then show that terminal is more idle, it is only necessary to which the power consumption for determining terminal is less than pre-set threshold value, then can be indexed place
Reason.
Step 403: when obtaining resource query instruction, objective attribute target attribute ginseng is inquired from the first resource management module
Number;When not inquiring the objective attribute target attribute parameter from the first resource management module, mould is managed from the Secondary resource
The objective attribute target attribute parameter is inquired according to resource index in block.
In the embodiment of the present invention, when user wants to inquire some resource within the storage system, then triggers resource query and refer to
It enables, here, resource query instructs the instruction information for carrying resource to be checked, which money is the instruction information for will clearly inquire
Source.
When terminal obtains resource query instruction, firstly, objective attribute target attribute parameter is inquired from first resource management module, this
In, objective attribute target attribute parameter is the property parameters of resource to be checked.Each property parameters in first resource management module are equal
It is not added with resource index, therefore, it is necessary to check each property parameters one by one from the first resource management module, is with determination
It is no to inquire the objective attribute target attribute parameter.When not inquiring the objective attribute target attribute parameter from the first resource management module
When, the objective attribute target attribute parameter is inquired according to resource index from the Secondary resource management module.
Step 404: after inquiring the objective attribute target attribute parameter, obtaining corresponding target according to the objective attribute target attribute parameter
Resource.
In the embodiment of the present invention, since property parameters and resource are one-to-one relationships, when inquiring objective attribute target attribute
After parameter, corresponding target resource can be got within the storage system with direct basis objective attribute target attribute parameter, be finally completed resource
Quick search.
In the embodiment of the present invention, the property parameters quantity in first resource management module is smaller, and inquiry velocity is very fast, and second
Property parameters in resource management module are added with resource index, and inquiry velocity is also very fast.It can be to storage by classified inquiry
Each resource in system carries out quick search.Without may provide the user in real time in the case where reinforcing processor speed
Inquiry velocity, promote the experience of user.
Fig. 5 is the structure composition schematic diagram one of the terminal of the embodiment of the present invention, as shown in figure 5, the terminal includes: new money
Source scheduler module, new resources management module, new resources enquiry module, global resource management module, resource index module, global money
Source enquiry module, resource synchronization module and resource query scheduler module.Wherein:
New resources scheduler module: after mobile terminal system is stored in new document, new resources scheduler module can be by its information
It is sent respectively to new resources management module and global resource management module.
New resources management module: being on mass-memory unit by it since number of documents is bigger in mobile device.
Performance when equipment is used in order to not influence user, global resource management module is only pre-processed in standby mode.New resources
Management module can keep in the new document in this part.After new resources management module receives request, can to the information such as its documents location into
Row is temporary, to receive the scheduling of new resources enquiry module.This module only manages the nearest new document indexed not in time, when connecing
After the instruction for receiving resource synchronization module, the management of respective document can be abandoned, transfers to global resource module management.
New resources enquiry module: front end interface of the new resources enquiry module as new resources management module is unified to receive newly
Resource real-time query.And query result is returned into resource query scheduler module.
Global resource management module: global resource management module can be managed all documents in mobile terminal.By
It is bigger in its quantity, it is on mass-memory unit by it.In order to not influence the performance that the mobile device of user uses, meeting
In conjunction with the common management equipment resource of new resources management module, this module is only pre-processed in standby mode.
Resource index module: in the standby state, resource index module is indexed processing to global resource;It can be to avoid
The limited planless inquiry of processing capacity.The efficiency of inquiry can greatly be promoted.
Global resource enquiry module: after receiving the inquiry request of resource query scheduler module, according to index to resource
It is searched.Return to query result.
Resource synchronization module: this module is the key that new resources management module and the cooperation of global resource management module.Non-
Standby mode, the new resources management module that resource can be added into, for user query.It, can not but since it is not pre-processed
A large amount of document can be managed.So after being indexed in global resource to document, in time by synchronization module, by document from
New resources management module removes.New resources management module can be made to keep higher search efficiency always in this way.
Resource query scheduler module: this module can be sent out to new resources enquiry module first after receiving the inquiry of user
Inquiry instruction out issues inquiry instruction to global resource enquiry module after the response for receiving inquiry failure.
Fig. 6 is the structure composition schematic diagram two of the terminal of the embodiment of the present invention, as shown in fig. 6, the terminal includes: first
Resource management module 61, Secondary resource management module 62;
New resources scheduler module 63, for when being stored in new resources, the property parameters deposit first of the new resources to be provided
Source control module 61 and Secondary resource management module 62;
Resource index module 64, for adding resource index for the property parameters in the Secondary resource management module 62;
Resource synchronization module 65, for when the attribute ginseng in the Secondary resource management module 62 for the new resources of deposit
After number addition resource index, the property parameters of the new resources of the deposit are deleted from the first resource management module 61;
Resource query module 66, for being looked into from the first resource management module 61 when obtaining resource query instruction
Ask objective attribute target attribute parameter;When not inquiring the objective attribute target attribute parameter from the first resource management module 61, from described
The objective attribute target attribute parameter is inquired according to resource index in Secondary resource management module 62.
In an embodiment of the present invention, the terminal further include:
Detection module 67, for detecting whether terminal is in standby;
Correspondingly, the resource index module 64, specifically for when the terminal is in standby, described second
The property parameters of new resources in resource management module 62 for deposit add resource index.
In the embodiment of the present invention, the resource query module 66 is also used to after inquiring the objective attribute target attribute parameter, according to
Corresponding target resource is obtained according to the objective attribute target attribute parameter.
In another embodiment of the present invention, the terminal further include:
Detection module 67, for detecting the power consumption parameter of terminal;
Correspondingly, the resource index module 64 is less than or equal to threshold value specifically for the power consumption parameter when the terminal
When, the property parameters of the new resources in the Secondary resource management module 62 for deposit add resource index.
In the embodiment of the present invention, the resource query module 66 is specifically used for from the first resource management module 61
Check each property parameters, one by one to determine whether to inquire the objective attribute target attribute parameter.
In the embodiment of the present invention, the property parameters of the new resources include at least location parameter.
It will be appreciated by those skilled in the art that the realization function of each module in terminal shown in fig. 6 can refer to aforementioned money
The associated description of source querying method and understand.The function of each unit in terminal shown in fig. 6 can be by running on processor
Program and realize, can also be realized by specific logic circuit.
It, in the absence of conflict, can be in any combination between technical solution documented by the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong
Other modes are crossed to realize.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can be tied
It closes, or is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each group
Can be through some interfaces at the mutual coupling in part or direct-coupling or communication connection, equipment or unit it is indirect
Coupling or communication connection, can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit
The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists
In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing unit,
It is also possible to each unit individually as a unit, can also be integrated in one unit with two or more units;
Above-mentioned integrated unit both can take the form of hardware realization, can also add the form of SFU software functional unit real using hardware
It is existing.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.