CN104469421A - Method and device for calculating value-added packages of internet protocol television - Google Patents

Method and device for calculating value-added packages of internet protocol television Download PDF

Info

Publication number
CN104469421A
CN104469421A CN201410677768.2A CN201410677768A CN104469421A CN 104469421 A CN104469421 A CN 104469421A CN 201410677768 A CN201410677768 A CN 201410677768A CN 104469421 A CN104469421 A CN 104469421A
Authority
CN
China
Prior art keywords
history
increment
bag
calculated
increment bag
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
CN201410677768.2A
Other languages
Chinese (zh)
Other versions
CN104469421B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410677768.2A priority Critical patent/CN104469421B/en
Publication of CN104469421A publication Critical patent/CN104469421A/en
Application granted granted Critical
Publication of CN104469421B publication Critical patent/CN104469421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2542Management at additional data server, e.g. shopping server, rights management server for selling goods, e.g. TV shopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and device for calculating value-added packages of an internet protocol television. The method for calculating the value-added packages of the internet protocol television includes the steps of obtaining current log records, wherein the current log records comprise to-be-calculated value-added packages and user information for ordering the to-be-calculated value-added packages; extracting user identification in the user information; obtaining history log records including the user identification; extracting history value-added packages and ordering information of the history value-added packages from the history log records, wherein the history value-added packages are value-added packages in the history log records; according to the history value-added packages, the to-be-calculated value-added packages and the ordering information, calculating the ordering number of the value-added packages. By means of the method and device, the problem that in the prior art, the ordering number of the value-added packages of the internet protocol television cannot be accurately calculated is solved, and the effect of improving the calculation accuracy of the ordering number of the value-added packages of the internet protocol television is further achieved.

Description

The computational methods of the increment bag of IPTV and device
Technical field
The present invention relates to data processing field, in particular to a kind of computational methods and device of increment bag of IPTV.
Background technology
Along with the increase of network coverage, IPTV IPTV is also more and more universal.IPTV IPTV has the business buying Video service for user, and the user's service condition buying Video service business has great significance to IPTV service department, because this directly affects the clearing of IPTV department.And the increment bag that the user's service condition buying Video service business is mainly selected according to user is determined, so, the existing number of users (that is, from the number of users of system log (SYSLOG) cut-off in a day the earliest this product bag of order of nearest a day) of certain increment bag has great significance.
To the computational methods of the existing number of users of increment bag in prior art, by user's lot-sizes all in statistical log, and then remove the user wherein repeated, finally obtain the lot-size of an increment bag, mainly just simple duplicate removal is carried out to the number of users of all increment bags,-order will be ordered-be quit the subscription of to the account form of this kind of simple duplicate removal " " (namely, quit the subscription of after order, ordered again afterwards) such number of users can be regarded as and once ordered, and be actually 2 orders, so what finally obtain result is a result that there is error, cause and accurately can not calculate the lot-size of IPTV increment bag.
For the problem that accurately can not calculate the lot-size that IPTV increment is wrapped in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
Main purpose of the present invention is computational methods and the device of the increment bag providing a kind of IPTV, to solve in prior art the problem of the lot-size that accurately can not calculate IPTV increment bag.
To achieve these goals, according to an aspect of the present invention, a kind of computational methods of increment bag of IPTV are provided.
Computational methods according to the increment bag of IPTV of the present invention comprise: obtain current log record, and wherein, described current log record comprises increment bag to be calculated and orders the user profile of described increment bag to be calculated; Extract the user ID in described user profile; Obtain the history log record comprising described user ID; From described history log record, extract the ordering information of history increment bag and described history increment bag, wherein, described history increment bag is the increment bag in described history log record; And the lot-size of described increment bag to be calculated is calculated according to described history increment bag, described increment bag to be calculated and described ordering information.
Further, the lot-size calculating described increment bag to be calculated according to described history increment bag, described increment bag to be calculated with described ordering information comprises: judge described history increment bag with described to be calculated rise in value wrap whether identical; When judge described history increment bag with described to be calculated rise in value wrap not identical, determine described to be calculated rise in value wrap lot-size add one; When judge described history increment bag with described to be calculated rise in value wrap identical, judge whether the state that the described history increment represented by described ordering information is wrapped is preset state, wherein, described preset state represents that described history increment bag is in the state of quitting the subscription of; And when the state that the described history increment judged represented by described ordering information is wrapped is described preset state, determine that the lot-size of described increment bag to be calculated adds one.
Further, judge that described history increment bag wraps whether identical comprising with described to be calculated increment: obtain described history respectively and rise in value and wrap and the described mark of wrapping of rising in value to be calculated; And whether compare the first mark identical with the second mark, wherein, described first mark being designated the described history increment bag got, described second is designated the mark of wrapping of rising in value described to be calculated got, wherein, when comparing described first mark and being identical with described second mark, determine described history increment bag with described to be calculated rise in value wrap identical, when compare described first mark and described second mark not identical, determine described history increment wrap with described to be calculated rise in value wrap not identical.
Further, judge whether the state that the described history increment represented by described ordering information is wrapped is that preset state comprises: obtain the status indicator in described ordering information; And judge that whether the status indicator in described ordering information is identical with the status indicator of described preset state, wherein, when judging that the status indicator in described ordering information is identical with the status indicator of described preset state, determine that the state that the described history increment represented by described ordering information is wrapped is described preset state, when judging that the status indicator in described ordering information is not identical with the status indicator of described preset state, determine that the state of the described history increment bag represented by described ordering information is not described preset state.
Further, described current log record and described history log record are C3 log recording.
To achieve these goals, according to a further aspect in the invention, a kind of calculation element of increment bag of IPTV is provided.
Calculation element according to the increment bag of IPTV of the present invention comprises: the first acquiring unit, and for obtaining current log record, wherein, described current log record comprises increment bag to be calculated and orders the user profile of described increment bag to be calculated; First extraction unit, for extracting the user ID in described user profile; Second acquisition unit, for obtaining the history log record comprising described user ID; Second extraction unit, for extracting the ordering information of history increment bag and described history increment bag from described history log record, wherein, described history increment bag is the increment bag in described history log record; And computing unit, for calculating the lot-size of described increment bag to be calculated according to described history increment bag, described increment bag to be calculated and described ordering information.
Further, described computing unit comprises: the first judgment sub-unit, for judge described history increment bag with described to be calculated rise in value wrap whether identical; First determines subelement, for judge in described first judgment sub-unit described history increment bag with described to be calculated rise in value wrap not identical, determine described to be calculated rise in value wrap lot-size add one; Second judgment sub-unit, for judge in described first judgment sub-unit described history increment bag with described to be calculated rise in value wrap identical, judge whether the state that the described history increment represented by described ordering information is wrapped is preset state, wherein, described preset state represents that described history increment bag is in the state of quitting the subscription of; And second determines subelement, for judging that in described second judgment sub-unit the state of the described history increment bag represented by described ordering information is described preset state, determine that the lot-size of described increment bag to be calculated adds one.
Further, described first judgment sub-unit comprises: the first acquisition module, for obtaining the mark of described history increment bag and described increment bag to be calculated respectively, and comparison module, whether identical with the second mark for comparing the first mark, wherein, described first mark being designated the described history increment bag got, described second is designated the mark of wrapping of rising in value described to be calculated got, wherein, when described comparison module compare described first mark and described second identify identical, determine described history increment bag with described to be calculated rise in value wrap identical, when described comparison module compare described first mark and described second identify not identical, determine described history increment bag with described to be calculated rise in value wrap not identical.
Further, described second judgment sub-unit comprises: the second acquisition module, for obtaining the status indicator in described ordering information, and judge module, for judging that whether the status indicator in described ordering information is identical with the status indicator of described preset state, wherein, when the status indicator that described judge module is judged in described ordering information is identical with the status indicator of described preset state, determine that the state that the described history increment represented by described ordering information is wrapped is described preset state, when described judge module judges that the status indicator in described ordering information is not identical with the status indicator of described preset state, determine that the state that the described history increment represented by described ordering information is wrapped is not described preset state.
Further, described current log record and described history log record are C3 log recording.
By the present invention, adopt and obtain current log record, wherein, described current log record comprises increment bag to be calculated and orders the user profile of described increment bag to be calculated; Extract the user ID in described user profile; Obtain the history log record comprising described user ID; From described history log record, extract the ordering information of history increment bag and described history increment bag, wherein, described history increment bag is the increment bag in described history log record; And the lot-size of described increment bag to be calculated is calculated according to described history increment bag, described increment bag to be calculated and described ordering information.By obtaining the current log record comprising increment bag to be calculated, user ID is extracted from the user profile of current log record, and then obtain the history log record comprising user ID, because history log record includes the history increment bag of the user's order represented by user ID, therefore achieve and the increment bag ordered by same user is obtained, and then can according to increment bag to be calculated, the history ordering information rised in value in bag and history log record calculates the lot-size of increment bag to be calculated, this kind calculates the mode of lot-size based on user's historical behavior, the error of calculation that duplicate removal account form of the prior art causes can be avoided, solve in prior art the problem of the lot-size that accurately can not calculate IPTV increment bag, and then reach the effect of the counting accuracy improved the lot-size that IPTV increment is wrapped.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the computational methods of the increment bag of IPTV according to the embodiment of the present invention;
Fig. 2 is the computational methods of the increment bag of IPTV is according to the preferred embodiment of the invention flow chart; And
Fig. 3 is the schematic diagram of the calculation element of the increment bag of IPTV according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide a kind of embodiment of the method that may be used for implementing the application's device embodiment, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
According to the embodiment of the present invention, provide a kind of computational methods of increment bag of IPTV.Fig. 1 is the flow chart of the computational methods of the increment bag of IPTV according to the embodiment of the present invention, and as shown in Figure 1, the method comprises following step S102 to step S110:
Step S102: obtain current log record, wherein, current log record comprises increment bag to be calculated and orders the user profile of increment bag to be calculated.In the embodiment of the present invention, can add up according to cycle regular time according to demand, in current time, can add up the lot-size of the bag that rises in value in the last complete time cycle, wherein, the time cycle can be arranged according to actual needs.Such as: every day, 10:00 added up the lot-size of the increment bag of the previous day, now current log record be then the previous day 0:00 to the previous day 24:00 between log recording, what refer to is exactly product bag to increment bag, and user profile comprises user name, User IP etc.
Step S104: extract the user ID in user profile, this user ID can distinguish different users, and user ID can be user name, that is, distinguish different users by user name.
Step S106: obtain the history log record comprising user ID, namely, obtain within the time cycle that current log record is corresponding, each history log record that have subscribed the user represented by user ID of increment bag to be calculated, it should be noted that, the initial time of the history log record of each user is the time that this user starts to order the increment bag of IPTV, and the termination time of history log record is the initial time of the time cycle that current log record is corresponding.Such as: increment bag to be calculated is increment bag A, and the time that current log is corresponding is the 0:00 to 24:00 of 2014-11-10, within the above-mentioned time, there are 10 users to have subscribed increment bag A, then obtain the history log record of these 10 users.A user is had to be user F in these 10 users, user F starts at the 9:00 of 2014-1-1 the increment bag ordering IPTV, then the history log record of user F is the log recording in the 24:00 of the 9:00 to 2014-11-9 of 2014-1-1, and the initial time of the history log record of other users and deadline can learn with reference to the time of the history log record of user F.
Step S108: the ordering information extracting history increment bag and history increment bag from history log record, wherein, history increment bag is the increment bag in history log record, namely, from the history log record of each user, extract the ordering information that history increment is wrapped and history increment is wrapped that this user ordered, ordering information can be order or quit the subscription of.
Step S110: the lot-size calculating increment bag to be calculated according to history increment bag, increment bag to be calculated and ordering information.
In embodiments of the present invention, by obtaining the current log record comprising increment bag to be calculated, user ID is extracted from the user profile of current log record, and then obtain the history log record comprising user ID, because history log record includes the history increment bag of the user's order represented by user ID, therefore achieve and the increment bag ordered by same user is obtained, and then can according to increment bag to be calculated, the history ordering information rised in value in bag and history log record calculates the lot-size of increment bag to be calculated, this kind calculates the mode of lot-size based on user's historical behavior, the error of calculation that duplicate removal account form of the prior art causes can be avoided, solve in prior art the problem of the lot-size that accurately can not calculate IPTV increment bag, and then reach the effect of the counting accuracy improved the lot-size that IPTV increment is wrapped.
Preferably, in the computational methods of the increment bag of the IPTV provided in the embodiment of the present invention, the user first calculated representated by each user ID can order the quantity of wrapping of rising in value to be calculated, and the lot-size of the user representated by each user ID is added up, the accumulative result finally obtained is exactly the lot-size of increment bag to be calculated, wherein, the user calculated representated by each user ID order to be calculated increment bag quantity can draw to step 1-4 according to step 1-1:
Step 1-1: judge history increment bag with to be calculated rise in value wrap whether identical, whether ordered before namely judging the user representated by this user ID increment to be calculated wrap.
Step 1-2: when judge history increment bag with to be calculated rise in value wrap not identical, determine that the lot-size of increment bag to be calculated adds one, namely, when judging that the user representated by this user ID did not order increment bag to be calculated before this orders increment to be calculated bag, 1 is added to the lot-size of increment bag to be calculated.
Step 1-3: when judge history increment bag with to be calculated rise in value wrap identical, judge whether the state that the history increment represented by ordering information is wrapped is preset state, wherein, preset state represents that history increment bag is in the state of quitting the subscription of, namely, when judging that the user representated by this user ID ordered increment bag to be calculated before this orders increment to be calculated bag, judging that whether the state of history increment bag is for quitting the subscription of state.
Step 1-4: when the state judging that the increment of the history represented by ordering information is wrapped is preset state, determine that the lot-size of increment bag to be calculated adds one, the state of the history increment bag ordered before judging the user representated by this user ID is for quitting the subscription of, 1 is added to the lot-size of increment bag to be calculated.
In embodiments of the present invention, by judge history increment bag that user representated by user ID orders with to be calculated rise in value wrap whether identical, and whether the state judging history increment bag is after preset state, just draw the conclusion whether lot-size of increment bag increases, reach the effect improving increment bag lot-size statistical accuracy.
Particularly, step 1-1: judge history increment bag with to be calculated rise in value to wrap whether identically comprise step 1-1-1 to 1-1-2:
Step 1-1-1: the mark obtaining history increment bag and increment bag to be calculated respectively, different increment bags has different marks, the mark of each increment bag is not identical, so whether different increment bags is same increment bag, relies on and identifies whether identical differentiation.
Step 1-1-2: compare the first mark whether identical with the second mark, whether namely judge that the first mark and second identifies is same mark; Wherein, history increment bag be designated the first mark, increment bag to be calculated be designated the second mark; When compare the first mark with second mark identical, determine history increment bag with to be calculated rise in value wrap identical, when compare the first mark with second identify not identical, determine history rise in value wrap with to be calculated rise in value wrap not identical.
The embody rule scene of the embodiment of the present invention is as follows: the mark first obtaining history increment bag: A1, that is, first be designated A1; Obtain the mark of increment bag to be calculated: A2, that is, second be designated A2; Then compare the first mark and second mark whether identical, whether namely compare A1 and A2 is same mark; If A1 and A2 is same mark, then history increment bag with to be calculated rise in value to wrap wrap for same increment; If A1 and A2 is different marks, then history increment bag and the increment bag wrapped as different that rises in value to be calculated.
Particularly, judge in step 1-3 whether the state that the history increment represented by ordering information is wrapped is that preset state comprises:
Obtain the status indicator in ordering information, the OrderValid field in the history log of the user of this status indicator representated by the user ID of extraction, when the value of OrderValid field is 0, the status indicator in expression ordering information is for quitting the subscription of; When the value of OrderValid field is 1, represent that the status indicator in ordering information is order.
Judge that whether the status indicator in ordering information identical with the status indicator of preset state, the status indicator of preset state for quitting the subscription of, that is, judge history increment bag ordering information in state whether for quitting the subscription of.
Wherein, when judging that the status indicator in ordering information is identical with the status indicator of preset state, determine represented by ordering information history increment bag state be preset state, that is, determine history increment bag ordering information in state for quitting the subscription of state; When judging that the status indicator in ordering information is not identical with the status indicator of preset state, determining that the state of the history increment bag represented by ordering information is not preset state, that is, determining that the state in the ordering information of history increment bag is subscription status.
Preferably, current log record and history log record are C3 log recording.C3 daily record is IPTV content operation platform and the daily record of service operation platform Technical Interface Specification, IPTV department can obtain C3 daily record from operator, therefore, carry out the calculating of the lot-size of IPTV increment bag based on C3 daily record, counting accuracy can be improved further.
Fig. 2 is the flow chart of the computational methods of the increment bag of IPTV according to the preferred embodiment of the invention, and as shown in Figure 2, the method comprises following step S202 to step S208:
S202: obtain user's ordering products bag record, product bag is herein the increment bag to be calculated in above-described embodiment, and user's ordering products bag record is then the history log record of this user.
S204: judge whether this user ordered this product bag, was equivalent to step 1-1: judge that whether identical history increment bag wraps with to be calculated increment, do not repeat them here; When judging that this user had ordered this product bag, perform step S208; When judging that this user did not order this product bag, perform step S206.
S206: the order number+1 of this product bag, that is, after not ordering this product bag before judging this user, to the order number+1 of this product bag, be equivalent to step 1-2, herein not in repeat specification.
S208: judge that whether the last subscription status of this user about this product bag be for quitting the subscription of state, that is, whether the state being equivalent to the history increment bag judged in step 1-3 represented by ordering information is preset state.When judging the last subscription status of this user about this product bag for quitting the subscription of state, the order number+1 of this product bag; When judging that this user is subscription status about the last subscription status of this product bag, process ends.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of calculation element of increment bag of IPTV of computational methods of the increment bag for implementing above-mentioned IPTV, this calculation element is mainly used in the computational methods that execution embodiment of the present invention foregoing provides, and does concrete introduction below to the calculation element of the increment bag of the IPTV that the embodiment of the present invention provides:
According to the embodiment of the present invention, provide a kind of calculation element of increment bag of IPTV.Fig. 3 is the schematic diagram of the calculation element of the increment bag of IPTV according to the embodiment of the present invention, as shown in Figure 3, this device mainly comprises: the first acquiring unit 10, first extraction unit 20, second acquisition unit 30, second extraction unit 40 and computing unit 50, wherein:
First acquiring unit 10 is for obtaining current log record, and wherein, current log record comprises increment bag to be calculated and orders the user profile of increment bag to be calculated.In the embodiment of the present invention, can add up according to cycle regular time according to demand, in current time, can add up the lot-size of the bag that rises in value in the last complete time cycle, wherein, the time cycle can be arranged according to actual needs.Such as: every day, 10:00 added up the lot-size of the increment bag of the previous day, now current log record be then the previous day 0:00 to the previous day 24:00 between log recording; Current log is recorded as C3 log recording, and what increment bag referred to is exactly product bag, and user profile comprises user name, User IP etc.
First extraction unit 20 is for extracting the user ID in user profile, and this user ID can distinguish different users, and user ID can be user name, that is, distinguish different users by user name.
Second acquisition unit 30 is for obtaining the history log record comprising user ID, that is, obtain within the time cycle that current log record is corresponding, each history log record that have subscribed the user represented by user ID of increment bag to be calculated, wherein, history log is recorded as C3 log recording.It should be noted that, the initial time of the history log record of each user is the time that this user starts to order the increment bag of IPTV, and the termination time of history log record is the initial time of the time cycle that current log record is corresponding.Such as: increment bag to be calculated is increment bag A, and the time that current log is corresponding is the 0:00 to 24:00 of 2014-11-10, within the above-mentioned time, there are 10 users to have subscribed increment bag A, then obtain the history log record of these 10 users.Have a user to be user F in these 10 users, user F starts at the 9:00 of 2014-1-1 the increment bag ordering IPTV, then the history log record of user F is the log recording in the 24:00 of the 9:00 to 2014-11-9 of 2014-1-1.
Second extraction unit 40 for extracting the ordering information of history increment bag and history increment bag from history log record, wherein, history increment bag is the increment bag in history log record, namely, from the history log record of each user, extract the ordering information that history increment is wrapped and history increment is wrapped that this user ordered, ordering information can be order or quit the subscription of.
Computing unit 50 is for calculating the lot-size of increment bag to be calculated according to history increment bag, increment bag to be calculated and ordering information.
In embodiments of the present invention, by obtaining the current log record comprising increment bag to be calculated, user ID is extracted from the user profile of current log record, and then obtain the history log record comprising user ID, because history log record includes the history increment bag of the user's order represented by user ID, therefore achieve and the increment bag ordered by same user is obtained, and then can according to increment bag to be calculated, the history ordering information rised in value in bag and history log record calculates the lot-size of increment bag to be calculated, this kind calculates the mode of lot-size based on user's historical behavior, the error of calculation that duplicate removal account form of the prior art causes can be avoided, solve in prior art the problem of the lot-size that accurately can not calculate IPTV increment bag, and then reach the effect of the counting accuracy improved the lot-size that IPTV increment is wrapped.
Preferably, in the calculation element of the increment bag of the IPTV provided in the embodiment of the present invention, the user first calculated representated by each user ID can order the quantity of wrapping of rising in value to be calculated, and the lot-size of the user representated by each user ID is added up, the accumulative result finally obtained is exactly the lot-size of increment bag to be calculated, wherein, the first judgment sub-unit that the quantity that user representated by each user ID orders increment bag to be calculated can be comprised by computing unit 50, first determines subelement, second judgment sub-unit and second determines that subunit computes draws, wherein:
First judgment sub-unit for judge history increment bag with to be calculated rise in value wrap whether identical, whether ordered before namely judging the user representated by this user ID increment to be calculated wrap.
First determine subelement for judge in the first judgment sub-unit history increment bag with to be calculated rise in value wrap not identical, determine that the lot-size of increment bag to be calculated adds one, namely, when judging that the user representated by this user ID did not order increment bag to be calculated before this orders increment to be calculated bag, 1 is added to the lot-size of increment bag to be calculated.
Second judgment sub-unit be used for when the first judgment sub-unit judge history increment bag with to be calculated rise in value wrap identical, judge whether the state that the history increment represented by ordering information is wrapped is preset state, wherein, preset state represents that history increment bag is in the state of quitting the subscription of, namely, when judging that the user representated by this user ID ordered increment bag to be calculated before this orders increment to be calculated bag, judging that whether the state of history increment bag is for quitting the subscription of state.
Second determine subelement for judge in the second judgment sub-unit represented by ordering information history increment bag state be preset state, determine that the lot-size of increment bag to be calculated adds one, the state of the history increment bag ordered before judging the user representated by this user ID is for quitting the subscription of, 1 is added to the lot-size of increment bag to be calculated.
In embodiments of the present invention, by judge history increment bag that user representated by user ID orders with to be calculated rise in value wrap whether identical, and whether the state judging history increment bag is after preset state, just draw the conclusion whether lot-size of increment bag increases, reach the effect improving increment bag lot-size statistical accuracy.
Particularly, the first judgment sub-unit comprises the first acquisition module and comparison module, wherein:
The increment bag that first acquisition module is used for obtaining history increment bag respectively different with the mark of increment bag to be calculated has different marks, the mark of each increment bag is not identical, so whether different increment bags is same increment bag, relies on and identify whether identical differentiation.
Whether comparison module is used for comparing the first mark identical with the second mark, wherein, first be designated get history increment bag mark, second is designated the mark of wrapping of rising in value to be calculated got, wherein, when comparison module compare the first mark with second mark identical, determine history increment bag with to be calculated rise in value wrap identical, when comparison module compare the first mark with second mark not identical, determine history increment bag with to be calculated rise in value wrap not identical.
The embody rule scene of the embodiment of the present invention is as follows: the mark first obtaining history increment bag: A1, that is, first be designated A1; Obtain the mark of increment bag to be calculated: A2, that is, second be designated A2; Then compare the first mark and second mark whether identical, whether namely compare A1 and A2 is same mark; If A1 and A2 is same mark, then history increment bag with to be calculated rise in value to wrap wrap for same increment; If A1 and A2 is different marks, then history increment bag and the increment bag wrapped as different that rises in value to be calculated.
Particularly, the second judgment sub-unit comprises the second acquisition module and judge module, wherein:
Second acquisition module is for obtaining the status indicator in ordering information; OrderValid field in the history log of the user of this status indicator representated by the user ID of extraction, when the value of OrderValid field is 0, the status indicator in expression ordering information is for quitting the subscription of; When the value of OrderValid field is 1, represent that the status indicator in ordering information is order.
Judge module for judging that whether the status indicator in ordering information identical with the status indicator of preset state, that is, judge history increment bag ordering information in state whether for quitting the subscription of.Wherein, when judge module judges that the status indicator in ordering information is identical with the status indicator of preset state, determine represented by ordering information history increment bag state be preset state, that is, determine history increment bag ordering information in state for quitting the subscription of state; When judge module judges that the status indicator in ordering information is not identical with the status indicator of preset state, determine that the state of the history increment bag represented by ordering information is not preset state, that is, determine that the state in the ordering information of history increment bag is subscription status.
From above description, can find out, the invention solves in prior art the problem of the lot-size that accurately can not calculate IPTV increment bag, and then reach the effect of the counting accuracy improved the lot-size that IPTV increment is wrapped.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. computational methods for the increment bag of IPTV, is characterized in that, comprising:
Obtain current log record, wherein, described current log record comprises increment bag to be calculated and orders the user profile of described increment bag to be calculated;
Extract the user ID in described user profile;
Obtain the history log record comprising described user ID;
From described history log record, extract the ordering information of history increment bag and described history increment bag, wherein, described history increment bag is the increment bag in described history log record; And
The lot-size of described increment bag to be calculated is calculated according to described history increment bag, described increment bag to be calculated and described ordering information.
2. computational methods according to claim 1, is characterized in that, the lot-size calculating described increment bag to be calculated according to described history increment bag, described increment bag to be calculated and described ordering information comprises:
Judge described history increment bag with described to be calculated rise in value wrap whether identical;
When judge described history increment bag with described to be calculated rise in value wrap not identical, determine described to be calculated rise in value wrap lot-size add one;
When judge described history increment bag with described to be calculated rise in value wrap identical, judge whether the state that the described history increment represented by described ordering information is wrapped is preset state, wherein, described preset state represents that described history increment bag is in the state of quitting the subscription of; And
When the state that the described history increment judged represented by described ordering information is wrapped is described preset state, determine that the lot-size of described increment bag to be calculated adds one.
3. computational methods according to claim 2, is characterized in that, judge that described history increment bag wraps whether identical comprising with described to be calculated increment:
Obtain the mark of described history increment bag and described increment bag to be calculated respectively; And
Relatively whether the first mark is identical with the second mark, wherein, the described first mark being designated the described history increment bag got, described second is designated the mark that the increment described to be calculated that gets wraps,
Wherein, when comparing described first mark and being identical with described second mark, determine described history increment bag with described to be calculated rise in value wrap identical, when compare described first mark and described second mark not identical, determine described history increment wrap with described to be calculated rise in value wrap not identical.
4. computational methods according to claim 2, is characterized in that, judge whether the state of the described history increment bag represented by described ordering information is that preset state comprises:
Obtain the status indicator in described ordering information; And
Judge that whether the status indicator in described ordering information is identical with the status indicator of described preset state,
Wherein, when judging that the status indicator in described ordering information is identical with the status indicator of described preset state, determine that the state that the described history increment represented by described ordering information is wrapped is described preset state, when judging that the status indicator in described ordering information is not identical with the status indicator of described preset state, determine that the state of the described history increment bag represented by described ordering information is not described preset state.
5. computational methods according to claim 1, is characterized in that, described current log record and described history log record are C3 log recording.
6. a calculation element for the increment bag of IPTV, is characterized in that, comprising:
First acquiring unit, for obtaining current log record, wherein, described current log record comprises increment bag to be calculated and orders the user profile of described increment bag to be calculated;
First extraction unit, for extracting the user ID in described user profile;
Second acquisition unit, for obtaining the history log record comprising described user ID;
Second extraction unit, for extracting the ordering information of history increment bag and described history increment bag from described history log record, wherein, described history increment bag is the increment bag in described history log record; And
Computing unit, for calculating the lot-size of described increment bag to be calculated according to described history increment bag, described increment bag to be calculated and described ordering information.
7. calculation element according to claim 6, is characterized in that, described computing unit comprises:
First judgment sub-unit, for judge described history increment bag with described to be calculated rise in value wrap whether identical;
First determines subelement, for judge in described first judgment sub-unit described history increment bag with described to be calculated rise in value wrap not identical, determine described to be calculated rise in value wrap lot-size add one;
Second judgment sub-unit, for judge in described first judgment sub-unit described history increment bag with described to be calculated rise in value wrap identical, judge whether the state that the described history increment represented by described ordering information is wrapped is preset state, wherein, described preset state represents that described history increment bag is in the state of quitting the subscription of; And
Second determines subelement, for judging that in described second judgment sub-unit the state of the described history increment bag represented by described ordering information is described preset state, determines that the lot-size of described increment bag to be calculated adds one.
8. calculation element according to claim 7, is characterized in that, described first judgment sub-unit comprises:
First acquisition module, for obtaining the mark of described history increment bag and described increment bag to be calculated respectively; And
Comparison module, whether identical with the second mark for comparing the first mark, wherein, and the described first mark being designated the described history increment bag got, the described second mark being designated the increment bag described to be calculated got,
Wherein, when described comparison module compare described first mark and described second identify identical, determine described history increment bag with described to be calculated rise in value wrap identical, when described comparison module compare described first mark and described second mark not identical, determine described history increment wrap with described to be calculated rise in value wrap not identical.
9. calculation element according to claim 7, is characterized in that, described second judgment sub-unit comprises:
Second acquisition module, for obtaining the status indicator in described ordering information; And
Judge module, for judging that whether the status indicator in described ordering information is identical with the status indicator of described preset state,
Wherein, when the status indicator that described judge module is judged in described ordering information is identical with the status indicator of described preset state, determine that the state that the described history increment represented by described ordering information is wrapped is described preset state, when described judge module judges that the status indicator in described ordering information is not identical with the status indicator of described preset state, determine that the state of the described history increment bag represented by described ordering information is not described preset state.
10. calculation element according to claim 6, is characterized in that, described current log record and described history log record are C3 log recording.
CN201410677768.2A 2014-11-21 2014-11-21 The computational methods and device of the increment bag of IPTV Active CN104469421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410677768.2A CN104469421B (en) 2014-11-21 2014-11-21 The computational methods and device of the increment bag of IPTV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410677768.2A CN104469421B (en) 2014-11-21 2014-11-21 The computational methods and device of the increment bag of IPTV

Publications (2)

Publication Number Publication Date
CN104469421A true CN104469421A (en) 2015-03-25
CN104469421B CN104469421B (en) 2018-02-23

Family

ID=52914678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410677768.2A Active CN104469421B (en) 2014-11-21 2014-11-21 The computational methods and device of the increment bag of IPTV

Country Status (1)

Country Link
CN (1) CN104469421B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684468A (en) * 2004-04-15 2005-10-19 华为技术有限公司 Statistic method for multimedium broadcast and group broadcast service user number
CN1972371A (en) * 2006-08-30 2007-05-30 航天新世界(中国)科技有限公司 Value-added application service supporting system for digital TV and its method
CN202050509U (en) * 2011-05-09 2011-11-23 北京中传网联数据服务有限公司 Device for obtaining digital television audience information
CN102291703A (en) * 2010-06-17 2011-12-21 中国联合网络通信集团有限公司 Value added service management platform and value added service charge limiting method and system
CN102665102A (en) * 2012-05-09 2012-09-12 山东泰信电子有限公司 System and method for counting quantity of digital television users
CN103310087A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Service data statistic analysis method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684468A (en) * 2004-04-15 2005-10-19 华为技术有限公司 Statistic method for multimedium broadcast and group broadcast service user number
CN1972371A (en) * 2006-08-30 2007-05-30 航天新世界(中国)科技有限公司 Value-added application service supporting system for digital TV and its method
CN102291703A (en) * 2010-06-17 2011-12-21 中国联合网络通信集团有限公司 Value added service management platform and value added service charge limiting method and system
CN202050509U (en) * 2011-05-09 2011-11-23 北京中传网联数据服务有限公司 Device for obtaining digital television audience information
CN103310087A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Service data statistic analysis method and device
CN102665102A (en) * 2012-05-09 2012-09-12 山东泰信电子有限公司 System and method for counting quantity of digital television users

Also Published As

Publication number Publication date
CN104469421B (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN106897284B (en) Recommendation method and device for electronic books
CN104537115A (en) Method and device for exploring user interests
CN105404631B (en) Picture identification method and device
CN104951544A (en) User data processing method and system and method and system for providing user data
CN111639138A (en) Data processing method, device, equipment and storage medium
CN104580310A (en) Log processing method and server
CN109978580A (en) Object recommendation method, apparatus and computer readable storage medium
CN105871585A (en) Terminal association method and device
CN106933916B (en) JSON character string processing method and device
CN105808583A (en) File type identification method and device
CN104468330A (en) Data processing method and device of distributed information queue
TW201824018A (en) Real-time data processing method and device
CN112751711A (en) Alarm information processing method and device, storage medium and electronic equipment
CN106257507B (en) Risk assessment method and device for user behavior
CN111292108A (en) Order counting method, device, equipment and computer readable storage medium
CN103312540A (en) User service requirement parameter determining method and device
CN104573113A (en) Information processing method and server
CN106919609B (en) Product information pushing method and device
CN105550240B (en) A kind of method and device of recommendation
CN106201818A (en) A kind of application program runs statistical method and the device of time
CN114187037A (en) Information pushing method and device and nonvolatile storage medium
CN104469421A (en) Method and device for calculating value-added packages of internet protocol television
CN104484357A (en) Data processing method and device and access frequency information processing method and device
CN102984076B (en) The recognition methods of flow type of service and device
CN105591842A (en) Method and device for obtaining version of mobile terminal operating system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for calculating value-added packages of internet protocol television

Effective date of registration: 20190531

Granted publication date: 20180223

Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd.

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20180223

PP01 Preservation of patent right