CN110377654A - Processing method, device, electronic equipment and the computer readable storage medium of request of data - Google Patents
Processing method, device, electronic equipment and the computer readable storage medium of request of data Download PDFInfo
- Publication number
- CN110377654A CN110377654A CN201910656324.3A CN201910656324A CN110377654A CN 110377654 A CN110377654 A CN 110377654A CN 201910656324 A CN201910656324 A CN 201910656324A CN 110377654 A CN110377654 A CN 110377654A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- subdata
- target
- party
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure discloses a kind of processing method of request of data, device, electronic equipment and computer readable storage mediums.This method comprises: determining that data query range, request of data are used to obtain data from third party according to request of data;According to query context and third-party interface range, multiple subdata requests are generated, the query context of subdata request is matched with third-party interface range;Target data is obtained from third party according to the request of multiple subdatas;Export the target data obtained.The embodiment of the present disclosure can be after determining the data query range of request of data, request of data is split according to third-party interface range, obtain multiple subdata requests, each subdata request is matched with third-party interface range, and then it can be avoided because of query context and the inconsistent problem for leading to feedback result exception of interface range, data request processing efficiency is improved, resource utilization is improved.
Description
Technical field
The embodiment of the present disclosure is related to data processing technique more particularly to a kind of processing method of request of data, device, electronics
Equipment and computer readable storage medium.
Background technique
With the development of information technology, multi-platform data interaction is more and more.It is multi-party to carry out the presence of data interaction formula
User initiates the case where requesting to third-party application by certain application.
When searching for using third party system, in the system specified range search of we, often there is the limitation of quantity.
It is searched for generally for example, third party system can be used for carrying out phonetic, and 10000 id can only be searched for every time.But user is initiating
When phonetic is searched for generally, in this case it is not apparent that the limitation of above-mentioned number of searches, when we being caused to initiate inquiry request, it may appear that inquiry model
The case where enclosing more than 10000 id, such as inquiring 30000id.At this point, third party system or can only to feed back 10000 id corresponding
As a result, feedback query it is abnormal as a result, causing query result abnormal.
As it can be seen that when Client-initiated data inquiry request, the data that third-party application returns occur scheme often at present
It is abnormal, cause inquiry to fail, data request processing efficiency is lower.
Summary of the invention
The disclosure provides processing method, device, electronic equipment and the computer readable storage medium of a kind of request of data, with
Data request processing efficiency is improved, resource utilization is improved.
In a first aspect, the embodiment of the present disclosure provides a kind of processing method of request of data, comprising:
Determine that data query range, request of data are used to obtain data from third party according to request of data;
According to query context and third-party interface range, multiple subdata requests, the inquiry model of subdata request are generated
It encloses and is matched with third-party interface range;
Target data is obtained from third party according to the request of multiple subdatas;
Export the target data obtained.
Second aspect, the embodiment of the present disclosure provide a kind of processing unit of request of data, comprising:
Query context determining module, for determining that data query range, request of data are used for from third according to request of data
Side obtains data;
Subdata requests generation module, query context for being determined according to query context determining module and third-party connects
Mouth range, generates multiple subdatas requests, and the query context of subdata request is matched with third-party interface range;
Target data obtains module, and multiple subdatas for requesting generation module to generate according to subdata are requested from third
Side obtains target data;
Output module, for exporting the target data obtained.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, including storage device, processing unit and deposit
The computer program that can be run on the storage means and in processing unit is stored up, processing unit realizes such as first party when executing program
The processing method of request of data shown in face.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the processing method of the request of data as shown in first aspect when the program is executed by processor.
The embodiment of the present disclosure determines data query range when receiving request of data, according to request of data, according to inquiry
Range and third-party interface range generate multiple subdata requests;Target is obtained from third party according to the request of multiple subdatas
Data;Export the target data obtained.Relative to request of data is directly forwarded to third party, there is feedback result exception, this
Open embodiment can after determining the data query range of request of data, according to third-party interface range to request of data into
Row is split, and obtains the request of multiple subdatas, and each subdata request is matched with third-party interface range, so can be avoided because
Query context and the inconsistent problem for leading to feedback result exception of interface range improve data request processing efficiency, improve resource
Utilization rate.
Detailed description of the invention
Fig. 1 is a system architecture schematic diagram in the embodiment of the present disclosure;
Fig. 2 is another system architecture schematic diagram in the embodiment of the present disclosure;
Fig. 3 is the flow chart of the processing method of a request of data in the embodiment of the present disclosure;
Fig. 4 is the schematic diagram of a memory space in the embodiment of the present disclosure;
Fig. 5 is the flow chart of the processing method of another request of data in the embodiment of the present disclosure;
Fig. 6 is the structural schematic diagram of the processing unit of a request of data in the embodiment of the present disclosure;
Fig. 7 is an electronic devices structure schematic diagram in the embodiment of the present disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.In following each embodiments, each embodiment
In simultaneously provide optional feature and example, each feature recorded in embodiment can be combined, form multiple optinal plans,
The embodiment of each number should not be considered merely as to a technical solution.It also should be noted that for ease of description, attached drawing
In illustrate only part relevant to the disclosure rather than entire infrastructure.
The embodiment of the present disclosure provides a kind of processing method of request of data, can be after trigger data request, according to number
Data query range and third-party interface range according to request, split request of data, obtain multiple subdatas and ask
It asks, based on subdata request and exports target data.So that the subdata request that third party receives connects with third-party
Mouth commensurate in scope improves request of data success rate, and then improves data request processing efficiency.The weight of request of data is avoided simultaneously
Recurrence is sent, and resource utilization is improved.
Fig. 1 is the system architecture schematic diagram that the disclosure uses, including electronic equipment 001 and third-party server 002, user
003 can operate electronic equipment 001, and the request of data of third-party server 002 is triggered by electronic equipment 001.Electronics
Request of data is sent to third-party server 002 by equipment 001, and receives the target data of the feedback of third-party server 002, so
The target data received is exported afterwards, user 003 is made to obtain the target data.Electronic equipment 001 can by network with
Third-party server 002 carries out data interaction.
Optionally, as shown in Fig. 2, the processing method for the request of data that the disclosure provides is in addition to can be in above-mentioned electronic equipment
It carries out except processing locality, referring to system architecture 100 shown in Fig. 2, server 105 can also be applied to, user passes through terminal
After side apparatus is operated, calculating operation is carried out by server end, and idsplay order is sent to terminal side, shown by terminal side
The processing result of server 105.Terminal side can be laptop 103, tablet computer 102, smart phone 101 etc., terminal
Side is surveyed server 105 with network by cloud network 104 and is communicated.
Fig. 3 is a kind of flow chart of the processing method for request of data that the embodiment of the present disclosure provides, and the embodiment of the present disclosure can
The case where suitable for handling request of data, this method can be executed by electronic equipment, electronic equipment may include but
It is not limited to such as mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD
(tablet computer), PMP (portable media player), navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle mounted electric
The fixed terminal equipment of the mobile terminal device of sub- rearview mirror etc. and such as number TV, desktop computer etc., this method
Specifically comprise the following steps:
Step 110 determines that data query range, request of data are used to obtain data from third party according to request of data.
User can trigger request of data on an electronic device.For example, pay system is run on electronic equipment, when user needs
When transferring the information of certain employee, need to issue request of data to third party according to the address name of the employee, third party's feedback should
After the information of employee, exported by electronic equipment to user.In another example being equipped with mail applications on electronic equipment, user needs to adjust
When taking the dealing mail record of address list contact person, electronic equipment initiates the mark of the contact person to third-party server, with
Just third-party server returns to the dealing mail of the contact person.
In trigger data request, need to add data query range for request of data, usual data query range can be with
It is that gamut searches for the search being also possible within the specified range.For example, the ID interval range of configuration search is 1-30000.Number
It can search for range it is investigated that asking and may range from pre-recorded maximum.Scene is inquired for above-mentioned employee information, it can be by employee
Sum is determined as data query range.Address list scene can be using whole dates as search range.
Step 120, according to query context and third-party interface range, generate multiple subdatas requests, subdata request
Query context matched with third-party interface range.
Third-party interface range is the search range that third party can be performed, which is usually less than query context.
According to the query context of request of data and third-party interface range, request of data is subdivided into multiple subdatas and is requested.
Optionally, query context is split according to third-party interface range, obtains multiple interface polls ranges;Root
Subdata request is generated according to each interface polls range.
Using interface range as window, query context is intercepted, successively obtains multiple interface polls ranges.Then, root
Corresponding subdata request is generated according to each interface polls range.Illustratively, interface range 0-100id, query context are
0-299id then obtains three interface polls ranges, is respectively: 0-99id, 100-199id, 200-299id.Then, it builds respectively
The subdata that vertical query context is 0-99id requests A, and the subdata that query context is 100-199id requests B and query context
C is requested for the subdata of 200-299id.
Step 130 obtains target data from third party according to the request of multiple subdatas.
Step 130 can be implemented by following step: the first step, send multiple subdata requests to third party.The
Two steps receive the target subdata that third party returns according to the request of each subdata.Third step determines mesh according to target subdata
Mark data.
The request of selected section subdata or whole subdata requests from the request of multiple subdatas obtained in step 120,
The subdata request of selection is sent to third party, and target data is determined according to the target subdata that third party feeds back.Third
Root returns to each subdata according to the subdata request received and requests corresponding target subdata.
Target data can be the content shown in output interface, and the difference of rule is shown according to output interface, can be true
Fixed different target data.Display rule may include the corresponding whole query results of display request of data, at this time whole subnumbers
Target data is combined into according to the collection of the corresponding target complete subdata of request.Display rule may also include looking into for display fixed quantity A
It askes as a result, generating number of targets at this time when the query result quantity in the target subdata received often reaches fixed quantity A
According to.
In one implementation, the corresponding whole query results of output data request in output interface.At this point, first
Step sends multiple subdata requests to third party, implementable are as follows: to send whole subdata requests to third party.
In another implementation, the disclosure can be applied to support online query, be likely to occur different user at this time
Parallel request of data is initiated identical third party.For such situation, after second step, further includes: cache every height
The corresponding target subdata of request of data;New subdata request is responded according to the target subdata of caching.
It is the mapping relations for establishing subdata request and the target subdata received in memory space, stores every height
The corresponding interface range of request of data and each subdata request corresponding target subdata.It is split as by request of data
After multiple subdata requests, each subdata is stored respectively and requests corresponding third-party interface range.Illustratively, Ke Yi
Establish range pond in memory space, range pond is used to record split out multiple and connects no range.It is assumed that third party
The word enquiring upper limit (i.e. interface range) of support is N, and current data request is split as three sub- request of data, is respectively used to
Query interface range is the query result of 0-N, N-2N and 2N-3N.The result difference received according to three sub- request of data
For result 1, result 2 and result 3.Wherein result 1 includes the query result that number is 0-10.As a result 2 be 10-15's including number
Query result.As a result 3 include numbering the query result for being 15-20.Outcome pool can be established in the buffer, and successively storage receives
Target subdata.
If in certain current Client-initiated request of data, the request of some subdata (i.e. new subdata request) is connect
Mouthful range is N-2N, then it is corresponding as a result, i.e. result 2 that N-2N can be read from memory space.Result 2 is asked as the subdata
Seek corresponding target subdata.It realizes and subdata request is responded according to the query result of local cache, improve the place of request of data
Manage efficiency.
Further, the query result being locally stored is updated according to preset time.Preset time can be 1 hour or 1 day.
The subdata request that step 120 obtains successively stores in request pond.Request pond can be the use divided in caching
In the address space of storage subdata request.When step 120 obtains the request of whole subdatas, all sons are read from request pond
Request of data, and subdata request is sent to third party.
Correspondingly, third step, determines target data according to target subdata, it is implementable are as follows: according to the target complete of acquisition
Subdata determines target data.
After sending whole subdata requests to third party, third party can return to subdata successively and request corresponding target
Data.The mark carried in the target subdata that the mark and third party that can be requested according to subdata return, it is determined whether connect
It receives subdata and requests corresponding target subdata.It is true according to target complete subdata after receiving target complete subdata
Set the goal data.
In the above-described example, A, subdata request B and subdata request C subdata can be requested to be sent to third
Side, third party return to the corresponding target subdata a of subdata request A, the corresponding target subdata b of subdata request B and son
The corresponding target subdata c of request of data C.At least one query result of target subdata includes if without query result
Indicate the flag bit of no query result.Whole query results are summarized, target data is obtained.
The target data that step 140, output obtain.
The target data that step 130 determines is shown in output interface.It can successively be shown by list mode and each be looked into
Ask result.
The processing method for the request of data that the embodiment of the present disclosure provides, when receiving request of data, according to request of data
It determines data query range, according to query context and third-party interface range, generates multiple subdata requests;According to multiple sons
Request of data obtains target data from third party;Export the target data obtained.Relative to request of data is directly forwarded to
There is feedback result exception in tripartite, and the embodiment of the present disclosure can be after determining the data query range of request of data, according to third
The interface range of side splits request of data, obtains multiple subdata requests, and each subdata request connects with third-party
Mouth commensurate in scope, and then can be avoided because of query context and the inconsistent problem for leading to feedback result exception of interface range, it ensures
Tripartite's interface mistake will not occur because data volume is excessive, improve data request processing efficiency, improve resource utilization.
In a usage scenario, user runs employee's wages system in the electronic device, when making payroll, according to
The name phonetic of employee has the third party of employee database to initiate phonetic fuzzy search request to operation.Electronic equipment is according to phonetic
Fuzzy search request determines that name query context, phonetic fuzzy search request are used to carry out the phonetic mould of name from name server
Paste inquiry.Then, according to the query interface range of name query context and name server, multiple name inquiry is generated and are asked
It asks.Subsequently, son request is inquired according to multiple names obtain name information from name server.Finally, the name that output obtains
Information.
Fig. 5 is a kind of flow chart of the processing method for request of data that the embodiment of the present disclosure provides, as to above-mentioned implementation
The further explanation of example, output interface can show query result in the form of paging, be based on this scene, and above-described embodiment can lead to
Following manner is crossed to be implemented:
Step 110 determines that data query range, request of data are used to obtain data from third party according to request of data.
Step 120, according to query context and third-party interface range, generate multiple subdatas requests, subdata request
Query context matched with third-party interface range.
Step 210 sends multiple subdata requests to third party.
In one implementation, a sub- request of data only can be sent to third party every time.It is sent when to third party
After the first subdata request of certain request of data, if determining the quantity and knot of the target subdata received in step 240
Fruit quantity mismatches, then second sub- request of data of the request of data is sent to third party.And then each traffic is dropped
It is low, and the desired query result of user is likely to be present in the request of first subdata or corresponding target of second sub- request of data
In data, and then without sending subsequent child request of data, avoids sending unnecessary subdata request and third party carries out nothing
The inquiry response of meaning improves resource utilization.
In another implementation, the subdata request of preset quantity, preset quantity can be sent to third party every time
Less than the total quantity of subdata request.If query result quantity in the target subdata that the request of each subdata returns compared with
Lack, then the adjustable subdata number of requests sent every time.
Step 220 receives the target subdata that third party returns according to the request of each subdata.
Step 230 obtains the fruiting quantities shown in output interface.
Whether the quantity for the target subdata that step 240, judgement receive matches with fruiting quantities.
Optionally, judge whether the quantity of the target subdata received is more than or equal to fruiting quantities.If it is larger than or equal to,
The quantity of the target subdata then received is matched with fruiting quantities.If it is less, the quantity of the target subdata received
It is mismatched with fruiting quantities.
Further, it can also judge the target subdata not exported in the quantity and caching of the target subdata received
The sum of whether matched with fruiting quantities.
Step 250, when the quantity of the target subdata received is matched with fruiting quantities, according to receive target son
Data determine target data.
The target data that step 140, output obtain.
Output interface can be according to paging mode displaying target data.The query result quantity of each Pagination Display is identical.Together
When, it include page-turning button in paging interface, page-turning button or when triggering page turning gesture, triggers page turn over operation when the user clicks.
Further, when foreground trigger result interface page turn over operation when, if the quantity for the target subdata not exported with
Fruiting quantities matching, then determine target data according to the target subdata not exported, and the target subdata not exported is in caching
The target subdata not exported.
When by paging form displaying target data, in fact it could happen that the target subdata that subdata request returns included looks into
Asking fruiting quantities is more than fruiting quantities shown by a paging.At this point, being stored in the buffer to the target subdata not exported
In query result be identified.
When triggering page turn over operation, first look at query result in the target subdata that does not export in caching quantity whether
More than or equal to fruiting quantities.If it is larger than or equal to fruiting quantities, then read in the target subdata not exported stored in caching
Query result, and exported.
Further, when result interface page turn over operation is triggered on foreground, if the quantity for the target subdata not exported is small
In fruiting quantities, then an at least sub- request of data is sent to third party;If requesting received mesh according at least one subdata
Mark subnumber data bulk is matched with the sum of the quantity for the target subdata not exported with fruiting quantities, then according at least one subdata
Received target subnumber data bulk is requested to generate target data with the target subdata not exported.
If the quantity for the target subdata not exported in caching is less than fruiting quantities, need to send subnumber to third party
According to request.At this point it is possible to send a sub- request of data, the subdata request of preset quantity can also be sent.It is new when receiving
The subdata of transmission is requested after corresponding to target subdata, if do not exported in the query result and caching in the target subdata
The quantity summation of query result is more than or equal to fruiting quantities, then the query result that explanation can carry out lower one page is shown.According to knot
Fruit quantity generates number of targets from the query result in the query result not exported in caching and the target subdata newly received
According to.
Correspondingly, step 210, to third party send an at least sub- request of data can be implemented by following manner:
An at least sub- request of data is sent to third party;If requesting received target subnumber data bulk according to subdata and not exporting
The quantity of target subdata and be less than fruiting quantities, then send again a subdata request, according to the subdata sent again
Request receives target subdata;Until according to the target subdata that subdata requests received target subnumber data bulk and does not export
The sum of quantity matched with fruiting quantities.
Whenever receiving the target subdata that third party returns according to subdata request, judges target subdata and delay
Whether the quantity for the query result not exported in depositing is greater than fruiting quantities, if more than fruiting quantities, then generates target data conduct
Pagination Display content.If it is less than fruiting quantities, then the target subdata received is stored to caching, looked into as what is do not exported
A part of result is ask, and sends subdata request to third party again, until the target subdata and caching that newly receive
In the quantity of query result that does not export be more than or equal to fruiting quantities.
The processing method for the request of data that the embodiment of the present disclosure provides can be based on dividing when user sets out page turn over operation
The fruiting quantities of page display control whether to send subdata request to third party, and then significantly more efficient can be provided using system
Source further increases resource utilization ratio.
Fig. 6 is a kind of structural schematic diagram of the processing unit for request of data that the embodiment of the present disclosure provides, and the disclosure is implemented
Example is applicable to the case where requesting by third party's response data, which can be located in electronic equipment, and electronic equipment can be with
For smart phone, tablet computer, wearable device, personal computer or laptop etc., which is specifically included:
Query context determining module 31, for determining data query range according to request of data, request of data is used for from the
Tripartite obtains data;
Subdata requests generation module 32, query context and third party for being determined according to query context determining module 31
Interface range, generate the request of multiple subdatas, the query context of subdata request is matched with third-party interface range;
Target data obtain module 33, for according to subdata request generation module 32 generate multiple subdatas request from
Third party obtains target data;
Output module 34, for exporting the target data obtained.
Further, subdata request generation module 32 is used for:
Query context is split according to third-party interface range, obtains multiple interface polls ranges;
Subdata request is generated according to each interface polls range.
Further, target data obtains module 33 and is used for:
Multiple subdata requests are sent to third party;
Receive the target subdata that third party returns according to the request of each subdata;
Target data is determined according to target subdata.
Further, target data obtains module 33 and is used for:
Whole subdata requests are sent to third party;
Target data is determined according to the target complete subdata of acquisition.
Further, target data obtains module 33 and is used for:
Obtain the fruiting quantities shown in output interface;
When the quantity of the target subdata received is matched with fruiting quantities, determined according to the target subdata received
Target data.
Further, target data obtains module 33 and is used for:
When result interface page turn over operation is triggered on foreground, if the quantity for the target subdata not exported and fruiting quantities
Match, then target data is determined according to the target subdata not exported, the target subdata not exported is the mesh not exported in caching
Mark subdata.
Further, target data obtains module 33 and is used for:
When result interface page turn over operation is triggered on foreground, if the quantity for the target subdata not exported is less than number of results
Amount then sends an at least sub- request of data to third party;
If requesting the number of received target subnumber data bulk with the target subdata not exported according at least one subdata
The sum of amount is matched with fruiting quantities, then according to the mesh that at least one subdata requests received target subnumber data bulk and does not export
It marks subdata and generates target data.
Further, target data obtains module 33 and is used for:
An at least sub- request of data is sent to third party;
If according to subdata request received target subnumber data bulk with it is the quantity for the target subdata not exported and small
In fruiting quantities, then subdata request is sent again, target subdata is received according to the subdata request sent again;
Until according to subdata request received target subnumber data bulk and the quantity of target subdata that does not export and
It is matched with fruiting quantities.
Further, target data obtains module 33 and is used for: caching each subdata and requests corresponding target subdata;
New subdata request is responded according to the target subdata of caching.
Further, query context determining module 31 is used for, and determines name query context according to phonetic fuzzy search request,
Phonetic fuzzy search request is used to carry out the phonetic fuzzy query of name from name server;
Subdata request generation module 32 is used for, according to the query interface range of name query context and name server,
Generate multiple name inquiry son requests;
Target data obtains module 33 and is used for, and inquires son request according to multiple names and obtains name letter from name server
Breath;
Export the target data obtained, comprising:
Export the name information obtained.
The processing unit for the request of data that the embodiment of the present disclosure provides, query context determining module 31 are asked receiving data
When asking, data query range is determined according to request of data, subdata requests generation module 32 according to query context and third-party
Interface range generates multiple subdata requests;Target data obtains module 33 requests to obtain from third party according to multiple subdatas
Target data;The target data that the output of output module 34 obtains.Relative to request of data is directly forwarded to third party, occur anti-
Results abnormity is presented, the embodiment of the present disclosure can be after determining the data query range of request of data, according to third-party interface model
It encloses and request of data is split, obtain multiple subdata requests, each subdata request is matched with third-party interface range,
And then can be avoided because of query context and the inconsistent problem for leading to feedback result exception of interface range, improve data request processing
Efficiency improves resource utilization.
Method provided by the aforementioned all embodiments of the disclosure can be performed in above-mentioned apparatus, and it is corresponding to have the execution above method
Functional module and beneficial effect.The not technical detail of detailed description in the embodiments of the present disclosure, reference can be made to the disclosure is aforementioned all
Method provided by embodiment.
Below with reference to Fig. 7, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure
Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle
Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 7
Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 7, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.)
801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808
Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment
Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804
Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device
809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 7 shows tool
There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808
It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: determining that data query range, request of data are used for from third party according to request of data
Obtain data;According to query context and third-party interface range, multiple subdata requests, the inquiry model of subdata request are generated
It encloses and is matched with third-party interface range;Target data is obtained from third party according to the request of multiple subdatas;Export the mesh obtained
Mark data.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, looking into
Ask range determination module be also described as " data query range is determined according to request of data, the request of data be used for from
The module of third party's acquisition data ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Note that above are only the preferred embodiment and institute's application technology principle of the disclosure.It will be appreciated by those skilled in the art that
The present disclosure is not limited to specific embodiments described here, be able to carry out for a person skilled in the art it is various it is apparent variation,
The protection scope readjusted and substituted without departing from the disclosure.Therefore, although being carried out by above embodiments to the disclosure
It is described in further detail, but the disclosure is not limited only to above embodiments, in the case where not departing from disclosure design, also
It may include more other equivalent embodiments, and the scope of the present disclosure is determined by the scope of the appended claims.
Claims (13)
1. a kind of processing method of request of data characterized by comprising
Determine that data query range, the request of data are used to obtain data from third party according to request of data;
According to the query context and third-party interface range, multiple subdata requests are generated, the subdata request is looked into
Range is ask to match with the third-party interface range;
Target data is obtained from the third party according to the request of the multiple subdata;
Export the target data obtained.
2. the processing method of request of data according to claim 1, which is characterized in that it is described according to the query context and
Third-party interface range generates multiple subdata requests, comprising:
The query context is split according to third-party interface range, obtains multiple interface polls ranges;
Subdata request is generated according to each interface polls range.
3. the processing method of request of data according to claim 1, which is characterized in that described according to the multiple subdata
Request obtains target data from the third party, comprising:
Multiple subdata requests are sent to the third party;
Receive the target subdata that third party returns according to the request of each subdata;
Target data is determined according to target subdata.
4. the processing method of request of data according to claim 3, which is characterized in that described more to third party transmission
A sub- request of data, comprising:
Whole subdata requests are sent to the third party;
Correspondingly, described determine target data according to target subdata, comprising:
Target data is determined according to the target complete subdata of acquisition.
5. the processing method of request of data according to claim 3, which is characterized in that determine target according to target subdata
Data, comprising:
Obtain the fruiting quantities shown in output interface;
When the quantity of the target subdata received is matched with the fruiting quantities, according to the target subdata received
Determine target data.
6. the processing method of request of data according to claim 5, which is characterized in that output obtain target data it
Afterwards, further includes:
When result interface page turn over operation is triggered on foreground, if the quantity for the target subdata not exported and the fruiting quantities
Match, then target data determined according to the target subdata not exported, the target subdata not exported be in caching not
The target subdata of output.
7. the processing method of request of data according to claim 5, which is characterized in that output obtain target data it
Afterwards, further includes:
When result interface page turn over operation is triggered on foreground, if the quantity for the target subdata not exported is less than the number of results
Amount then sends an at least sub- request of data to the third party;
If requesting the number of received target subnumber data bulk with the target subdata not exported according at least one described subdata
The sum of amount is matched with the fruiting quantities, then according to the received target subnumber data bulk of at least one subdata request and not
The target subdata of output generates target data.
8. the processing method of request of data according to claim 7, which is characterized in that described to be sent to the third party
A few sub- request of data includes: Xiang Suoshu third party sends an at least sub- request of data;
If according to the subdata request received target subnumber data bulk with it is the quantity for the target subdata not exported and small
In the fruiting quantities, then subdata request is sent again, target subdata is received according to the subdata request sent again;
Until requesting sum and the institute of received target subnumber data bulk and the quantity for the target subdata not exported according to subdata
State fruiting quantities matching.
9. the processing method of request of data according to claim 3, which is characterized in that receiving third party according to every height
After the target subdata that request of data returns, further includes:
It caches each subdata and requests corresponding target subdata;
New subdata request is responded according to the target subdata of caching.
10. the processing method of request of data according to claim 1, which is characterized in that described to be determined according to request of data
Data query range, the request of data are used to obtain data from third party, comprising:
Determine that name query context, the phonetic fuzzy search request are used for from name server according to phonetic fuzzy search request
Carry out the phonetic fuzzy query of name;
It is described according to the query context and third-party interface range, generate multiple subdatas requests, comprising:
According to the query interface range of the name query context and name server, multiple name inquiry son requests are generated;
It is described that target data is obtained from the third party according to the request of the multiple subdata, comprising:
Son request, which is inquired, according to the multiple name obtains name information from the name server;
The target data that the output obtains, comprising:
Export the name information obtained.
11. a kind of processing unit of request of data characterized by comprising
Query context determining module, for determining that data query range, the request of data are used for from third according to request of data
Side obtains data;
Subdata requests generation module, the query context and third party for being determined according to the query context determining module
Interface range, generate the request of multiple subdatas, the query context and the third-party interface range of the subdata request
Matching;
Target data obtain module, for according to the subdata request generation module generate the multiple subdata request from
The third party obtains target data;
Output module, for exporting the target data obtained.
12. a kind of electronic equipment, including storage device, processing unit and storage are on the storage means and can be in processing unit
The computer program of operation, which is characterized in that the processing unit is realized when executing described program as appointed in claim 1-10
The processing method of request of data described in one.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The processing method of the request of data as described in any in claim 1-10 is realized when execution.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910656324.3A CN110377654B (en) | 2019-07-19 | 2019-07-19 | Data request processing method and device, electronic equipment and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910656324.3A CN110377654B (en) | 2019-07-19 | 2019-07-19 | Data request processing method and device, electronic equipment and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110377654A true CN110377654A (en) | 2019-10-25 |
| CN110377654B CN110377654B (en) | 2022-05-17 |
Family
ID=68254364
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910656324.3A Active CN110377654B (en) | 2019-07-19 | 2019-07-19 | Data request processing method and device, electronic equipment and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110377654B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021088772A1 (en) * | 2019-11-05 | 2021-05-14 | 北京字节跳动网络技术有限公司 | Method and apparatus for sending information in live broadcast room, and electronic device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1866918A (en) * | 2005-11-28 | 2006-11-22 | 华为技术有限公司 | Management and maintenance method for static multi-interface range matching table |
| CN106293948A (en) * | 2016-08-17 | 2017-01-04 | 金蝶软件(中国)有限公司 | Data syn-chronization, acquisition methods and device |
| CN106599310A (en) * | 2016-12-29 | 2017-04-26 | 中国建设银行股份有限公司 | Parallel query method and apparatus based on multi-data-source scene |
| US10095710B1 (en) * | 2014-12-19 | 2018-10-09 | EMC IP Holding Company LLC | Presenting cloud based storage as a virtual synthetic |
| CN109299148A (en) * | 2018-09-29 | 2019-02-01 | 网宿科技股份有限公司 | Data query method and server |
-
2019
- 2019-07-19 CN CN201910656324.3A patent/CN110377654B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1866918A (en) * | 2005-11-28 | 2006-11-22 | 华为技术有限公司 | Management and maintenance method for static multi-interface range matching table |
| US10095710B1 (en) * | 2014-12-19 | 2018-10-09 | EMC IP Holding Company LLC | Presenting cloud based storage as a virtual synthetic |
| CN106293948A (en) * | 2016-08-17 | 2017-01-04 | 金蝶软件(中国)有限公司 | Data syn-chronization, acquisition methods and device |
| CN106599310A (en) * | 2016-12-29 | 2017-04-26 | 中国建设银行股份有限公司 | Parallel query method and apparatus based on multi-data-source scene |
| CN109299148A (en) * | 2018-09-29 | 2019-02-01 | 网宿科技股份有限公司 | Data query method and server |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021088772A1 (en) * | 2019-11-05 | 2021-05-14 | 北京字节跳动网络技术有限公司 | Method and apparatus for sending information in live broadcast room, and electronic device |
| US12010356B2 (en) | 2019-11-05 | 2024-06-11 | Beijing Bytedance Network Technology Co., Ltd. | Method and apparatus for sending information in live broadcast room, and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110377654B (en) | 2022-05-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110046021A (en) | A kind of page display method, device, system, equipment and storage medium | |
| CN109375918A (en) | Interface rendering method, device, electronic device and storage medium of applet | |
| CN109871388A (en) | Data cache method, device, whole electronic equipment and storage medium | |
| US20130110992A1 (en) | Electronic device management using interdomain profile-based inferences | |
| CN109656923A (en) | A kind of data processing method, device, electronic equipment and storage medium | |
| CN109697100A (en) | Conversation message display processing method and device | |
| CN108965389A (en) | Method for showing information | |
| CN107808283A (en) | Order processing method, apparatus and system | |
| CN109769141A (en) | A kind of video generation method, device, electronic equipment and storage medium | |
| CN109447635A (en) | Information storage means and device for block chain | |
| CN108494860A (en) | WEB accesses system, WEB access methods and device for client | |
| CN109885593A (en) | Method and apparatus for handling information | |
| CN110334246A (en) | A kind of data request processing method, apparatus, terminal device and storage medium | |
| CN112184095A (en) | Method and device for sending mail | |
| CN114116247A (en) | Redis-based message processing method, device, system, server and medium | |
| CN114817409A (en) | Label generation method, device, equipment and medium | |
| EP4246298B1 (en) | Information exchange method and apparatus and device | |
| CN110286928A (en) | Interface element update method, device, electronic equipment and the storage medium of application program | |
| CN109697034A (en) | A kind of method for writing data, device, electronic equipment and storage medium | |
| CN118295827A (en) | Model calling method, device, medium, equipment and computer program product | |
| CN109299354A (en) | Online document search method and device | |
| CN108959642A (en) | Method and apparatus for information to be written | |
| CN109684116B (en) | Data sharing method, device, equipment and medium | |
| CN111641690A (en) | Session message processing method and device and electronic equipment | |
| CN110377654A (en) | Processing method, device, electronic equipment and the computer readable storage medium of request of data |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |