A kind of information query method, device, equipment and medium
Technical field
This application involves field of computer technology more particularly to a kind of information query method, device, equipment and media.
Background technique
In the prior art, when carrying out information inquiry, the information for needing to inquire can have multiple information source sides, and need
Information inquiry is carried out to each information source side.In this case, the prior art is difficult to accurately determine the information for needing to inquire
Source side, and what is taken is successively to carry out information inquiry to each information source side, i.e., a upward information source side has been inquired
After information, an information source side query information, takes a long time so that information is inquired still further below, and search efficiency is lower, and easily
Because time-out causes information, inquiry is abnormal.
In view of this, needing more effective and more efficient information query scheme.
Summary of the invention
This specification embodiment provides a kind of information query method, device, equipment and medium, how more effective to solve
The technical issues of more efficiently carrying out information inquiry.
In order to solve the above technical problems, this specification embodiment is achieved in that
This specification embodiment provides a kind of information query method, comprising:
Information inquiring request is received, multiple information source sides are determined according to the information inquiring request;
To each information source side transmitted in parallel information query task, the feedback that each information source side returns is received
Data;
Information query result is determined according to the feedback data of each information source side received in the predetermined time.
This specification embodiment provides a kind of information query device, comprising:
Source determination module, for receiving information inquiring request, according to the information inquiring request determine multiple information come
Source side;
Data obtaining module, for receiving each letter to each information source side transmitted in parallel information query task
Cease the feedback data that source side returns;
As a result determining module, for being determined according to the feedback data of each information source side received in the predetermined time
Information query result.
This specification embodiment provides a kind of information query facility, comprising:
At least one processor;
And
The memory being connect at least one described processor communication;
Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes so that at least one described processor can:
Information inquiring request is received, multiple information source sides are determined according to the information inquiring request;
To each information source side transmitted in parallel information query task, the feedback that each information source side returns is received
Data;
Information query result is determined according to the feedback data of each information source side received in the predetermined time.
This specification embodiment provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer executable instructions, the computer executable instructions realize following step when being executed by processor:
Information inquiring request is received, multiple information source sides are determined according to the information inquiring request;
To each information source side transmitted in parallel information query task, the feedback that each information source side returns is received
Data;
Information query result is determined according to the feedback data of each information source side received in the predetermined time.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
Multiple information source sides are determined by information inquiring request, and the selection of information source side can be made more accurate and high
Efficiency;To each information source side transmitted in parallel information query task, the parallel processing of multiple information query tasks is realized, it is each
Processing between information query task can be isolation, so as to effectively improve search efficiency;It is inscribed according to the predetermined time
The feedback data of each information source side received determines information query result, can be improved information query result accuracy and
Determine efficiency.
Detailed description of the invention
It, below will be to this specification in order to illustrate more clearly of this specification embodiment or technical solution in the prior art
Drawings that need to be used in the embodiment or the prior art description is briefly described, it should be apparent that, be described below in it is attached
Figure is only that some embodiments recorded in this specification are not paying creativeness for those of ordinary skill in the art
Under the premise of laborious, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the information query method in this specification one embodiment.
Fig. 2 is the information query process schematic diagram in this specification one embodiment.
Fig. 3 is the application schematic diagram of the information query method in this specification one embodiment.
Fig. 4 is the structural schematic diagram of the information query device in second embodiment of this specification.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
In the prior art, when needing to carry out information inquiry, it is difficult to accurately determine information source side, and need to potential
Information source side inquired that and after actual information source side has been determined, what is taken is come to each information one by one
Source side successively carries out information inquiry, i.e., after information has been inquired by a upward information source side, an information source side is looked into still further below
Information is ask, so that information inquiry takes a long time, search efficiency is lower, and easily inquiry is abnormal because time-out causes information.
Fig. 1 is the flow diagram of the information query method in this specification one embodiment, and Fig. 2 is this specification
Information query process schematic diagram in one embodiment, one embodiment of this specification provides one combined with Figure 1 and Figure 2,
Kind information query method, comprising:
S101: information inquiring request is received, multiple information source sides are determined according to the information inquiring request.
The executing subject of the present embodiment can be computer or server or corresponding information query system, that is, execute
Main body is diversified, can be configured or convert according to the actual situation;Alternatively, it is also possible to there is third party application association
The executing subject is helped to execute the present embodiment;Such as shown in Fig. 3, the information inquiry in the present embodiment can be executed by server
Method, and corresponding application program can also be installed in (user is held) terminal, server is corresponding with application program,
Can carry out data transmission between the terminal that server and user are held, by application program come to user carry out the page and
Information is shown or input and output.
In the present embodiment, information inquiring request can receive.Specifically, user can pass through the application in terminal or terminal
The respective page of program starts to query to click corresponding button or the corresponding query text of input or searching keyword, terminal
Or the application program in terminal generates information inquiring request, information according to the button or query text or searching keyword being clicked
Inquiry request can carry the query text or searching keyword;Correspondingly, server can receive in terminal or terminal
The information inquiring request that sends of application program.
In the present embodiment, (server) can determine multiple information source sides (i.e. by certainly according to information inquiring request
Plan determines information source side, hereafter it can be seen that being parallel decision here).Specifically, determining information according to information inquiring request
The mode of source side includes but is not limited to following 1.1 or 1.2:
1.1, information source side is determined according to information type to be checked
Specifically, (server) can determine information type to be checked, such as assets according to information inquiring request, then may be used
To determine multiple information source sides, including but not limited to (user's registration is crossed) bank or Third-party payment machine according to information type
Gou Deng financial institution.Specifically there is which information type to can according to need setting or transformation, information type and letter can be set
The mapping relations of source side are ceased, and then corresponding information source side is determined according to information type.Furthermore it is possible in terminal or terminal
On application program respective page on enumerate can be with Referral information type, info class to be checked for selection by the user
Type;Or the query text or searching keyword that can be inputted according to user determine information type to be checked.
1.2, information source side is determined according to crucial text
It can determine that information inquires crucial text according to information inquiring request, such as true according to the query text that user inputs
Determine information and inquire crucial text, for example it is " bill " that determining information, which inquires crucial text, then can be inquired according to information crucial
Text determines multiple information source sides, the including but not limited to financial machine such as (user's registration is crossed) bank or Third-party payment mechanism
Structure.The mapping relations that information inquires crucial text and information source side can be set, and then true according to the crucial text of information inquiry
Fixed corresponding information source side.
Information source side in the present embodiment, which can according to need, to be finely divided, for example, information source side can be it is above-mentioned
The financial institutions such as bank or Third-party payment mechanism, financing account, the fixed deposit account etc. being also possible in financial institution.
S102: it to each information source side transmitted in parallel information query task, receives each information source side and returns
Feedback data.
After information source side has been determined, so that it may to each information source side transmitted in parallel information query task, i.e., to
Each information source side sends information query task respectively, sends information query task not " to be to some information source side
It is no to have sent information query task to another or another multiple information source sides " premised on.Parallel to each information source side
When sending information query task, the time difference for sending information query task to any two information source sides is less than or equal to predetermined value;
It is not necessarily while to each information source side transmitted in parallel information query task, sends information to any two information source sides
The time difference of query task can be less than or equal to predetermined value, and predetermined value here can according to need setting or change.Certainly,
Can also information query task be sent to each information source side simultaneously.
For the information source side of any determination, information query task can be distributed to the thread pool of the information source side
In, handled that (information source root is it is believed that breath query task capture is corresponding to information query task by the information source side
Information).Each information source side can be isolation to the processing of information query task between each other, if there is information source side to exist
There is exception when handling its received information query task of institute, has no effect on other information source side to the information being respectively received
The processing of query task.
It in the present embodiment, can be in pre- timing to after each information source side transmitted in parallel information query task
The interior each information source side of poll, i.e. the information query processing of each information source side of poll are as a result, and receive each information
The feedback data that source side returns.Since " predetermined time " here can calculate receiving information inquiring request;Or it can
Which start to calculate (no matter being to earliest after receiving information inquiring request, to send the time of information query task earliest
Information source side sends information query task);Or after receiving information inquiring request, if simultaneously to each information source side
Transmitted in parallel information query task can then be calculated since the sending time of information query task.
To any information source side, determined whether to stop or terminate the poll letter according to the feedback data of the information source side
Cease source side.Wherein, to any information source side, the feedback data of the information source side include but be not limited to following 2.1 to
2.3:
2.1, information query task processing is completed
For any information source side, if receiving the information query task of information source side feedback in certain poll
The data obtained after the completion of processing, then next time is no longer polled the information source side;If receiving this before certain poll
Obtained data after the completion of the information query task processing of information source side feedback, then this time and later no longer to the information source
Side is polled.
2.2, in the processing of information query task
For any information source side, if returned when being inquired to it be information query task still in processes, next time
The information source side still falls within polling object when poll.
2.3, information query task processing mistake or abnormal
For any information source side, if receiving the information query task of information source side feedback in certain poll
Processing mistake or abnormal data, then next time is no longer polled the information source side;If receiving this before certain poll
The information query task processing mistake of information source side feedback or abnormal data, then this time and later no longer to the information source
Side is polled;Alternatively, can determine mistake or Exception Type according to the processing mistake of return or abnormal data, then determine
Whether the information source side is polled again.It, can be with for information query task processing mistake or abnormal information source side
Using fusing emergency processing.
S103: information inquiry knot is determined according to the feedback data of each information source side received in the predetermined time
Fruit.
After reaching the above-mentioned predetermined time, so that it may according to the anti-of each information source side received in the predetermined time
Feedback data determine information query result.Wherein, according to the feedback data of each information source side received in the predetermined time
Determine information query result includes but is not limited to following 3.1 or 3.2:
3.1, effective Feedback data are determined according to the feedback data of each information source side received in the predetermined time,
Information query result is determined according to the effective Feedback data;
It has been observed that after reaching the predetermined time, it is understood that there may be the information having comes that source information query task is untreated to be finished
Or processing mistake or abnormal, then for the feedback data of each information source side received in the given time, so that it may
With determination effective Feedback data therein;Wherein, the information source side being disposed for information query task in the predetermined time,
The feedback data that can be returned it into is as effective Feedback data;It is for information query task in the predetermined time untreated to finish
Information source side, can be using the feedback data that it has been returned as effective Feedback data;Mistake is handled for information query task
Or abnormal information source side, the feedback data of its return can be ignored, corresponding official documents and correspondence can also be fed back (to user terminal)
To remind user to there is information to come source information query task processing mistake or exception.Specific effective Feedback data are using which kind of determination
Standard or rule, can determine according to actual needs or transformation.
3.2, effective Feedback data are determined according to the feedback data of each information source side received in the predetermined time
The effective Feedback data assembling is information query result by (referring to 3.1).
In the present embodiment, after (server) has determined information query result, it can send and believe to information inquiring request side
Cease query result, wherein information inquiring request side can be the sender of information inquiring request, specifically, can be terminal or
Application program in person's terminal.
The present embodiment determines multiple information source sides by information inquiring request, can make the selection of information source side more
Accurate and high efficiency;To each information source side transmitted in parallel information query task, the parallel processing of information inquiring request is realized,
And the parallel processing of multiple information query tasks, the processing between each information query task can be isolation, even if certain
One or more information source side task processing failures or exception nor affect on the task processing of other information source side, thus
Search efficiency and effect can be effectively improved;It is determined according to the feedback data of each information source side received in the predetermined time
Information query result can be improved the accuracy of information query result and determine efficiency.
As shown in figure 4, second embodiment of this specification provides a kind of information query device, comprising:
Source determination module 201, for receiving information inquiring request, determine multiple information according to the information inquiring request
Source side;
Data obtaining module 202, for receiving each to each information source side transmitted in parallel information query task
The feedback data that information source side returns;
As a result determining module 203, for the feedback data according to each information source side received in the predetermined time
Determine information query result.
Optionally, determine that multiple information source sides include: according to the information inquiring request
Information type to be checked is determined according to the information inquiring request, and multiple information are determined according to the information type
Source side;
And/or
It determines that information inquires crucial text according to the information inquiring request, crucial text is inquired according to the information and is determined
Multiple information source sides.
Optionally, the data obtaining module 202 sends the time difference of information query task to any two information source sides
Less than or equal to predetermined value.
Optionally, the data obtaining module 202 is also used to:
To after each information source side transmitted in parallel information query task, each institute of poll within the predetermined time
State information source side;
To any information source side, determined whether to stop or terminate poll according to the feedback data of the information source side
The information source side.
Optionally, information inquiry knot is determined according to the feedback data of each information source side received in the predetermined time
Fruit includes:
Effective Feedback data are determined according to the feedback data of each information source side received in the predetermined time, according to
The effective Feedback data determine information query result;
Or,
Effective Feedback data are determined according to the feedback data of each information source side received in the predetermined time, by institute
Stating effective Feedback data assembling is information query result.
Optionally, described device further include:
Sending module, for sending the information query result to information inquiring request side.
This specification third embodiment provides a kind of information query facility, comprising:
At least one processor;
And
The memory being connect at least one described processor communication;
Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes so that at least one described processor can:
Information inquiring request is received, multiple information source sides are determined according to the information inquiring request;
To each information source side transmitted in parallel information query task, the feedback that each information source side returns is received
Data;
Information query result is determined according to the feedback data of each information source side received in the predetermined time.
The 4th embodiment of this specification provides a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer executable instructions, and the computer executable instructions realize following step when being executed by processor:
Information inquiring request is received, multiple information source sides are determined according to the information inquiring request;
To each information source side transmitted in parallel information query task, the feedback that each information source side returns is received
Data;
Information query result is determined according to the feedback data of each information source side received in the predetermined time.
The various embodiments described above can be used in combination.
Above-mentioned that this specification specific embodiment is described, other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, the process described in attached drawing not necessarily must be specific according to what is shown
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also
Can with or may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For equipment, non-volatile computer readable storage medium storing program for executing embodiment, since it is substantially similar to the method embodiment, so description
It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Device that this specification embodiment provides, equipment, non-volatile computer readable storage medium storing program for executing with method are corresponding
, therefore, device, equipment, nonvolatile computer storage media also have the advantageous effects similar with corresponding method, by
The advantageous effects of method are described in detail in above, therefore, which is not described herein again corresponding intrument, equipment,
The advantageous effects of nonvolatile computer storage media.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Descr IP address tion Language, HDL), and HDL is also not only a kind of, but there are many kinds, such as
ABEL (Advanced Boolean Expression Language), (address Altera Hardware DescrIP AHDL
tion Language)、Confluence、CUPL(Cornell University Programming Language)、
HDCal, JHDL (Java Hardware DescrIP address tion Language), Lava, Lola, MyHDL, PALASM,
RHDL (Ruby Hardware DescrIP address tion Language) etc., most generally uses VHDL (Very- at present
High-Speed Integrated Circuit Hardware DescrIP address tion Language) and Verilog.This
Field technical staff, which also will be apparent to the skilled artisan that, only to need with above-mentioned several hardware description languages slightly programming in logic and to compile method flow
Journey is into integrated circuit, so that it may be readily available the hardware circuit for realizing the logical method process.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, the address MicrochIP PIC18F26K20 and Silicone Labs
C8051F320, Memory Controller are also implemented as a part of the control logic of memory.Those skilled in the art
Know, it, completely can be by the way that method and step be carried out other than realizing controller in a manner of pure computer readable program code
Programming in logic comes so that controller is with logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller
Deng form realize identical function.Therefore this controller is considered a kind of hardware component, and includes in it
The structure in hardware component can also be considered as realizing the device of various functions.It or even, can will be for realizing various
The device of function is considered as either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification.
It should be understood by those skilled in the art that, this specification embodiment can provide as method, system or computer program
Product.Therefore, this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware
The form of the embodiment of aspect.Moreover, it wherein includes that computer is available that this specification embodiment, which can be used in one or more,
It is real in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form for the computer program product applied.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects,
Component, data structure etc..This specification can also be practiced in a distributed computing environment, in these distributed computing environment
In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module
It can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely this specification embodiments, are not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.