Summary of the invention
Based on this, it is necessary at least one problem mentioned above, provide a kind of data channel and select method and setIt is standby.
A kind of data channel selects method, suitable for executing in calculating equipment, includes the following steps:
Several data channel to be determined are obtained, channel product information is obtained according to the data channel, generates severalWith the one-to-one product data inventory of the data channel;
According to preset format to being ranked up in each product data inventory, assign every in the product data inventoryA product data are to select priority;
Priority is selected according to described in and traverses product data in the data channel, is determined the product data and is metPredetermined filtering condition determines that product data inventory is corresponding using data channel.
The predetermined filtering condition includes at least one of following in one of the embodiments,:
Area attribute in product data meets presumptive area attribute;
Category attribute in product data meets predetermined kind attribute;
Scale attributes in product data meet predetermined ratio attribute.
Described the step of obtaining several data channel to be determined, includes in one of the embodiments,:
Attribute information before obtaining data channel at preset time intervals according to channel template, the attribute information include producingProduct price orders success rate and average time-consuming.
The preset format includes in one of the embodiments,:
The corresponding default price value section of price parameter in product data;
Order time in product data corresponds to preset time section;
Order success rate in product data corresponds to predetermined probabilities section;
The default price value section, the preset time section and the predetermined probabilities section respectively correspond default preferentialGrade weight.
In one of the embodiments, after described the step of determining product data inventory corresponding application data channelFurther include:
It sends subscription request to target data set according to the application data channel and gets and return the result information;
Information is returned the result according to described, confirms that the application data channel is faulty channel, deletes the faulty channel.
Further, the step of confirmation application data channel is faulty channel specifically includes:
The temporal information in information is returned the result described in reading, determining the temporal information is more than preset time threshold,Confirm that the application data channel is faulty channel.
Further, further include after the step of deleting the faulty channel:
According to preset period of time, test request is retransmitted to the faulty channel with preset frequency;
Response request corresponding with the test request is got, the response request is determined and meets preset state ginsengNumber, restoring the faulty channel is normal use data channel.
The present invention accordingly provides a kind of data channel and selects device, including:
Module is obtained, for obtaining several data channel to be determined, channel product letter is obtained according to the data channelBreath, generates several and the one-to-one product data inventory of the data channel;
Sorting module, for, to being ranked up in each product data inventory, assigning the production according to preset formatEach product data are in product list to select priority;
Determining module traverses product data in the data channel for selecting priority according to described in, determines instituteIt states product data and meets predetermined filtering condition, determine that product data inventory is corresponding using data channel.
Equipment is selected the present invention also provides a kind of data channel, including processor and is referred to for storage processor to be executableThe memory of order;Wherein, the processor is configured to:
Several data channel to be determined are obtained, channel product information is obtained according to the data channel, generates severalWith the one-to-one product data inventory of the data channel;
According to preset format to being ranked up in each product data inventory, assign every in the product data inventoryA product data are to select priority;
Priority is selected according to described in and traverses product data in the data channel, is determined the product data and is metPredetermined filtering condition determines that product data inventory is corresponding using data channel.
Data channel provided by the invention selects method and apparatus by screening to flow subscription data channel, according toCondition selects out optimal data channel, can obtain most suitable data channel neatly under different situations, improve flowThe success rate of order also improves the usage experience of consumer.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawingGive presently preferred embodiments of the present invention.But the invention can be realized in many different forms, however it is not limited to this paper instituteThe embodiment of description.On the contrary, purpose of providing these embodiments is keeps the understanding to the disclosure more thoroughComprehensively.
A kind of data channel is provided in one embodiment of the invention selects method, suitable for being executed in calculating equipment, such as Fig. 1It is shown, include the following steps S100~step S300:
Step S100:Several data channel to be determined are obtained, channel product information is obtained according to the data channel, it is rawAt several and the one-to-one product data inventory of the data channel.It carries out selecting choosing within the scope of certain data channel, it is firstIt first needs to obtain data channel to be determined, these data channel can be used for ordering flow business.It is obtained with specific reference to channel templateThe attribute information for taking data channel preceding at preset time intervals, the attribute information include product price, order success rate and put downIt is time-consuming, such as obtain according to channel template the relevant information of the previous day of its all channel product:Product price is ordered successfullyNumber orders success rate and average time-consuming etc..It is corresponding with channel product information in each data channel, i.e., in the channelProduct attribute, including price, application field, applied geography position, data class etc..The product for including in each data channelQuantity may be different, and the product attribute of each product may not also be identical, thus a pair of according to data channel oneThe relationship answered results from the corresponding product data inventory of data channel, according to the product information listed in product data inventoryIt carries out selecting choosing, to determine the data channel for being best suitable for requirement.
Step S200:According to preset format to being ranked up in each product data inventory, the product number is assignedAccording to the product data each in inventory to select priority.Wherein preset format includes following one or more:
1, the corresponding default price value section of the price parameter in product data;
2, the order time in product data corresponds to preset time section;
3, the order success rate in product data corresponds to predetermined probabilities section.
Wherein, preset price value section, the preset time section and the predetermined probabilities section respectively correspond preset it is excellentFirst grade weight.Such as there are (1,3) and (3,5) in default price value section, wherein (1,3) corresponding pre-set priority weight is 3, and(3,5) corresponding pre-set priority weight is 1, and price is lower, and corresponding pre-set priority weight is higher.Correspondingly, the order time gets overShort, weights are higher, and order success rate is bigger, and weights are higher.Handling by preset format can be to product dataProduct data in inventory are ranked up, and will come the product data in a certain successive range to select priority, according to preferentialGrade determines the product data selected, and also and then determines the data channel selected.
Step S300:According to the product data selected in priority ergodic data channel, determines product data and meet in advanceDetermine screening conditions, determines that product data inventory is corresponding using data channel.It is selected preferentially according to what step S200 was determinedGrade, traverses the product data in data channel corresponding with priority is selected, judges whether product data meet predetermined filtering itemPart, the predetermined filtering condition is often from customer data comprising at least one of following condition:
1, the area attribute in product data meets presumptive area attribute.As data on flows can be in a certain geographic rangeIt uses.
2, the category attribute in product data meets predetermined kind attribute.The net whether not met the requirements of the customers using netNot.
3, the scale attributes in product data meet predetermined ratio attribute.That is whether the type ratio of product data meets visitorFamily requires.
As a preferred scheme, also wrapped after the step of determining product data inventory corresponding application data channelIt includes:
It sends subscription request to target data set according to application data channel and gets and return the result information.To specificTarget terminal sends subscription request, to judge whether the target terminal is in effective status.After sending request, the target terminalIt would generally send and return the result information, this returns the result the status information that will include target terminal in information, temporal information etc..
Information is returned the result according to described, confirms that the application data channel is faulty channel, deletes the faulty channel.If status information or according to temporal information can judge this using data channel there are failure, by the faulty channel fromIt is deleted in the application data channel filtered out, such as reads the temporal information returned the result in information, it is super to determine temporal informationPreset time threshold is crossed, confirmation is faulty channel using data channel.
Certainly, the information of deletion should retain in systems, in case subsequent applications.Such as it is further preferred that delete instituteFurther include after the step of stating faulty channel:
According to preset period of time, test request is retransmitted to the faulty channel with preset frequency;
Response request corresponding with the test request is got, the response request is determined and meets preset state ginsengNumber, restoring the faulty channel is normal use data channel.
Re-start test at a certain time interval, the malfunction in some faulty channels be it is temporary,Choose using selecting optimal, the available data channel can to further increase efficiency in data channel.
The present invention accordingly provides a kind of data channel and selects device, as shown in Fig. 2, including:
Module 10 is obtained, for obtaining several data channel to be determined, channel product information is obtained according to data channel,Generate several and the one-to-one product data inventory of the data channel.
Sorting module 20, for, to being ranked up in each product data inventory, assigning product data according to preset formatEach product data are in inventory to select priority.
Determining module 30, for determining using data channel according to predetermined filtering condition.
Thought based on computer system selects equipment the present invention also provides a kind of data channel, including processor andMemory for storage processor executable instruction;Wherein, processor is configured as implementation steps S100~step S300:
Step S100:Several data channel to be determined are obtained, channel product information is obtained according to the data channel, it is rawAt several and the one-to-one product data inventory of the data channel.
Step S200:According to preset format to being ranked up in each product data inventory, the product number is assignedAccording to the product data each in inventory to select priority.
Step S300:According to the product data selected in priority ergodic data channel, determines product data and meet in advanceDetermine screening conditions, determines that product data inventory is corresponding using data channel.
The device or module that above-described embodiment illustrates can specifically realize by computer chip or entity, or by havingThe product of certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be personal meterCalculation machine, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation are setIt is any several in standby, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipmentThe combination of equipment.
It should be understood by those skilled in the art that, this specification one or more embodiment can provide for method, system orComputer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implementedThe form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used oneIt is a or it is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to disk storageDevice, CD-ROM, optical memory etc.) on the form of computer program product implemented.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spyDetermine 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 orThe 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 countingSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer orThe instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludabilityIt include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrapInclude other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic wantElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described wantThere is also other identical elements in the process, method of element, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general onIt hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data typeRoutine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one orMultiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication networkTask.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is depositedIn storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for server-sideFor apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to methodThe part of embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claimsIt 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 embodimentIt executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitableSequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also canWith or may be advantageous.
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this public affairsIt opens, all within the spirit and principle of the disclosure, any modification, equivalent substitution, improvement and etc. done should be included in the disclosureWithin the scope of protection.