CN107103082A - Data processing method, client and computer-readable recording medium - Google Patents
Data processing method, client and computer-readable recording medium Download PDFInfo
- Publication number
- CN107103082A CN107103082A CN201710284841.3A CN201710284841A CN107103082A CN 107103082 A CN107103082 A CN 107103082A CN 201710284841 A CN201710284841 A CN 201710284841A CN 107103082 A CN107103082 A CN 107103082A
- Authority
- CN
- China
- Prior art keywords
- data
- search
- client
- matched
- selection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
Abstract
The invention discloses a kind of data processing method, including:Client obtains the corresponding search keyword of the search instruction when receiving search instruction;The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and the data matched with the search keyword are searched in the data of selection, wherein, when performing multiple selection operation, the data repeatedly chosen are differed;According to the matched data searched, corresponding search result is shown.The invention also discloses a kind of client and computer-readable recording medium.The present invention improves efficiency of the client to data processing.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of data processing method, client and computer-readable deposit
Storage media.
Background technology
With the high speed development of science and technology, the configuration of the client such as smart mobile phone, PAD (tablet personal computer), desktop computer is got over
Come higher so that in client data scanned for, matched etc. with processing and is achieved.However, due to the calculating energy of client
Power is limited, when when client the large number of data of quantity scanned for, matched etc. with processing, will be easy to card
The problems such as pausing, postpone, Data Matching speed is slow, and client is not high to the efficiency of data processing.
The content of the invention
It is a primary object of the present invention to propose a kind of data processing method, client and computer-readable recording medium,
Aim to solve the problem that inefficient technical problem of the client to data processing in the prior art.
To achieve the above object, the invention provides a kind of data processing method, the data processing method includes:
Client obtains the corresponding search keyword of the search instruction when receiving search instruction;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and in the data of selection
It is middle to search for the data matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen are equal
Differ;
According to the matched data searched, corresponding search result is shown.
Alternatively, the operation for choosing multiple data at least one times from the data cached middle execution of the client, and
The step of data matched with the search keyword are searched in the data of selection includes:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, preset from unselected data cached middle choose
The data of quantity, and return and search for and matched with the search keyword in the data of the predetermined number of selection described in execution
Data the step of, until search the data matched with the search keyword.
Alternatively, after the matched data that the basis is searched, the corresponding search result step of display, in addition to:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When continuing search for instruction of control triggering is selected based on described when receiving, from unselected data cached middle choosing
The data of predetermined number are taken, and return to the execution search in the data of the predetermined number of selection and search for crucial with described
The step of data of word matching.
Alternatively, the matched data that the basis is searched, the step of showing corresponding search result includes:
The matched data searched is returned to the data model layer of the client, regarding for the client is updated to trigger
Figure layer, shows corresponding search result.
Alternatively, the client obtains the corresponding search keyword of the search instruction when receiving search instruction
The step of before, in addition to:
Obtain described data cached from server end;
Described by acquisition data cached is cached in the virtual memory of the client.
In addition, to achieve the above object, present invention also offers a kind of client, the client includes:
Be stored with the memory of data processor;
Processor, is configured to perform the data processor to perform operations described below:
When receiving search instruction, the corresponding search keyword of the search instruction is obtained;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and in the data of selection
It is middle to search for the data matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen are equal
Differ;
According to the matched data searched, corresponding search result is shown.
Alternatively, the behaviour for choosing multiple data at least one times from the data cached middle execution of the client is performed
Make, and the operation for the data that search is matched with the search keyword includes in the data of selection:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, preset from unselected data cached middle choose
The data of quantity, and return and search for and matched with the search keyword in the data of the predetermined number of selection described in execution
Data operation, until search the data matched with the search keyword.
Alternatively, the processor also performs the data processor to perform operations described below:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When continuing search for instruction of control triggering is selected based on described when receiving, from unselected data cached middle choosing
The data of predetermined number are taken, and return to the execution search in the data of the predetermined number of selection and search for crucial with described
The operation of the data of word matching.
Alternatively, the matched data that the basis is searched is performed, showing the operation of corresponding search result includes:
The matched data searched is returned to the data model layer of the client, regarding for the client is updated to trigger
Figure layer, shows corresponding search result.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable
Be stored with data processor on storage medium, and number as described above is realized when the data processor is executed by processor
The step of according to processing method.
Data processing method proposed by the present invention, when user will obtain related data information, passes through client executing phase
The search operation answered, triggers search instruction, when client receives the search instruction, the search instruction is obtained first corresponding
Search keyword, then from the data cached middle multiple data of selection of client, search and search are crucial in the data of selection
The data of word matching, according to the matched data searched, show corresponding search result, thus obtain dependency number for user it is believed that
Breath.Due to simply have chosen part of cache data and scan for, not to client it is all it is data cached scan for, because
This, reduces search amount of calculation, accelerates Data Matching speed, so as to improve efficiency of the client to data processing.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is a kind of communications network system Organization Chart for realizing each embodiment of the invention;
Fig. 3 is the schematic flow sheet of data processing method first embodiment of the present invention;
Fig. 4 performs the interface schematic diagram of search operation for one optional user of the present invention;
Fig. 5 is the schematic flow sheet of data processing method second embodiment of the present invention;
Fig. 6 to Fig. 7 is one optional operation chart for performing data search operation of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Client can be implemented in a variety of manners.For example, client described in the present invention can include such as mobile phone,
Tablet personal computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), just
Prompt formula media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer
Deng mobile terminal, and the fixed terminal such as numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to such as numeral TV, desk-top
The terminal of the fixed types such as computer.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that the shifting shown in Fig. 1
Dynamic terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can include parts more more or less than diagram, or
Person combines some parts, or different part arrangements.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 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 connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.In the present invention, the memory of mobile terminal 1 00
Be stored with data processor in 109.Memory 109 can mainly include storing program area and storage data field, wherein, store journey
Sequence area can be needed for storage program area, at least one function application program (such as sound-playing function, image player function
Deng) etc.;Storage data field can be stored uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.This
Outside, memory 109 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In the present invention, processor 110 performs the data processor being stored in memory 109, to perform operations described below:
When receiving search instruction, the corresponding search keyword of the search instruction is obtained;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and in the data of selection
It is middle to search for the data matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen are equal
Differ;
According to the matched data searched, corresponding search result is shown.
Further, processor 110 is performed described chooses many at least one times from the data cached middle execution of the client
The operation of individual data, and the operation for the data that search is matched with the search keyword includes in the data of selection:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, preset from unselected data cached middle choose
The data of quantity, and return and search for and matched with the search keyword in the data of the predetermined number of selection described in execution
Data operation, until search the data matched with the search keyword.
Further, processor 110 also performs the data processor to perform operations described below:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When continuing search for instruction of control triggering is selected based on described when receiving, from unselected data cached middle choosing
The data of predetermined number are taken, and return to the execution search in the data of the predetermined number of selection and search for crucial with described
The operation of the data of word matching.
Further, processor 110 performs the matched data that the basis is searched, and shows the behaviour of corresponding search result
Work includes:
The matched data searched is returned to the data model layer of the client, regarding for the client is updated to trigger
Figure layer, shows corresponding search result.
Further, processor 110 also performs the data processor to perform operations described below:
Obtain described data cached from server end;
Described by acquisition data cached is cached in the virtual memory of the client.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each reality of data processing method of the present invention is proposed
Apply example.
Reference picture 3, Fig. 3 is the schematic flow sheet of data processing method first embodiment of the present invention.In the first embodiment,
The data processing method comprises the following steps:
Step S10, client obtains the corresponding search keyword of the search instruction when receiving search instruction;
Step S20, the operation of multiple data is chosen from the data cached middle execution of the client at least one times, and in choosing
The data matched with the search keyword are searched in the data taken, wherein, when performing multiple selection operation, repeatedly choose
Data differ;
Step S30, according to the matched data searched, shows corresponding search result.
With the high speed development of science and technology, the configuration of the client such as smart mobile phone, PAD (tablet personal computer), desktop computer is got over
Come higher so that in client data scanned for, matched etc. with processing and is achieved.However, due to the calculating energy of client
Power is limited, when when client the large number of data of quantity scanned for, matched etc. with processing, will be easy to card
The problems such as pausing, postpone, Data Matching speed is slow, and client is not high to the efficiency of data processing.
In order to improve in the efficiency of client process data, the present invention when user will obtain related data information, pass through visitor
Family end performs corresponding search operation, triggers search instruction, when client receives the search instruction, the search is obtained first
Corresponding search keyword is instructed, then from the data cached middle multiple data of selection of client, is searched in the data of selection
The data matched with search keyword, according to the matched data searched, show corresponding search result, so as to be obtained for user
Related data information.Scanned for due to simply have chosen part of cache data, not to all data cached of client
Scan for, reduce search amount of calculation, so as to accelerate the speed of data processing, namely improve client to data processing
Efficiency.
Specifically, be previously stored with the present embodiment, in client it is corresponding data cached, wherein, client is above-mentioned
The mobile terminal 1 00 enumerated.For example, client is stored in data cached among the virtual memory of client.Alternatively, it is described
Before step S10, in addition to:
Step a, obtains described data cached from server end;
Step b, described by acquisition data cached is cached in the virtual memory of the client.
In order to realize data search, the matching treatment function of client, client is set up with corresponding server end first
Communication connection, wherein, the server end preserves related data.Communication connection is successfully established in client and server
Afterwards, client obtains the related data that server end is preserved.Such as, client sends corresponding data acquisition request to server
End, when received server-side is to the data acquisition request, by the related data of preservation, disposably loading feeds back to client.When
Client from server end get related data when, the related data of acquisition is cached in the virtual memory of client.For
It is easy to description, the related data got from server end that is cached in the virtual memory of client is hereafter referred to as caching
Data.
When user will obtain related data information, user can input related search keywords by client, perform phase
The search operation answered, triggers corresponding search instruction, wherein, include search keyword information in the search instruction.Work as client
When termination receives the search instruction, the corresponding search keyword of the search instruction is obtained first.
After search keyword is got, its is data cached for client call, such as recalls slow in its virtual memory
Deposit data, from the data cached middle multiple data of selection, and searches for what is matched with the search keyword in multiple data of selection
Data.Alternatively, client is in batch from the data cached middle multiple data of selection, data selected each time and other times
Selected data are differed.When have chosen multiple data each time, just searched in the currently selected multiple data taken
The data matched with the search keyword.
When searching the data matched with the search keyword, client is with regard to according to the matched data searched, display
Corresponding search result.Alternatively, the step S30 includes:
The matched data searched is returned to the data model layer of the client, regarding for the client is updated to trigger
Figure layer, shows corresponding search result.
In the present embodiment, client includes data model layer, view layer.When client-side search to the search keyword
During the data of matching, the matched data searched is back to the data model layer of client, received in data model layer
During with data, the view layer of triggering client is updated according to matched data, shows corresponding search result.
Below exemplified by searching for associated person information, the data processing method to the present invention is described in detail.
The client-cache of user has the corresponding associated person information of multiple contact persons of the user, wherein, associated person information
Including contact name, contact phone number, contact addresses, contact head image etc..When user needs to obtain some
During associated person information, in the related search keyword of contact person's search interface input of client, corresponding search operation is performed.
For example, as shown in figure 4, input search keyword " Zhang San " in the input frame of contact person's search interface, and click on contact person and search
The search control at rope interface, triggers search instruction.When receiving the search instruction, client is believed from the All Contacts of caching
In breath, multiple associated person informations are chosen in batch, when have chosen multiple associated person informations each time, taken currently selected
The associated person information matched with search keyword, namely the corresponding contact person's letter of search Zhang San are searched in multiple associated person informations
Breath.Such as, 10 associated person informations are chosen first from All Contacts' information of caching, then from 10 contacts of this selection
The associated person information matched with search keyword is searched in people's information.If having searched the contact person's letter matched with search keyword
Breath, then search for successfully, show corresponding search result, namely the connection of the matching searched is shown on the display interface of client
It is people's information, in above-mentioned row illustrated example, namely the corresponding associated person information of display Zhang San.If not searching crucial with search
The associated person information of word matching, namely current search failure, now, 10 connection that client has been selected from the removing of caching
It is in other associated person informations beyond people's information, 10 associated person informations to be chosen again, then in 10 currently chosen again
The associated person information matched with search keyword is searched in individual associated person information.If having searched the connection matched with search keyword
It is people's information, then this time searches for successfully, show corresponding search result.If not searching the contact person matched with search keyword
Information, namely this time search or failure, now, client has been chosen according to above-mentioned way of search from the removing of caching
In other associated person informations beyond 20 associated person informations taken, 10 associated person informations are chosen again, are continued from current choosing
The associated person information matched with search keyword is searched in 10 associated person informations taken, is searched and search keyword until working as
During the associated person information of matching, terminate search operation, show corresponding search result.
The data processing method that the present embodiment is provided, when user will obtain related data information, passes through client executing
Corresponding search operation, triggers search instruction, when client receives the search instruction, and search instruction correspondence is obtained first
Search keyword, then from client it is data cached it is middle choose multiple data, search is closed with search in the data of selection
The data of keyword matching, according to the matched data searched, show corresponding search result, so as to obtain related data for user
Information.Due to simply have chosen part of cache data and scan for, not to client it is all it is data cached scan for,
Therefore, search amount of calculation is reduced, Data Matching speed is accelerated, so as to improve efficiency of the client to data processing.
Further, as shown in figure 5, proposing data processing method second embodiment of the present invention.Data processing method second
The difference of embodiment and data processing method first embodiment is, in data processing method second embodiment, the step
S20 includes:
Step S21, from the data cached middle data for choosing predetermined number of the client;
Step S22, searches for the data matched with the search keyword in the data of the predetermined number of selection;
Step S23, if search the data matched with the search keyword;If so, then performing the step S30;
If it is not, then performing step S24;
Step S24, from the data of unselected data cached middle selection predetermined number, and returns to the execution step
S22。
In the present embodiment, a predetermined number n is previously provided with, predetermined number n is the number that client single searches for data
Measure threshold value, if for example, set predetermined number n be 100, namely client choose every time be used for search for data quantity threshold
It is worth for 100, client will not choose more than 100 data and scan for every time.
When getting search keyword, first according to predetermined number n, from the data cached middle selection n numbers of client
According to, and the data matched with search keyword are searched in this n data of selection.If searching and searching in this n data
The data of rope Keywords matching, then perform the operation in such as first embodiment, and according to the matched data searched, display is corresponding
Search result.If not searching the data matched with search keyword in this n data, it has been chosen from the removing of caching
In other outer according to this unselected data of the n numbers that take, n data are chosen again, and in the n data chosen again
Search for the data matched with search keyword.If this time searching the data matched with search keyword, perform as first is real
The operation in example is applied, according to the matched data searched, corresponding search result is shown.If not searching this time crucial with search
In the data of word matching, then other outer according to this unselected data of the 2n numbers that have been selected from the removing of caching, then
N data of secondary selection, and the data matched with search keyword are searched in the n data currently chosen, circulation performs above-mentioned
Operation, until when searching the data matched with search keyword, according to the matched data searched, the corresponding search of display
As a result.
For example, it is assumed that client is data cached including data 1, data 2, data 3 ... ..., data n, data n+
1 ... ..., data 2n, data 2n+1 ... ..., data m, when getting search keyword, client is according to data cached row
Sequence, chooses data 1 to this n data of data n, searches for what is matched with search keyword into data n in the data 1 of selection first
Data.If searching the data matched with search keyword into data n in data 1, according to the matched data searched, show
Show corresponding search result.If not searching the data matched with search keyword into data n in data 1, data n is chosen
+ 1 arrives data 2n, and the data matched with search keyword are searched in data n+1 to data 2n.If this time searching and searching for
The data of Keywords matching, then according to the matched data searched, show corresponding search result.If this time not searching and searching
The data of rope Keywords matching, then choose data 2n+1 to data 3n, and search is closed with search in data 2n+1 to data 3n
The data of keyword matching, circulation performs aforesaid operations, until when searching the data matched with search keyword, according to search
The matched data arrived, shows corresponding search result.
Alternatively, every time choose n data before, first judge unselected data cached quantity whether be more than or
Equal to predetermined number n.When unselected data cached quantity is more than or equal to predetermined number n, delay from unselected
N data are chosen in deposit data, and the data matched with search keyword are searched in n data of selection.When unselected
Data cached quantity when being less than predetermined number n, then choose remaining all unselected data cached, and remaining
The data that all unselected data cached middle search are matched with search keyword.
Alternatively, client except can using it is above-mentioned multiple data are chosen according to data cached sequence in addition to,
According to other data decimation rules middle multiple data can also be chosen from data cached.For example, client can be according to every
The corresponding sequence number of one data, the data decimation that sequence number can be divided exactly by some integer is come out and scanned for.In the present invention,
For not being limited from the data cached middle mode for choosing multiple data specifically.
Further, after the step S30, in addition to:
Step c, the corresponding prompting operation interface of display, the prompting operation interface includes the selection whether continued search for
Control;
Step d, selects when continuing search for instruction of control triggering, from unselected caching number when receiving based on described
According to the data of middle selection predetermined number, and return and search for and searched with described in the data of the predetermined number of selection described in execution
The step of data of rope Keywords matching.
When client is according to the matched data searched, show after corresponding search result, user passes through viewing client-side
It would know that search result.It is understood that needed for the search result is probably user, it is also possible to needed for not being user
's.Therefore, further, in order to improve the interactivity of user and client, after display search result, client is also shown
Corresponding prompting operation interface, the prompting operation interface includes the selection control whether continued search for, for example, as shown in fig. 6,
Include selection control "Yes" and selection control "No".If needed for the search result currently shown is user, user can click on
Control "No" is selected, search operation is terminated.If needed for the search result currently shown is not user, as shown in fig. 7, user can
Click on selection control "Yes", triggering continue search for instruction, when receive this continue search for instruction when, client performs above-mentioned again
Operation, from unselected data cached middle selection n data of predetermined number, and in n data of predetermined number of selection
Search for the data matched with search keyword.Circulation performs aforesaid operations, until working as the number for searching and being matched with search keyword
According to when, according to the matched data searched, show corresponding search result, and be that user is taken in current search result,
Terminate search operation.
The data processing method that the present embodiment is provided, after display search result, client also shows corresponding prompting
Operation interface, the prompting operation interface includes the selection control whether continued search for, if the search result currently shown is not
Needed for user, then user can click on corresponding selection control triggering and continue search for instruction, and client is from unselected caching
The data of predetermined number are chosen in data, and the number matched with search keyword is searched in the data of the predetermined number of selection
According to until when searching the data matched with search keyword, according to the matched data searched, display again is searched accordingly
Hitch fruit.Circulation performs this operation, until the search result currently shown is that user is taken, completes search operation.Therefore, carry
The high interactive experience of user.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with data processor, following operation is realized when the data processor is performed by processor 110:
When receiving search instruction, the corresponding search keyword of the search instruction is obtained;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and in the data of selection
It is middle to search for the data matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen are equal
Differ;
According to the matched data searched, corresponding search result is shown.
Further, following operation is also realized when the data processor is performed by processor 110:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, preset from unselected data cached middle choose
The data of quantity, and return and search for and matched with the search keyword in the data of the predetermined number of selection described in execution
Data operation, until search the data matched with the search keyword.
Further, following operation is also realized when the data processor is performed by processor 110:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When continuing search for instruction of control triggering is selected based on described when receiving, from unselected data cached middle choosing
The data of predetermined number are taken, and return to the execution search in the data of the predetermined number of selection and search for crucial with described
The operation of the data of word matching.
Further, following operation is also realized when the data processor is performed by processor 110:
The matched data searched is returned to the data model layer of the client, regarding for the client is updated to trigger
Figure layer, shows corresponding search result.
Further, following operation is also realized when the data processor is performed by processor 110:
Obtain described data cached from server end;
Described by acquisition data cached is cached in the virtual memory of the client.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of data processing method, it is characterised in that the data processing method comprises the following steps:
Client obtains the corresponding search keyword of the search instruction when receiving search instruction;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and is searched in the data of selection
The data that rope is matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen not phase
Together;
According to the matched data searched, corresponding search result is shown.
2. data processing method as claimed in claim 1, it is characterised in that it is described from the client it is data cached in hold
Row chooses the operation of multiple data at least one times, and the data matched with the search keyword are searched in the data of selection
Step includes:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, from unselected data cached middle selection predetermined number
Data, and return and perform the number searched for and matched with the search keyword in the data of the predetermined number of selection
According to the step of, until search the data matched with the search keyword.
3. data processing method as claimed in claim 2, it is characterised in that the matched data that the basis is searched, display
After corresponding search result step, in addition to:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When receiving based on the selection control triggering when continuing search for instruction, from unselected data cached middle selection in advance
If the data of quantity, and return to the execution search in the data of the predetermined number of selection and the search keyword
The step of data matched somebody with somebody.
4. data processing method as claimed in claim 1, it is characterised in that the matched data that the basis is searched, display
The step of corresponding search result, includes:
The matched data searched is returned to the data model layer of the client, to trigger the view for updating the client
Layer, shows corresponding search result.
5. the data processing method as described in claim any one of 1-4, it is characterised in that the client is receiving search
During instruction, before the step of obtaining the search instruction corresponding search keyword, in addition to:
Obtain described data cached from server end;
Described by acquisition data cached is cached in the virtual memory of the client.
6. a kind of client, it is characterised in that the client includes:
Be stored with the memory of data processor;
Processor, is configured to perform the data processor to perform operations described below:
When receiving search instruction, the corresponding search keyword of the search instruction is obtained;
The operation of multiple data is chosen at least one times from the data cached middle execution of the client, and is searched in the data of selection
The data that rope is matched with the search keyword, wherein, when performing multiple selection operation, the data repeatedly chosen not phase
Together;
According to the matched data searched, corresponding search result is shown.
7. client as claimed in claim 6, it is characterised in that perform the data cached middle execution from the client
The operation of multiple data is chosen at least one times, and the behaviour of the data matched with the search keyword is searched in the data of selection
Work includes:
From the data cached middle data for choosing predetermined number of the client;
The data matched with the search keyword are searched in the data of the predetermined number of selection;
If not searching the data matched with the search keyword, from unselected data cached middle selection predetermined number
Data, and return and perform the number searched for and matched with the search keyword in the data of the predetermined number of selection
According to operation, until search the data matched with the search keyword.
8. client as claimed in claim 7, it is characterised in that the processor also performs the data processor to hold
Row operations described below:
The corresponding prompting operation interface of display, the prompting operation interface includes the selection control whether continued search for;
When receiving based on the selection control triggering when continuing search for instruction, from unselected data cached middle selection in advance
If the data of quantity, and return to the execution search in the data of the predetermined number of selection and the search keyword
The operation for the data matched somebody with somebody.
9. client as claimed in claim 6, it is characterised in that perform the matched data that the basis is searched, shows phase
The operation for the search result answered includes:
The matched data searched is returned to the data model layer of the client, to trigger the view for updating the client
Layer, shows corresponding search result.
10. a kind of computer-readable recording medium, it is characterised in that be stored with the computer-readable recording medium at data
Reason program, realizes the data processing as any one of claim 1 to 5 when the data processor is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710284841.3A CN107103082A (en) | 2017-04-26 | 2017-04-26 | Data processing method, client and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710284841.3A CN107103082A (en) | 2017-04-26 | 2017-04-26 | Data processing method, client and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107103082A true CN107103082A (en) | 2017-08-29 |
Family
ID=59657366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710284841.3A Pending CN107103082A (en) | 2017-04-26 | 2017-04-26 | Data processing method, client and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107103082A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609180A (en) * | 2017-09-29 | 2018-01-19 | 努比亚技术有限公司 | A kind of screening technique, terminal and storage medium |
CN109815277A (en) * | 2018-12-21 | 2019-05-28 | 珠海格力电器股份有限公司 | Retrieval display method and device |
CN113051485A (en) * | 2021-03-26 | 2021-06-29 | 北京达佳互联信息技术有限公司 | Group searching method, device, terminal and storage medium |
-
2017
- 2017-04-26 CN CN201710284841.3A patent/CN107103082A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609180A (en) * | 2017-09-29 | 2018-01-19 | 努比亚技术有限公司 | A kind of screening technique, terminal and storage medium |
CN107609180B (en) * | 2017-09-29 | 2020-10-30 | 浙江佩鼎大数据科技有限公司 | Screening method, terminal and storage medium |
CN109815277A (en) * | 2018-12-21 | 2019-05-28 | 珠海格力电器股份有限公司 | Retrieval display method and device |
CN113051485A (en) * | 2021-03-26 | 2021-06-29 | 北京达佳互联信息技术有限公司 | Group searching method, device, terminal and storage medium |
CN113051485B (en) * | 2021-03-26 | 2023-08-22 | 北京达佳互联信息技术有限公司 | Group searching method, device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN107193889A (en) | Ad blocking method, terminal and computer-readable recording medium | |
CN107203305A (en) | It is switched fast method, mobile terminal and the computer-readable recording medium of application | |
CN107145385A (en) | A kind of multitask interface display methods, mobile terminal and computer-readable storage medium | |
CN107038245A (en) | Page switching method, mobile terminal and storage medium | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN107729160A (en) | Application control method, mobile terminal and computer-readable recording medium | |
CN107248072A (en) | Barcode scanning method of payment, mobile terminal and computer-readable recording medium | |
CN107133302A (en) | Realize method, system, terminal and the computer-readable recording medium of data consistency | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107124466A (en) | One kind prevents caching penetrating method and device, computer-readable recording medium | |
CN107135086A (en) | One kind broadcast method for pushing and equipment, computer-readable recording medium | |
CN107133795A (en) | A kind of method, equipment and computer-readable recording medium for switching payment environment | |
CN107506468A (en) | Application program searching method, terminal, server, computer-readable recording medium | |
CN107103082A (en) | Data processing method, client and computer-readable recording medium | |
CN107133350A (en) | Data-updating method, mobile terminal and storage medium based on search engine | |
CN110052023A (en) | Game control method, mobile terminal and computer readable storage medium | |
CN109445945A (en) | Memory allocation method, mobile terminal, server and the storage medium of application program | |
CN107809527A (en) | A kind of method and apparatus that prompt operation is presented | |
CN107465829A (en) | A kind of document sending method, mobile terminal and computer-readable recording medium | |
CN107360211A (en) | A kind of inserting method, relevant device and the computer-readable storage medium of information flow information | |
CN107133108A (en) | Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock | |
CN107241394A (en) | A kind of log transmission method, device and computer-readable recording medium | |
CN107179830A (en) | Information processing method, mobile terminal and the storage medium of body-sensing application | |
CN110188249A (en) | A kind of global search method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170829 |
|
RJ01 | Rejection of invention patent application after publication |