CN107967135A - Computing engines implementation method, electronic device and storage medium - Google Patents

Computing engines implementation method, electronic device and storage medium Download PDF

Info

Publication number
CN107967135A
CN107967135A CN201711047210.6A CN201711047210A CN107967135A CN 107967135 A CN107967135 A CN 107967135A CN 201711047210 A CN201711047210 A CN 201711047210A CN 107967135 A CN107967135 A CN 107967135A
Authority
CN
China
Prior art keywords
operator
computing engines
storehouses
program
target
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
Application number
CN201711047210.6A
Other languages
Chinese (zh)
Other versions
CN107967135B (en
Inventor
韦邕
常河
徐亮
肖京
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711047210.6A priority Critical patent/CN107967135B/en
Publication of CN107967135A publication Critical patent/CN107967135A/en
Priority to PCT/CN2018/089884 priority patent/WO2019085474A1/en
Application granted granted Critical
Publication of CN107967135B publication Critical patent/CN107967135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/34Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of computing engines implementation method, this method comprises the following steps:Determine step:Determine each operator of composition target algorithm chain;Judgment step:Each operator of the composition target algorithm chain whether is included in determining program configuration file, if judging result is no, configuration step is performed, if the determination result is YES, then performs generation step;Configuration step:The target operator inputted according to predetermined format is received, and then the target operator received configuration is performed into the generation step in program configuration file;Generation step:According to the operator combination rule of identified each operator, and set target algorithm chain, corresponding algorithm number is generated;Storing step:The algorithm number is stored in database.The present invention also provides a kind of electronic device and a kind of computer-readable recording medium.Can be that computing engines realize what's new using the present invention.

Description

Computing engines implementation method, electronic device and storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of computing engines implementation method, electronic device and storage Medium.
Background technology
With the development of information technology, more and more computing engines come into being, to meet that user is increasingly extensive and more The demand of change.Existing computing engines can be used for realizing multiple functions, such as keyword search function, the knowledge of mass data Encyclopaedia function, information prediction function etc..In contrast the computing function of usual single kind of computing engines is also relatively simple.
However, in the existing computing engines development process of industry, the consideration to the universality and autgmentability of computing engines is not Foot, meet demand is unable in the computing function that computing engines are supported, it is necessary to carry out big in the case of need to developing new computing function The code development of amount and reconstruct work, greatly expend code development cost, and reduce the work efficiency of research staff.
The content of the invention
For these reasons, it is necessary to a kind of computing engines implementation method, electronic device and storage medium are provided, can be made The development process of computing engines is more flexible, has extensive universality and good scalability, and extra system is not required Code and database development.
To achieve the above object, the present invention provides a kind of computing engines implementation method, and this method includes:Determine step:Really Surely each operator of target algorithm chain is formed;Generation step:According to identified each operator, and set target algorithm The operator combination rule of chain, generates corresponding algorithm number;Storing step:The algorithm number is stored in database.
Preferably, further included before the generation step:Judgment step:Whether comprising described in determining program configuration file Form each operator of target algorithm chain, if the determination result is YES, then the execution generation step.
Preferably, this method further includes:If the result of the judgment step is no, configuration step is performed;Configuration step: The target operator inputted according to predetermined format is received, and by the target operator received configuration in program configuration file, then Perform the generation step.
Alternatively, the target operator is the calculation for the composition target algorithm chain being not included in program configuration file Son.
Preferably, the database includes local memory caching, Redis storehouses or Postgre SQL storehouses.
Alternatively, the access mode of the database is one of in the following manner:Fetch from local memory caching;Only from Redis fetches in storehouse;First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get rear synchronous write Go back to Redis storehouses;First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get rear asynchronous write back Redis storehouses;Only fetch from Postgre SQL storehouses.
To achieve the above object, the present invention also provides a kind of electronic device, the electronic device to include memory and processor, The memory includes computing engines and realizes program, which realizes that realization is as follows when program is performed by the processor Step:
Determine step:Determine each operator of composition target algorithm chain;Generation step:According to identified each operator, And the operator combination rule of set target algorithm chain, generate corresponding algorithm number;Storing step:The algorithm number is deposited Enter database.
Preferably, further included before the generation step:Judgment step:Whether comprising described in determining program configuration file Form each operator of target algorithm chain, if the determination result is YES, then the execution generation step.
Preferably, this method further includes:If the result of the judgment step is no, configuration step is performed;Configuration step: The target operator inputted according to predetermined format is received, and by the target operator received configuration in program configuration file, then Perform the generation step.
Alternatively, the target operator is the calculation for the composition target algorithm chain being not included in program configuration file Son.
Preferably, the database includes local memory caching, Redis storehouses or Postgre SQL storehouses.
Alternatively, the access mode of the database is one of in the following manner:Fetch from local memory caching;Only from Redis fetches in storehouse;First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get rear synchronous write Go back to Redis storehouses;First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get rear asynchronous write back Redis storehouses;Only fetch from Postgre SQL storehouses.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer-readable recording medium Storage medium includes computing engines and realizes program, when which realizes that program is executed by processor, realizes as described above Computing engines implementation method arbitrary steps.
Computing engines implementation method, electronic device and computer-readable recording medium proposed by the present invention, are developing and are tieing up Using algorithm chain and operator as realizing frame when protecting computing engines, the corresponding algorithm chain spirit in the form of operator of each computing function It is living to realize, connected in a manner of loose coupling between operator, only the delivery format operator and content are provided, without interfering The concrete methods of realizing of each operator.The computing function in newly-increased computing engines is realized using this method, can make computing engines Development process it is more flexible, it is only necessary to good algorithm chain is configured according to existing operator, or develops new calculation when necessary Son, you can realize the new function of computing engines, there is extensive universality and good scalability, and need not be additionally System code and database development.
Brief description of the drawings
Fig. 1 is the running environment schematic diagram of computing engines preferred embodiment.
Fig. 2 is the running environment schematic diagram of electronic device preferred embodiment provided by the invention.
Fig. 3 is the Program modual graph that engine implementation program is calculated in Fig. 2.
Fig. 4 is the flow chart of computing engines implementation method preferred embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
The principle of the present invention and spirit are described below with reference to some specific embodiments.It is it should be appreciated that described herein Specific embodiment only to explain the present invention, be not intended to limit the present invention.
It will be apparent to one skilled in the art that embodiments of the present invention can be implemented as a kind of method, apparatus, equipment, be System or computer program product.Therefore, the present invention can be implemented as complete hardware, complete software (including firmware, is stayed Stay software, microcode etc.), or the form that hardware and software combines.
According to an embodiment of the invention, it is proposed that a kind of computing engines implementation method, electronic device and storage medium.
As shown in fig.1, the running environment schematic diagram for the computing engines preferred embodiment.
In the present embodiment, the computing engines are set up in server 100, provide the clothes of various computing functions to the user Business, such as the inquiry of disease forecasting, similar case, conjunctive word inquiry etc..Various computing functions described in computing engines respectively by Corresponding algorithm chain is realized.The use that user sends a certain computing function by client 200 to server 100 is asked, meter Engine is calculated after the use request is received, obtains corresponding algorithm chain, and performs the corresponding program of the algorithm chain, so that Realize the computing function, result of calculation is obtained from database 300, and result of calculation is back to client 200.The number It can for example include local memory caching, Redis databases, or PostgreSQL (PG) database according to storehouse 300.In addition, service Device 100 can also be communicated with electronic device 1 and connected, and the electronic device 1 can also access database 300.The computing engines Developer can develop computing engines by electronic device 1, and the computing engines developed are erected at server Performed in 100.
It is the structure diagram of electronic device preferred embodiment of the present invention with reference to shown in Fig. 2.
The electronic device 1 can be the terminal that portable computer, desktop PC etc. have storage and calculation function Equipment.
The electronic device 1 includes memory 11, processor 12, network interface 13 and communication bus 14.The network interface 13 can alternatively include the wireline interface and wave point (such as WI-FI interfaces) of standard.Communication bus 14 is used for realization above-mentioned Connection communication between component.
Memory 11 includes the readable storage medium storing program for executing of at least one type.The readable storage medium storing program for executing of at least one type Can be such as flash memory, hard disk, multimedia card, the non-volatile memory medium of card-type memory.In certain embodiments, it is described can Read the internal storage unit that storage medium can be the electronic device 1, such as the hard disk of the electronic device 1.In other realities Apply in example, the readable storage medium storing program for executing can also be the external memory storage 11 of the electronic device 1, such as the electronic device 1 The plug-in type hard disk of upper outfit, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card) etc..
In the present embodiment, the readable storage medium storing program for executing of the memory 11 is installed on the electronic device commonly used in storage 1 computing engines realize program 10 and program configuration file, database 300 etc..The memory 11 can be also used for temporarily Store the data that has exported or will export.
Processor 12 can be in certain embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for the program code or processing data stored in run memory 11, example Such as perform computing engines and realize program 10.
Fig. 2 illustrate only the electronic device 1 that program 10 is realized with component 11-14 and computing engines, it should be understood that Be, it is not required that implement all components shown, the more or less component of the implementation that can be substituted.
Alternatively, which can also include user interface, and user interface can include input unit such as keyboard (Keyboard), the equipment with speech identifying function such as speech input device such as microphone (microphone), voice are defeated Go out device such as sound equipment, earphone etc..Alternatively, user interface can also include standard wireline interface and wireless interface.
Alternatively, which can also include display, and display is referred to as display screen or display unit. Can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and Organic Light Emitting Diode in certain embodiments (Organic Light-Emitting Diode, OLED) display etc..Display is used to show what is handled in the electronic apparatus 1 Information and for showing visual user interface.
Alternatively, which further includes touch sensor.What the touch sensor was provided is touched for user The region for touching operation is known as touch area.In addition, touch sensor described here can be resistive touch sensor, capacitance Formula touch sensor etc..Moreover, the touch sensor not only includes the touch sensor of contact, proximity may also comprise Touch sensor etc..In addition, the touch sensor can be single sensor, or such as multiple biographies of array arrangement Sensor.User can realize program 10 by touching the touch area startup computing engines.
In addition, the area of the display of the electronic device 1 can be identical with the area of the touch sensor, can not also Together.Alternatively, display and touch sensor stacking are set, to form touch display screen.The device is based on touching aobvious The touch control operation of display screen detecting user's triggering.
The electronic device 1 can also include radio frequency (Radio Frequency, RF) circuit, sensor and voicefrequency circuit etc. Deng details are not described herein.
The computing engines realize program 10 towards be the computing engines developer.Specifically, the meter Calculation engine implementation program 10 can be embedded in the computing engines or a set of application journey independently of computing engines Sequence, and computing engines are handled by default interface.The computing engines realize that program 10 can use JAVA language real It is existing, and can be using Spring MVC frames come management code.If developer needs to develop new meter for the computing engines Function is calculated, then calls the computing engines to realize program 10 to realize.
In the running environment schematic diagram of 1 preferred embodiment of electronic device shown in Fig. 2, depositing comprising readable storage medium storing program for executing It can include operating system in reservoir 11, computing engines realize program 10, program configuration file, database.Processor 12 is held The computing engines stored in line storage 11 realize following steps when realizing program 10:
Determine step:Determine each operator of composition target algorithm chain;
Generation step:It is raw according to the operator combination rule of identified each operator, and set target algorithm chain Into corresponding algorithm number;
Storing step:The algorithm number is stored in database.
Alternatively, judgment step is further included before the generation step:Whether comprising described in determining program configuration file Each operator of target algorithm chain is formed, if the determination result is YES, then performs the generation step.
Alternatively, configuration step is further included after the judgment step, if the judging result of the judgment step is no, Perform the configuration step.
The configuration step:The target operator inputted according to predetermined format is received, and the target operator received is configured In program configuration file, the generation step is then performed.
Concrete principle refer to following Fig. 3 on computing engines realize program 10 Program modual graph and Fig. 4 on calculate The introduction of the flow chart of engine implementing method preferred embodiment.
It is the Program modual graph that engine implementation program 10 is calculated in Fig. 2 with reference to shown in Fig. 3.In the present embodiment, calculating is drawn To hold up and realize that program 10 is divided into multiple modules, the plurality of module is stored in memory 11, and is performed by processor 12, with Complete the present invention.Module alleged by the present invention is the series of computation machine programmed instruction section for referring to complete specific function.
The computing engines realize that program 10 can be divided into:Determining module 110, generation module 140 and memory module 150.Optionally, the computing engines realize that program 10 can also include judgment module 120 and configuration module 130.
Determining module 110, for determining each operator of composition target algorithm chain.
In the present embodiment, the various computing functions in the computing engines by each bar algorithm chain (also referred to as workflow) come Realize, and each algorithm chain is then composed of several operators (also referred to as plug-in unit), wherein each operator corresponds to one respectively A specific calculating demand.Such as it is to obtain input data from the page and deposit to define the corresponding calculating demands of operator CommonHead Enter system common data structure MyTupleList, and it is keyword abstraction to define the corresponding calculating demands of operator Hanlp.Assuming that One algorithm chain for realizing participle function, which has, " to be obtained input data from the page and is stored in system common data structure The calculating demand of MyTupleList " and the calculating demand of " keyword abstraction ", then the algorithm chain of realization participle function can be by CommonHead operators and Hanlp the operators composition., can be by corresponding for the operator combination rule of each algorithm chain Algorithm number indicates.
The form of one algorithm chain can be as follows:
Service numbers # advertisement positions # strategies number;
Operator 1 is referred to as:1 # table number # version numbers # weight of operator;
Operator 2 is referred to as:2 # table number # version numbers # weights of operator.
Citing:Realize that the algorithm chain of participle function is as follows:
10001#024#8024;
Com:CommonHeadV2#-1#-1#1。
Wherein, above-mentioned " service numbers # advertisement positions # strategies number " and " 10001#024#8024 " are the algorithm number.
When developer increases computing function newly for computing engines, it is necessary to develop new algorithm chain, the new algorithm chain It is referred to as target algorithm chain in the present embodiment.In addition, developer also needs to set the operator tuple of the target algorithm chain Normally.Determining module 110 parses the target when receiving the exploitation request of the target algorithm chain of developer's input The corresponding one or more calculating demands of algorithm chain, and determine the corresponding operator of each calculating demand, so that it is determined that composition target Each operator of algorithm chain.
Alternatively, judgment module 120, for whether including the composition target algorithm chain in determining program configuration file Each operator, if judging result is no, triggers the configuration module 130, if the determination result is YES, then the triggering life Into module 140.
Specifically, developer can develop some universal operators for some commonplace calculating demands in advance, And the universal operator is pre-configured in program configuration file.In the present embodiment, two kinds of universal operators are enumerated:
1st, operator title:CommonHead
Operator is referred to as:Com
Function:Input data is obtained from the page and is stored in system common data structure MyTupleList
Form is illustrated:Com:CommonHead#-1#-1#1;
The wherein first 1 data table number for representing pulling data is 1, and -1 represents and need not pull number from PG databases According to;Represent algorithm number for second 1, and algorithm number is not required in -1 representative;Last 1 represents weight.
2nd, operator title:Retrieval
Operator is referred to as:Retr
Function:From PG storehouses or Redis storehouses pulling data and it is stored in system common data structure MyTupleList
Form is illustrated:Retr:Retrieval#6#1#2_2;
Wherein 6 represent the data table number of the pulling data from PG storehouses or Redis storehouses;1 represents algorithm number, and the algorithm number is with being somebody's turn to do Algorithm meaning during data deposit database is consistent;First 2 represents access mode in 2_2, and second 2 represents access class Type.
Specifically, a kind of three layer data storage modes are provided in the present embodiment, are respectively local memory caching, Redis Data storage, the storage of PG data.The memory capacity of three increases successively, and corresponding storage speed successively decreases successively.For described Three layer data storage modes, one of following five kinds are can be set as to the access mode of database:
1st, preferentially fetch from local memory caching, if taking success, return to the data, if it is unsuccessful, then by following four Kind mode is fetched;
2、RedisOnly:Only from Redis storehouses fetch, this pattern be suitable for data volume it is smaller and to access speed requirement compared with High access demand, on condition that the existing Redis storehouses of data;
3、RedisPGSync:First fetch from Redis storehouses, if do not got, then go to PG storehouses to take, synchronously write back after getting Redis storehouses;
4、RedisPGAsync:First fetch from Redis, if do not got, then go to PG storehouses to take, get rear asynchronous write back Redis storehouses;
5、PGOnly:Only fetch from PG storehouses, it is big and relatively not high to access speed requirement that this pattern is suitable for data volume Access demand.
In addition, the present embodiment also provides a kind of setting for type of fetching, it is of interest that data enter the type in PG storehouses, such as Under:
1 Simple types
2 Ordered list
3 Unordered list
Thus, in the form citing of above-mentioned operator Retrieval, the access mode and access class of above setting are corresponded to Type, first 2 represents access mode as RedisOnly in " 2_2 ", and second 2 represents access type as ordered list.
Alternatively, configuration module 130, for receiving the target operator inputted according to predetermined format, and the mesh that will be received Operator configuration is marked in program configuration file, then triggers the generation module 140.The target operator is to be not included in program The operator of the composition target algorithm chain in configuration file.
Specifically, the operator included in program configuration file can be the universal operator, i.e., various commonly to need Seek the larger operator that may be used.It is required and the target operator is then the algorithm chain for some computing functions The operator of corresponding specific demand.When finding to configure target algorithm chain, using only existing universal calculation in program configuration file When son is inadequate, developer needs to develop new operator for new calculating demand, and this operator may be collectively termed as feature Operator.The feature operator is for example:Realize cutting word (keyword abstraction) operator of participle and similar case functional requirement Hanlp:KeywordExtraction#-1#-1#1;To realize the Sc of the similarity of similar case functional requirement and sequence calculating: BM25New#-1#-1#1 and Sort:Heapsort#-1#-1#1 operators.Feature operator is configured in program configuration file Afterwards, for flexibly being taken during subsequent configuration algorithm chain.
Generation module 140, for according to identified each operator, and the operator combination of set target algorithm chain Rule, generates corresponding algorithm number.
Memory module 150, for the algorithm number to be stored in database.When computing engines need to perform a certain computing function When, obtain the corresponding algorithm number of the computing function from database, and call from program configuration file according to the algorithm number pair The operator tuple answered performs the corresponding program of the algorithm chain, so as to fulfill the computing function into algorithm chain.
It is the flow chart of computing engines implementation method preferred embodiment of the present invention with reference to shown in Fig. 4.The place of electronic device 1 Reason device 12 performs when the computing engines stored in memory 11 realize program 10 and realizes the as follows of the computing engines implementation method Step:
Step S10, determining module 110 determine each operator of composition target algorithm chain.
Whether step S20, include each of the composition target algorithm chain in 120 determining program configuration file of judgment module Operator, if judging result is no, performs step S30, if the determination result is YES, then performs step S40.
Step S30, configuration module 130 receives the target operator inputted according to predetermined format, and the target received is calculated Then son configuration performs step S40 in program configuration file.The target operator is to be not included in program configuration file Form the operator of the target algorithm chain.
Step S40, generation module 140 is according to identified each operator, and the operator of set target algorithm chain Rule of combination, generates corresponding algorithm number.
The algorithm number is stored in database by step S50, memory module 150.The database include local memory caching, Redis storehouses or Postgre SQL storehouses.The access mode of the database includes one below:
Fetch from local memory caching;
Only fetch from Redis storehouses;
First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, synchronously write back after getting Redis storehouses;
First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get rear asynchronous write back Redis storehouses;
Only fetch from Postgre SQL storehouses.
Computing engines implementation method described in the present embodiment, is made when developing and safeguarding computing engines with algorithm chain and operator To realize frame, the corresponding algorithm chain of each computing function is realized with the flexible form of operator, between operator in a manner of loose coupling Connection, only provides the delivery format operator and content, the concrete methods of realizing without interfering each operator.Utilize This method realizes the computing function in newly-increased computing engines, and the development process of computing engines can be made more flexible, it is only necessary to according to Existing operator configures good algorithm chain, or develops new operator when necessary, you can realize the new function of computing engines, With extensive universality and good scalability, and extra system code and database development is not required.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium Can be hard disk, multimedia card, SD card, flash card, SMC, read-only storage (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), any one in portable compact disc read-only storage (CD-ROM), USB storage etc. or several timess Meaning combination.The computer-readable recording medium includes program configuration file, database, computing engines and realizes program 10 etc., The computing engines, which are realized, realizes following operation when program 10 is performed by the processor 12:
Determine step:Determine each operator of composition target algorithm chain;
Generation step:It is raw according to the operator combination rule of identified each operator, and set target algorithm chain Into corresponding algorithm number;
Storing step:The algorithm number is stored in database.
Alternatively, judgment step is further included before the generation step:Whether comprising described in determining program configuration file Each operator of target algorithm chain is formed, if the determination result is YES, then performs the generation step.
Alternatively, configuration step is further included after the judgment step, if the judging result of the judgment step is no, Perform the configuration step.
The configuration step:The target operator inputted according to predetermined format is received, and the target operator received is configured In program configuration file, the generation step is then performed.
The embodiment of the computer-readable recording medium of the present invention and above-mentioned computing engines implementation method and electricity The embodiment of sub-device 1 is roughly the same, and details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, device, article or method including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, device, article or method institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, device, article or method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium, including some instructions are used so that a station terminal equipment (can be mobile phone, computer, server, or network Equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of computing engines implementation method, it is characterised in that this method includes:
Determine step:Determine each operator of composition target algorithm chain;
Generation step:According to the operator combination rule of identified each operator, and set target algorithm chain, phase is generated The algorithm number answered;
Storing step:The algorithm number is stored in database.
2. computing engines implementation method as claimed in claim 1, it is characterised in that further included before the generation step:
Judgment step:Whether each operator of the composition target algorithm chain is included in determining program configuration file, if judging knot Fruit is yes, the then execution generation step.
3. computing engines implementation method as claimed in claim 2, it is characterised in that this method further includes:If described judge step Rapid result is no, then performs configuration step;
Configuration step:The target operator inputted according to predetermined format is received, and the target operator received is configured and is matched somebody with somebody in program Put in file, then perform the generation step.
4. computing engines implementation method as claimed in claim 3, it is characterised in that the target operator is to be not included in program The operator of the composition target algorithm chain in configuration file.
5. computing engines implementation method as claimed in claim 1, it is characterised in that the database delays including local memory Deposit, Redis storehouses or Postgre SQL storehouses.
6. computing engines implementation method as claimed in claim 5, it is characterised in that the access mode of the database is following One of mode:
Fetch from local memory caching;
Only fetch from Redis storehouses;
First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, Redis storehouses are synchronously write back after getting;
First fetch from Redis storehouses, if unsuccessful, fetch from Postgre SQL storehouses, get and rear asynchronous write back Redis storehouses;
Only fetch from Postgre SQL storehouses.
7. a kind of electronic device, including memory and processor, it is characterised in that the memory includes computing engines realization Program, which realizes realizes following steps when program is performed by the processor:
Determine step:Determine each operator of composition target algorithm chain;
Generation step:According to the operator combination rule of identified each operator, and set target algorithm chain, phase is generated The algorithm number answered;
Storing step:The algorithm number is stored in database.
8. electronic device as claimed in claim 7, it is characterised in that further included before the generation step:
Judgment step:Whether each operator of the composition target algorithm chain is included in determining program configuration file, if judging knot Fruit is yes, the then execution generation step.
9. electronic device as claimed in claim 8, it is characterised in that if the result of the judgment step is no, execution is matched somebody with somebody Put step;
Configuration step:The target operator inputted according to predetermined format is received, and the target operator received is configured and is matched somebody with somebody in program Put in file, then perform the generation step.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium includes computing engines Realize program, when the computing engines realize that program is executed by processor, realize as any one of claim 1 to 6 The step of computing engines implementation method.
CN201711047210.6A 2017-10-31 2017-10-31 Calculation engine implementation method, electronic device and storage medium Active CN107967135B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711047210.6A CN107967135B (en) 2017-10-31 2017-10-31 Calculation engine implementation method, electronic device and storage medium
PCT/CN2018/089884 WO2019085474A1 (en) 2017-10-31 2018-06-05 Calculation engine implementing method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711047210.6A CN107967135B (en) 2017-10-31 2017-10-31 Calculation engine implementation method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN107967135A true CN107967135A (en) 2018-04-27
CN107967135B CN107967135B (en) 2020-11-13

Family

ID=62000779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711047210.6A Active CN107967135B (en) 2017-10-31 2017-10-31 Calculation engine implementation method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN107967135B (en)
WO (1) WO2019085474A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657782A (en) * 2018-12-14 2019-04-19 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109685201A (en) * 2018-12-14 2019-04-26 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109711538A (en) * 2018-12-14 2019-05-03 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109726822A (en) * 2018-12-14 2019-05-07 北京中科寒武纪科技有限公司 Operation method, device and Related product
WO2019085474A1 (en) * 2017-10-31 2019-05-09 平安科技(深圳)有限公司 Calculation engine implementing method, electronic device, and storage medium
CN109740729A (en) * 2018-12-14 2019-05-10 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109740730A (en) * 2018-12-14 2019-05-10 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN110020720A (en) * 2019-04-01 2019-07-16 北京中科寒武纪科技有限公司 Operator joining method and device
CN112035537A (en) * 2020-07-10 2020-12-04 北京远景视点科技有限公司 Method for rapidly counting behaviors of moving object monitored by multiple sensors
CN112270399A (en) * 2020-09-29 2021-01-26 北京百度网讯科技有限公司 Operator registration processing method and device based on deep learning and electronic equipment
CN113076155A (en) * 2020-01-03 2021-07-06 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN114489850A (en) * 2022-01-20 2022-05-13 中广核工程有限公司 Calling method and device of design software, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103094A1 (en) * 2001-03-29 2004-05-27 Eliezer Levy Method of parallel trigger execution in an active database
US20130239100A1 (en) * 2009-06-23 2013-09-12 International Business Machines Corporation Partitioning Operator Flow Graphs
CN103838857A (en) * 2014-03-17 2014-06-04 中国科学院软件研究所 Automatic service combination system and method based on semantics
CN105159925A (en) * 2015-08-04 2015-12-16 北京京东尚科信息技术有限公司 Database cluster data distribution method and system
CN105760511A (en) * 2016-02-24 2016-07-13 南京信息职业技术学院 Big data self-adaption topology processing method based on storm
CN106507685A (en) * 2014-05-14 2017-03-15 株式会社理光 Information processing system, information processor and information processing method
CN107729523A (en) * 2017-10-27 2018-02-23 平安科技(深圳)有限公司 Data service method, electronic installation and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1863268A1 (en) * 2006-05-29 2007-12-05 Ricoh Company, Ltd. Combining image processing components using visual programming
CN102624870A (en) * 2012-02-01 2012-08-01 北京航空航天大学 Intelligent optimization algorithm based cloud manufacturing computing resource reconfigurable collocation method
CN103235974B (en) * 2013-04-25 2015-10-28 中国科学院地理科学与资源研究所 A kind of method improving massive spatial data treatment effeciency
CN107967135B (en) * 2017-10-31 2020-11-13 平安科技(深圳)有限公司 Calculation engine implementation method, electronic device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103094A1 (en) * 2001-03-29 2004-05-27 Eliezer Levy Method of parallel trigger execution in an active database
US20130239100A1 (en) * 2009-06-23 2013-09-12 International Business Machines Corporation Partitioning Operator Flow Graphs
CN103838857A (en) * 2014-03-17 2014-06-04 中国科学院软件研究所 Automatic service combination system and method based on semantics
CN106507685A (en) * 2014-05-14 2017-03-15 株式会社理光 Information processing system, information processor and information processing method
CN105159925A (en) * 2015-08-04 2015-12-16 北京京东尚科信息技术有限公司 Database cluster data distribution method and system
CN105760511A (en) * 2016-02-24 2016-07-13 南京信息职业技术学院 Big data self-adaption topology processing method based on storm
CN107729523A (en) * 2017-10-27 2018-02-23 平安科技(深圳)有限公司 Data service method, electronic installation and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MARIUSZ : "How to enable a Redis cache for PostgreSQL with Entity Framework 6", 《HTTPS://WWW.COMPOSE.COM/ARTICLES/HOW-TO-ENABLE-A-REDIS-CACHE-FOR-POSTGRESQL-WITH-ENTITY-FRAMEWORK-6/》 *
德哥: "PostgreSQL与基友们的故事之一Redis《无限缓存,实时标签…", 《HTTPS://DEVELOPER.ALIYUN.COM/ARTICLE/9035》 *
明辉: "缓存那些事", 《HTTPS://TECH.MEITUAN.COM/2017/03/17/CACHE-ABOUT.HTML》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085474A1 (en) * 2017-10-31 2019-05-09 平安科技(深圳)有限公司 Calculation engine implementing method, electronic device, and storage medium
CN109726822B (en) * 2018-12-14 2020-10-09 中科寒武纪科技股份有限公司 Operation method, device and related product
CN109726822A (en) * 2018-12-14 2019-05-07 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109685201A (en) * 2018-12-14 2019-04-26 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109740729A (en) * 2018-12-14 2019-05-10 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109740730A (en) * 2018-12-14 2019-05-10 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109711538A (en) * 2018-12-14 2019-05-03 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN109657782A (en) * 2018-12-14 2019-04-19 北京中科寒武纪科技有限公司 Operation method, device and Related product
CN110020720A (en) * 2019-04-01 2019-07-16 北京中科寒武纪科技有限公司 Operator joining method and device
CN113076155A (en) * 2020-01-03 2021-07-06 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN112035537A (en) * 2020-07-10 2020-12-04 北京远景视点科技有限公司 Method for rapidly counting behaviors of moving object monitored by multiple sensors
CN112035537B (en) * 2020-07-10 2023-10-20 北京远景视点科技有限公司 Method for rapidly counting behavior of mobile object monitored by multiple sensors
CN112270399A (en) * 2020-09-29 2021-01-26 北京百度网讯科技有限公司 Operator registration processing method and device based on deep learning and electronic equipment
CN112270399B (en) * 2020-09-29 2022-03-11 北京百度网讯科技有限公司 Operator registration processing method and device based on deep learning and electronic equipment
CN114489850A (en) * 2022-01-20 2022-05-13 中广核工程有限公司 Calling method and device of design software, computer equipment and storage medium
CN114489850B (en) * 2022-01-20 2023-08-22 中广核工程有限公司 Calling method and device of design software, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107967135B (en) 2020-11-13
WO2019085474A1 (en) 2019-05-09

Similar Documents

Publication Publication Date Title
CN107967135A (en) Computing engines implementation method, electronic device and storage medium
CN108958844B (en) Application program control method and terminal
US20180196665A1 (en) Managing, using, and updating application resources
US9477787B2 (en) Method and apparatus for information clustering based on predictive social graphs
CN108363792A (en) Link generation method, device, storage medium and the electronic equipment of five application page
CN104808892A (en) Application icon ordering method, device, system and associated equipment
CN101287040A (en) Action prediction based on interactive history and context between sender and recipient
CN107846511A (en) A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN109144493A (en) Generation method, electronic device and the readable storage medium storing program for executing of business rule
CN108874924A (en) Creation method, device and the computer readable storage medium of search service
CN105550206B (en) The edition control method and device of structured query sentence
CN104603777A (en) External action suggestions in search results
CN110086658A (en) Interface switching method, device and computer readable storage medium
CN108959067A (en) Test method, device and the computer readable storage medium of search engine
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN108491326A (en) Behavioral test recombination method, device and storage medium
CN110175301A (en) A kind of navigation bar configuration method and device, computer equipment and storage medium
CN101202792B (en) Method and apparatus for processing messages based on relationship between sender and recipient
CN107315833A (en) Method and apparatus of the retrieval with downloading based on application program
CN109840120A (en) Decouple micro services dissemination method, electronic device and computer readable storage medium
US8538946B1 (en) Creating model or list to identify queries
CN106055567A (en) Providing app store search results
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
US20160034139A1 (en) Predictive user interface
CN107729523A (en) Data service method, electronic installation and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant