Specific embodiment
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use
For representing the suffix of such as " module ", " part " or " unit " of element only for being conducive to the explanation of the embodiment of the present invention,
Itself does not have specific meaning.Therefore, " module " mixedly can be used with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the embodiment of the present invention can include all
Such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA, Personal
Digital Assistant), panel computer (PAD), portable media player (PMP, Portable Media
Player), the mobile terminal of guider etc. and the such as fixed terminal of numeral TV, desk computer etc..Below, it is false
If terminal is mobile terminal.However, it will be understood by those skilled in the art that, except be used in particular for moving purpose element it
Outward, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, audio/video (A/V) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating
Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and which allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, 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 via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can be present in a variety of manners, for example, its can with DMB (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 type receives signal broadcast.Especially, broadcasting reception module 111 can be by using such as multi-media broadcast
Broadcast-ground (DMB-T, Digital Multimedia Broadcasting-Terrestrial), DMB-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 synthesis
The numeral of service (ISDB-T, Integrated Services Digital Broadcasting-Terrestrial) etc. is wide
Broadcast system 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.The broadcast singal and/or broadcast related information received via broadcasting reception module 111 can be deposited
Storage is in memorizer 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 can be logical including voice
Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (Wi-Fi, WLAN,
Wireless Local Area Networks), WiMAX (Wibro), worldwide interoperability for microwave accesses (Wimax), at a high speed under
Downlink packet accesses (HSDPA, High Speed Downlink Packet Access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth, RF identification (RFID, Radio Frequency Identification), Infrared Data Association (IrDA, Infrared
Data Association), ultra broadband (UWB, Ultra Wideband), purple honeybee etc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be global positioning system (GPS, Global Positioning System).According to current technology, position letter
Breath module 115 calculate from three or more satellites range information and correct time information and for calculate information should
With triangulation, so as to calculate according to longitude, latitude and highly accurately three-dimensional current location information.Currently, for calculating
Position that the method for position and temporal information is calculated using three satellites and by using other satellite correction and
The error of temporal information.Additionally, location information module 115 can calculate speed by Continuous plus current location information in real time
Degree information.
A/V input blocks 120 are used for receiving audio or video signal.A/V input blocks 120 can include 121 He of camera
Mike 122, the static images that 121 pairs, camera is obtained by image capture apparatus in Video Capture pattern or image capture mode
Or the view data of video is processed.Picture frame after process is may be displayed on display unit 151.Jing cameras 121 are processed
Carry out sending out during picture frame afterwards can be stored in memorizer 160 (or other storage mediums) or via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone calling model, note
Sound (voice data) is received via mike in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can
The form output of mobile communication base station is sent to via mobile communication module 112.Mike 122 can implement various types of making an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) is produced during receiving and sending audio signal
Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input), the mobile terminal of mobile terminal 1 00
100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opened or is cut out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 is coupled with external device (ED).Sensing unit 140 can include proximity transducer 141.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user
Kind of information and can 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 with identification module (hereinafter referred to as " identifying device ") can take intelligence
The form of card, therefore, identifying device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170
Can be used for reception from the input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transmitted
To one or more elements in mobile terminal 1 00 or can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through which by electricity
Power provides the path of mobile terminal 1 00 from base or can serve as allowing from base the various command signals being input into pass through which
It is transferred to the path of mobile terminal.Can serve as recognizing that mobile terminal is from the various command signals of base input or electric power
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner
Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include showing
Unit 151, dio Output Modules 152, alarm unit 153 etc..
The information that display unit 151 is processed in may be displayed on mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files
Download etc.) related user interface (UI, User Interface) or graphic user interface (GUI, Graphical User
Interface).When mobile terminal 1 00 is in video calling pattern or image capture mode, display unit 151 can show
Show the image of capture and/or the image of reception, UI or GUI of video or image and correlation function etc. are shown.
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another in the form of layer, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD, Liquid
Crystal Display), thin film transistor (TFT) LCD (TFT-LCD, Thin Film Transistor-LCD), organic light-emitting diodes
In pipe (OLED, Organic Light-Emitting Diode) display, flexible display, three-dimensional (3D) display etc.
It is at least one.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as
Transparent display, typical transparent display can be, for example, transparent organic light emitting diode (TOLED) display etc..According to
The specific embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), example
Such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used to examine
Survey touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160
The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.Tactile output as by providing, 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 dio Output Modules 152.
Memorizer 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke
Temporarily to store the data that exported or will export (for example, telephone directory, message, still image, video etc.).And
And, memorizer 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch screen and audio signal
Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memorizer (for example, SD or DX memorizeies 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 Read Only Memory (EEPROM, Electrically Erasable
Programmable Read Only Memory), programmable read only memory (PROM, Programmable Read Only
Memory), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memorizer with by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or it is so structured that and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.For 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 perform it is described herein
Function electronic unit at least one implementing, in some cases, such embodiment can be in controller 180
Middle enforcement.For software is implemented, the embodiment of such as process or function can perform at least one function or operation with permission
Single software module implementing.Software code can be by the software application write with any appropriate programming language
(or program) is performed during software code can be stored in memorizer 160 and by controller 180 implementing.
So far, mobile terminal is described according to its function.Below, 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. is used as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operating.
The communication system that mobile terminal wherein according to embodiments of the present invention is operable to is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.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
) and UMTS (UMTS, Universal Mobile Telecommunications System) is (special Access
Not, Long Term Evolution (LTE, Long Term Evolution)), global system for mobile communications (GSM) etc..As unrestricted
Property example, explained below is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, 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.If back haul link can be constructed according to any one in the interface that Ganji knows, 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 can include multiple BSC275.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion that line is covered is radially away from BS 270.Or, each subregion can be by for two of diversity reception or more
Multiple antennas are covered.Each BS 270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution with specific frequency
Spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersect 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 "
Can be used for broadly representing single BSC275 and at least one BS 270.Base station can also be referred to as " cellular station ".Or, it is special
The 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 1 00 of operation in system.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to connect as shown in Figure 1
Receive the broadcast singal sent by BT295.In fig. 2 it is shown that several satellites 300, such as can adopt global positioning system
(GPS) satellite 300.Satellite 300 helps position at least one of multiple mobile terminal 1s 00.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.Location information module 115 is generally configured to coordinate to obtain what is wanted with satellite 300 as shown in Figure 1
Location information.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use the position of mobile terminal can be tracked
Other technologies.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminal 1s 00
Road signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270
Reverse link signal is processed in specific BS 270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides logical
Words resource allocation and the mobile management function of the coordination including the soft switching process between BS 270.BSC275 will also be received
Data are routed to MSC280, and which provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS 270 with by forward link signals
It is sent to mobile terminal 1 00.
In mobile terminal, the mobile communication module 112 of wireless communication unit 110 is based on the built-in access movement of mobile terminal
The necessary data (including customer identification information and authentication information) of communication network (mobile communications network such as such as 2G/3G/4G) is accessed
Mobile communications network is the business transmission mobile data (bag such as the web page browsing of mobile phone users, network multimedia broadcasting
Include up mobile data and descending mobile data).
The wireless Internet module 113 of wireless communication unit 110 reality by the related protocol function of operation hotspot
The function of existing hotspot, hotspot support that multiple mobile terminal (any mobile terminals outside mobile terminal) is accessed, and lead to
The webpage that the mobile communication crossed between multiplexing mobile communication module 112 and mobile communications network is connected as mobile phone users is clear
Look at, network multimedia is played etc., and business transmission mobile data is (logical including up mobile data and descending movement
Letter data), the mobile communication connection transmission movement being substantially multiplexed due to mobile terminal between mobile terminal and communication network
Communication data, therefore the flow of the mobile data of mobile terminal consumption counts movement by the charging entity of communication network side
The post and telecommunication tariff of terminal, the data flow of the mobile data that the post and telecommunication tariff used so as to consume mobile terminal signing includes
Amount.
Based on 00 hardware configuration of above-mentioned mobile terminal 1 and communication system, the inventive method each embodiment is proposed.
Due to the demand that mobile terminal is limited by its volume, radiated, processor is typically weak than the disposal ability of PC
A lot;When needing to search for the resource of needs from numerous and jumbled storage system, to often wait for a long time.As mobile terminal is deposited
Storage capacity is increasing, and the restriction of the disposal ability deficiency of processor have impact on the experience of user to a great extent.
The technical scheme of the embodiment of the present invention, inquires by classification to the resource in mass-storage system;Using movement
The characteristic that equipment does not shut down, in mobile device in the case of standby, carries out pretreatment to the resource in storage system, that is, adds
Plus resource index.Meanwhile, add resource synchronization module, after the property parameters in new resources management module are indexed, by attribute
Parameter removes new resources management module.So, there was only the property parameters of a small amount of new resources in new resources management module all the time, can
With the offer inquiry in the case where not indexing quickly;The property parameters of substantial amounts of old resource quickly can also be searched using index
Arrive.
Schematic flow sheets one of the Fig. 3 for the resource query method of the embodiment of the present invention, the resource query method in this example
Terminal is applied to, as shown in figure 3, the resource query method is comprised the following steps:
Step 301:When new resources are stored in, the property parameters of the new resources are stored in into first resource management module and
Two resource management modules, wherein, when the property parameters addition money of the new resources in the Secondary resource management module for being stored in
After the index of source, the property parameters of the new resources being stored in are deleted from the first resource management module.
In the embodiment of the present invention, terminal can be the equipment such as mobile phone, panel computer, music player.Terminal has storage
System, storage system can store various resources, such as office data, multimedia document, video, music etc., these
After resource is stored to storage system, each resource corresponds to property parameters, and the property parameters of the resource at least include
Location parameter, additionally, property parameters can also include:Name parameter, type parameter, capacity parameter, time parameter etc..Wherein,
Location parameter indicates storage location of the resource in storage system, and name parameter indicates the title of the resource, type parameter
The Doctype of the resource is indicated, time parameter indicates 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 first resource by terminal simultaneously
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, typically, this part resource refers to the resource for being newly stored in storage system, and this part resource is not added resource index.
For Secondary resource management module, the property parameters of whole resources are included, it is most in Secondary resource management module
Property parameters with the addition of resource index, and the property parameters of the only resource that part is newly stored in are not added resource index.
For example:The resource that A, B, C, D are newly stored in for storage system, a, b, c, d correspond to the property parameters of each resource respectively,
A, b, c, d are stored in into first resource management module and Secondary resource management module simultaneously so, if Secondary resource management module
A to being newly stored in the addition of resource index, then then delete a in first resource management module.At this moment state is:The
One resource management module includes b, c, d, and Secondary resource management module includes: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).
In the embodiment of the present invention, can be according to different indexing means, such as with two to property parameters addition resource index
16 English alphabet orders are indexed process to the first letter of the name of each resource.So, originally unordered attribute
Parameter will be arranged according to particular order after index process, be easy to inquiry.
Step 302:When resource query instruction is obtained, objective attribute target attribute ginseng is inquired about from the first resource management module
Number;When the objective attribute target attribute parameter not being inquired from the first resource management module, manage mould from the Secondary resource
The objective attribute target attribute parameter is inquired about according to resource index in block.
In the embodiment of the present invention, when user wants to inquire about within the storage system certain resource, then trigger resource query and refer to
Order, here, resource query instruction carries the configured information of resource to be checked, and the configured information is used for which money will clearly to be inquired about
Source.
When terminal obtains resource query to be instructed, first, objective attribute target attribute parameter is inquired about 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
Resource index is not added with, accordingly, it would be desirable to each property parameters be checked one by one from the first resource management module, to determine is
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 about 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 less, 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.Can be to storage by classified inquiry
Each resource in system carries out quick search.In the case where processor speed need not be strengthened, may provide the user with real time
Inquiry velocity, lifted user experience.
Schematic flow sheets two of the Fig. 4 for the resource query method of the embodiment of the present invention, the resource query method in this example
Terminal is applied to, as shown in figure 4, the resource query method is comprised the following steps:
Step 401:When new resources are stored in, the property parameters of the new resources are stored in into first resource management module and
Two resource management modules.
In the embodiment of the present invention, terminal can be the equipment such as mobile phone, panel computer, music player.Terminal has storage
System, storage system can store various resources, such as office data, multimedia document, video, music etc., these
After resource is stored to storage system, each resource corresponds to property parameters, and the property parameters of the resource at least include
Location parameter, additionally, property parameters can also include:Name parameter, type parameter, capacity parameter, time parameter etc..Wherein,
Location parameter indicates storage location of the resource in storage system, and name parameter indicates the title of the resource, type parameter
The Doctype of the resource is indicated, time parameter indicates 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 first resource by terminal simultaneously
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, typically, this part resource refers to the resource for being newly stored in storage system, and this part resource is not added resource index.
For Secondary resource management module, the property parameters of whole resources are included, it is most in Secondary resource management module
Property parameters with the addition of resource index, and the property parameters of the only resource that part is newly stored in are not added resource index.
Step 402:Whether detection terminal is in holding state;When the terminal is in holding state, described second
The property parameters addition resource index of the new resources in resource management module for being stored in, and from the first resource management module
The property parameters of the new resources that deletion is stored in.
For example:The resource that A, B, C, D are newly stored in for storage system, a, b, c, d correspond to the property parameters of each resource respectively,
A, b, c, d are stored in into first resource management module and Secondary resource management module simultaneously so, if Secondary resource management module
A to being newly stored in the addition of resource index, then then delete a in first resource management module.At this moment state is:The
One resource management module includes b, c, d, and Secondary resource management module includes: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).
In the embodiment of the present invention, can be according to different indexing means, such as with two to property parameters addition resource index
16 English alphabet orders are indexed process to the first letter of the name of each resource.So, originally unordered attribute
Parameter will be arranged according to particular order after index process, be easy to inquiry.
In the embodiment of the present invention, when terminal is in holding state, processor has many process resources, therefore, it can
Waited using processor at one's leisure and property parameters are indexed with process, i.e., be stored in the Secondary resource management module
The property parameters addition resource index of new resources.At the same time, resource disparate modules are deleted from the first resource management module
Except the property parameters after the addition resource index.
Additionally, the embodiment of the present invention can be with the power consumption parameter of detection terminal;When the terminal power consumption parameter less than etc.
When threshold value, the property parameters addition resource index of the new resources in the Secondary resource management module for being stored in, and from
The property parameters of the new resources being stored in are deleted in the first resource management module.Here, the power consumption parameter of terminal is less,
Then show that terminal is more idle, it is only necessary to the power consumption of terminal is determined less than the threshold value for pre-setting, then can be indexed place
Reason.
Step 403:When resource query instruction is obtained, objective attribute target attribute ginseng is inquired about from the first resource management module
Number;When the objective attribute target attribute parameter not being inquired from the first resource management module, manage mould from the Secondary resource
The objective attribute target attribute parameter is inquired about according to resource index in block.
In the embodiment of the present invention, when user wants to inquire about within the storage system certain resource, then trigger resource query and refer to
Order, here, resource query instruction carries the configured information of resource to be checked, and the configured information is used for which money will clearly to be inquired about
Source.
When terminal obtains resource query to be instructed, first, objective attribute target attribute parameter is inquired about 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
Resource index is not added with, accordingly, it would be desirable to each property parameters be checked one by one from the first resource management module, to determine is
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 about according to resource index from the Secondary resource management module.
Step 404:After the objective attribute target attribute parameter is inquired, according to the corresponding target of the objective attribute target attribute parameter acquiring
Resource.
In the embodiment of the present invention, as property parameters and resource are one-to-one relationships, therefore, 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 less, 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.Can be to storage by classified inquiry
Each resource in system carries out quick search.In the case where processor speed need not be strengthened, may provide the user with real time
Inquiry velocity, lifted user experience.
Structure composition schematic diagrams one of the Fig. 5 for the terminal of the embodiment of the present invention, as shown in figure 5, the terminal includes:It is new to provide
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:As on mobile device, number of documents, than larger, is on mass-memory unit by which.
In order to not affect user using performance during equipment, global resource management module only carries out pretreatment in holding state.New resources
Management module can keep in the new document in this part.After new resources management module receives request, the information such as its documents location can be entered
Row is temporary, to receive the scheduling of new resources enquiry module.This module only manages the nearest not new document of index in time, when connecing
The management of respective document after receiving the instruction of resource synchronization module, can be abandoned, global resource module management is transferred to.
New resources enquiry module:Front end interface of the new resources enquiry module as new resources management module is unified to receive new
Resource real-time query.And Query Result is returned to into resource query scheduler module.
Global resource management module:Global resource management module can to mobile terminal in all documents be managed.By
In its quantity than larger, it is on mass-memory unit by which.For the performance that the mobile device for not affecting user is used, meeting
With reference to the common management equipment resource of new resources management module, this module only carries out pretreatment in holding state.
Resource index module:In the standby state, resource index module is indexed process to global resource;Can avoid
The planless inquiry of limited disposal ability.The efficiency of inquiry can greatly be lifted.
Global resource enquiry module:After the inquiry request of resource query scheduler module is received, according to index to resource
Make a look up.Return Query Result.
Resource synchronization module:This module is the key of new resources management module and the cooperation of global resource management module.Non-
Holding state, the new resources management module that resource can be added into are inquired about for user.But, as which does not carry out pretreatment, can not
Can the substantial amounts of document of management.So, after being indexed to document in global resource, in time by synchronization module, by document from
New resources management module is removed.New resources management module so can be made all the time to keep higher search efficiency.
Resource query scheduler module:This module can be sent out to new resources enquiry module after the inquiry for receiving user first
Go out query statement, after the response for receiving inquiry failure, query statement is sent to global resource enquiry module.
Structure composition schematic diagrams two of the Fig. 6 for 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 new resources are stored in, being stored in the first money by the property parameters of the new resources
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 of the new resources in the Secondary resource management module 62 for being stored in
After number addition resource index, the property parameters of the new resources being stored in described in deletion from the first resource management module 61;
Resource query module 66, for when resource query instruction is obtained, looking into from the first resource management module 61
Ask objective attribute target attribute parameter;When the objective attribute target attribute parameter is not inquired from the first resource management module 61, from described
The objective attribute target attribute parameter is inquired about according to resource index in Secondary resource management module 62.
In an embodiment of the present invention, the terminal also includes:
Whether detection module 67, be in holding state for detection terminal;
Correspondingly, the resource index module 64, specifically for when the terminal is in holding state, described second
The property parameters addition resource index of the new resources in resource management module 62 for being stored in.
In the embodiment of the present invention, the resource query module 66 is additionally operable to after the objective attribute target attribute parameter is inquired, according to
According to the corresponding target resource of the objective attribute target attribute parameter acquiring.
In another embodiment of the invention, the terminal also includes:
Detection module 67, for the power consumption parameter of detection 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 addition resource index of the new resources in the Secondary resource management module 62 for being stored in.
In the embodiment of the present invention, the resource query module 66, specifically for from the first resource management module 61
Each property parameters is checked 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 at least include location parameter.
It will be appreciated by those skilled in the art that each module in terminal shown in Fig. 6 realizes that function 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, also can be realized by specific logic circuit.
Between technical scheme described in the embodiment of the present invention, in the case where not conflicting, can be in any combination.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong
Cross other modes to realize.Apparatus embodiments described above are only schematically, for example division of the unit, only
Only a kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be tied
Close, or be desirably integrated into another system, or some features can be ignored, or do not perform.In addition, shown or discussed each group
Can be by the indirect of some interfaces, equipment or unit into coupling partly each other or direct-coupling or communication connection
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The above-mentioned unit as separating component explanation can be, or may not be it is physically separate, it is aobvious as unit
The part for showing can be, or may not be physical location, you can with local positioned at one, it is also possible to be distributed to multiple network lists
In unit;Part or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in a second processing unit,
Can also be each unit individually as a unit, it is also possible to which two or more units are integrated in a unit;
Above-mentioned integrated unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form reality of SFU software functional unit
It is existing.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.