CN103744963A - Processing method and device for transforming destination pages - Google Patents

Processing method and device for transforming destination pages Download PDF

Info

Publication number
CN103744963A
CN103744963A CN201410005803.6A CN201410005803A CN103744963A CN 103744963 A CN103744963 A CN 103744963A CN 201410005803 A CN201410005803 A CN 201410005803A CN 103744963 A CN103744963 A CN 103744963A
Authority
CN
China
Prior art keywords
bit
conversion results
target pages
storage data
judging
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
CN201410005803.6A
Other languages
Chinese (zh)
Other versions
CN103744963B (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 CN201410005803.6A priority Critical patent/CN103744963B/en
Publication of CN103744963A publication Critical patent/CN103744963A/en
Application granted granted Critical
Publication of CN103744963B publication Critical patent/CN103744963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a processing method and a processing device for transforming destination pages. The processing method for transforming the destination pages includes: receiving configuration information for the destination pages; monitoring page access and recording transformation results of the destination pages according to the configuration information during the monitoring process; storing the transformation results of the destination pages in bit mode, wherein each bit expresses the transformation result of each destination page. The processing method and the processing device for transforming the destination pages solve the problem that expandability of transformation of the destination pages is low in the prior art, and further achieve effects of improving the expandability and reducing configuration cost of expanding the destination pages.

Description

Disposal route and device that target pages transforms
Technical field
The present invention relates to data processing field, the disposal route and the device that in particular to a kind of target pages, transform.
Background technology
In internet data processing procedure, if the URL(URL(uniform resource locator) of certain page access in certain session, be also referred to as web page address Uniform/Universal Resource Locator, abbreviation URL) meet user configured target pages rule, be about to this session and be made as the session that target pages transforms, follow-uply can determine that whether target pages transforms by inquiring about this session.At present, allow user to configure any number of target pages, such URL access may meet the conversion of a plurality of target pages simultaneously, and pass through Config database as configuration database, the configuration information of the target pages of recording user, and the table that arrives the page by the target of inquiry latitude table DimTargetPage(data warehouse) whether the query aim page transforms, this inquiry latitude table DimTargetPage comprises ten row IsTarget1Accomplished, IsTarget2Accomplished ... IsTarget10Accomplished.
Because target pages rule can not flexible configuration, more than if target pages will being extended to 15, need to change the list structure of rear end, also need Update Table base management system (Microsoft Office Access), the extensibility that causes target pages to transform is lower simultaneously.
The lower problem of extensibility transforming for target pages in correlation technique, not yet proposes effective solution at present.
Summary of the invention
The disposal route and the device that provide a kind of target pages to transform are provided fundamental purpose of the present invention, to solve the lower problem of extensibility that in prior art, target pages transforms.
According to an aspect of the present invention, the disposal route that provides a kind of target pages to transform.
The disposal route transforming according to target pages of the present invention comprises: receive the configuration information to target pages; Monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages; And the conversion results of storing target pages with bit-wise, wherein, a bit represents the conversion results of a target pages.
Further, the data type of storage conversion results is BigInt type.
Further, after the conversion results with bit-wise storage target pages, disposal route also comprises: receive query statement, wherein, whether query statement is used for inquiring about the first object page and transforms, and the first object page is the arbitrary target page in target pages; In judgement storage data, represent that the bit of the first conversion results is 1 or 0, wherein, storage data are that the first conversion results is the conversion results of the first object page with the conversion results of the target pages of bit-wise storage; In the situation that represent that the bit of the first conversion results is 1 in judging storage data, determine that the first object page transforms; And represent that the bit of the first conversion results is 0 in the situation that judge storage in data, determine that the first object page is unconverted.
Further, the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise: the bit that represents the first conversion results from storage extracting data; The bit extracting and 1 is done to logic and operation; And judge whether operation result is true, wherein, judging operation result, is in genuine situation, determines in storage data and represents that the bit of the first conversion results is 1; And judging in the non-genuine situation of operation result, determine in storage data and represent that the bit of the first conversion results is 0.
Further, the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise: from first character string to p position of storage extracting data, wherein, first lowest order for storage data, p position is for representing the bit of the first conversion results, and p is more than 2 natural number; The bit extracting and preset characters string are done to logic and operation, and wherein, the figure place of preset characters string is p, and the bit of preset characters string is comprised of target bit and non-target bit, target bit is the p position of preset characters string, and target bit is 1, and non-target bit is 0; And judge that whether operation result is zero, wherein, judging operation result non-vanishing in the situation that, determine in storage data and represent that the bit of the first conversion results is 1; And in the situation that judging operation result and being zero, determine in storage data and represent that the bit of the first conversion results is 0.
Further, the quantity of the first object page is m, m is more than 2 natural number, the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise: in judgement storage data, represent that the bit of the first conversion results Ri is 1 or 0, wherein, the first conversion results Ri is the conversion results of first object page Wi, i gets 1 successively to m, wherein, in the situation that represent that the bit of the first conversion results Ri is 1 in judging storage data, determine that first object page Wi transforms; And represent that the bit of the first conversion results Ri is 0 in the situation that judge storage in data, determine that first object page Wi is unconverted.
According to a further aspect in the invention, the treating apparatus that provides a kind of target pages to transform, the disposal route that this treating apparatus transforms for any target pages of carrying out foregoing of the present invention and providing.
According to a further aspect in the invention, the treating apparatus that provides a kind of target pages to transform.
The treating apparatus transforming according to target pages of the present invention comprises: the first receiving element, for receiving the configuration information to target pages; Monitoring unit, for monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages; And storage unit, for the conversion results with bit-wise storage target pages, wherein, a bit represents the conversion results of a target pages.
Further, the data type of cell stores conversion results is BigInt type.
Further, treating apparatus also comprises: the second receiving element, and for receiving query statement, wherein, whether query statement is used for inquiring about the first object page and transforms, and the first object page is the arbitrary target page in target pages; Judging unit, for judging that storage data represent that the bit of the first conversion results is 1 or 0, wherein, storage data are that the first conversion results is the conversion results of the first object page with the conversion results of the target pages of bit-wise storage; The first determining unit, for representing that the bit of the first conversion results is 1 in the situation that judge storage data, determines that the first object page transforms; And second determining unit, for representing that the bit of the first conversion results is 0 in the situation that judge storage data, determine that the first object page is unconverted.
Further, judging unit comprises: the first extraction module, for represent the bit of the first conversion results from storage extracting data; The first computing module, for doing logic and operation by the bit extracting and 1; And first judge module, for judging whether operation result is true, wherein, is in genuine situation judging operation result, determines in storage data and represents that the bit of the first conversion results is 1; And judging in the non-genuine situation of operation result, determine in storage data and represent that the bit of the first conversion results is 0.
Further, judging unit comprises: the second extraction module, and for from storage extracting data first character string to p position, wherein, and first lowest order for storage data, p position is for representing the bit of the first conversion results, p is more than 2 natural number; The second computing module, for the bit extracting and preset characters string are done to logic and operation, wherein, the figure place of preset characters string is p, and the bit of preset characters string is comprised of target bit and non-target bit, target bit is the p position of preset characters string, and target bit is 1, and non-target bit is 0; And second judge module, for judging whether operation result is zero, wherein, judging operation result non-vanishing in the situation that, determine in storage data and represent that the bit of the first conversion results is 1; And in the situation that judging operation result and being zero, determine in storage data and represent that the bit of the first conversion results is 0.
Further, the quantity of the first object page is m, m is more than 2 natural number, and judging unit comprises: the 3rd judge module, for judging that storage data represent that the bit of the first conversion results Ri is 1 or 0, wherein, the first conversion results Ri is the conversion results of first object page Wi, and i gets 1 successively to m, wherein, in the situation that represent that the bit of the first conversion results Ri is that 1, the first determining unit determines that first object page Wi transforms in judging storage data; And in the situation that represent that the bit of the first conversion results Ri is that 0, the second determining unit determines that first object page Wi is unconverted in judging storage data.
The present invention adopts the configuration information receiving target pages; Monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages; And the conversion results of storing target pages with bit-wise, wherein, a bit represents the conversion results of a target pages.By the conversion results with bit-wise storage target pages, when the quantity of target pages surpasses in the situation of database storage capacity, structure without change database and storage list, only need in database, increase new memory row, solve the lower problem of extensibility that in prior art, target pages transforms, and then reached the effect that improves extensibility, reduces expansion target pages deployment cost.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram of the treating apparatus of the target pages conversion of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the treating apparatus that target pages transforms according to the preferred embodiment of the invention;
Fig. 3 is according to the process flow diagram of the disposal route of the target pages conversion of the embodiment of the present invention; And
Fig. 4 is the process flow diagram of the disposal route that target pages transforms according to the preferred embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
The treating apparatus that the embodiment of the present invention provides a kind of target pages to transform, below the treating apparatus that transforms of target pages that the embodiment of the present invention is provided do concrete introduction:
Fig. 1 is that as shown in Figure 1, this treating apparatus mainly comprises the first receiving element 10, monitoring unit 20 and storage unit 30 according to the schematic diagram of the treating apparatus of the target pages conversion of the embodiment of the present invention, wherein:
The first receiving element 10 is for receiving the configuration information to target pages, particularly, in embodiments of the present invention, Config database is as configuration database, the configuration information that is used for the target pages of recording user, the first receiving element 10 is mainly from Config database, to receive the configuration information to target pages.
Monitoring unit 20 is for monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages, particularly, the monitoring of 20 pairs of page access of monitoring unit, can adopt that in prior art, any carries out the method for page access monitoring, record to target pages conversion results, also can adopt any method of carrying out target pages conversion statistics and recording in prior art.
Storage unit 30 is for the conversion results with bit-wise storage target pages, wherein, a bit represents the conversion results of a target pages, particularly, the main mode of bit byte stream that adopts of storage unit 30 is stored conversion results, a bit represents the conversion results of a target pages, can represent that target pages transforms with 1, with 0, represents that target pages is unconverted.As shown in table 1 below, in table 1, schematically shown target pages T1A in session sid1, target pages T2A, target pages T3A ..., the conversion results of target pages TnA.
Table 1
SID TnA T3A T2A T1A
Sid1 1 1 0 1
For further improving the extensibility that target pages transforms, and reduce and expand the cost that target pages configures quantity, in embodiments of the present invention, storage unit 30 can adopt stores conversion results with BigInt type, like this, BigInt type has 64 Bit, and the conversion results that can store 64 target pages greatly reduces the cost that expands target pages configuration quantity.If target pages exceeds 64, then add row, just reached like this object of extensibility, do not need to change frequently the structure of database and table.
The treating apparatus that the target pages that the invention process provides transforms, by the conversion results with bit-wise storage target pages, when the quantity of target pages surpasses in the situation of database storage capacity, structure without change database and storage list, only need in database, increase new memory row, solve the lower problem of extensibility that in prior art, target pages transforms, and then reached the effect that improves extensibility, reduces expansion target pages deployment cost.
Fig. 2 is the schematic diagram of the treating apparatus that target pages transforms according to the preferred embodiment of the invention, as shown in Figure 2, in the preferred embodiment, the treating apparatus that target pages transforms also comprises the second receiving element 40, judging unit 50, the first determining unit 60 and the second determining unit 70, wherein:
The second receiving element 40 is for receiving query statement, wherein, whether query statement is used for inquiring about the first object page and transforms, the first object page is the arbitrary target page in target pages,, the first object page can refer to the some target pages in target pages, also can refer to certain the several target pages in target pages, and whether query statement is to have used inquiry this or these target pages to transform.
Judging unit 50 represents that for judging storage data the bit of the first conversion results is 1 or 0, wherein, storage data are the conversion results with the target pages of bit-wise storage, the first conversion results is the conversion results of the first object page, correspondingly, if the first object page refers to the some target pages in target pages, the first conversion results means the conversion results of this target pages; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, and 50 of judging units represent that for judgement storage data respectively the bit of each the first conversion results is 1 or 0.
The first determining unit 60 is for representing that the bit of the first conversion results is 1 in the situation that judge storage data, determine that the first object page transforms, correspondingly, if the first object page refers to the some target pages in target pages, the conversion results of this target pages is the first conversion results, in the situation that represent that the bit of this first conversion results is 1 in judging storage data, determine that this first object page transforms; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, in the situation that represent that the bit of certain the first conversion results A is 1 in often judging storage data, determine that the first object page corresponding with the first conversion results A transforms.
The second determining unit 70 is for representing that the bit of the first conversion results is 0 in the situation that judge storage data, determine that the first object page is unconverted, correspondingly, if the first object page refers to the some target pages in target pages, the conversion results of this target pages is the first conversion results, in the situation that represent that the bit of this first conversion results is 0 in judging storage data, determine that this first object page is unconverted; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, in the situation that represent that the bit of certain the first conversion results A is 0 in often judging storage data, determine that the first object page corresponding with the first conversion results A is unconverted.
The treating apparatus that the target pages of the preferred embodiment of the present invention transforms, the conversion results by direct inquiry with bit-wise storage, only needs the corresponding position of corresponding query aim page conversion results, has reached the effect of raising search efficiency.
The first object page of take below refers to that the some target pages in target pages are example, illustrates the structure building form of judging unit 50:
Particularly, a kind of structure building form of judging unit 50 is: judging unit 50 comprises the first extraction module, the first computing module and the first judge module, wherein, the first extraction module is for representing the bit of the first conversion results from storage extracting data, the first computing module is for doing logic and operation by the bit extracting and 1, the first judge module is used for judging whether operation result is true, wherein, judging operation result, be in genuine situation, determine in storage data and represent that the bit of the first conversion results is 1, judging in the non-genuine situation of operation result, determine in storage data and represent that the bit of the first conversion results is 0.
As shown in table 2 below, suppose that the first object page is session sid1, target pages T6A in session sid2 and session sid3, the conversion results of target pages T6A is being carried out in query script, directly from session sid1, in the target pages conversion results of session sid2 and session sid3, extract the bit of corresponding target pages T6A conversion results, to extract again bit and 1 and do logic and operation, if the bit of target pages T6A conversion results in certain session, with 1 operation result of doing logic and operation be 1, the conversion results bit of determining target pages T6A in this session is 1, otherwise be 0.
Table 2
Figure BDA0000453714550000061
The another kind of structure building form of judging unit 50 is: judging unit 50 comprises the second extraction module, the second computing module and the second judge module, wherein, the second extraction module is used for from first character string to p position of storage extracting data, wherein, first lowest order for storage data, p position is for representing the bit of the first conversion results, and p is more than 2 natural number.The second computing module is for doing logic and operation by the bit extracting and preset characters string, wherein, the figure place of preset characters string is p, and the bit of preset characters string is comprised of target bit and non-target bit, target bit is the p position of preset characters string, and target bit is 1, and non-target bit is 0, that is the numerical value 2 that, preset characters string is binary representation p-1.The second judge module is used for judging whether operation result is zero, wherein, judging operation result non-vanishing in the situation that, determine in storage data and represent that the bit of the first conversion results is 1, in the situation that judging operation result and being zero, determine in storage data and represent that the bit of the first conversion results is 0.
As shown in table 3 below, suppose that the first object page is the target pages T4A in session sid1, session sid2 and session sid3, the conversion results of target pages T4A is being carried out in query script, respectively from the target pages conversion results of session sid1, session sid2 and session sid3, extract corresponding target pages T1A to the bit of target pages T4A conversion results, then will extract bit and preset characters string (2 of binary representation 3) do logic and operation, if the bit extracting in certain session, the operation result of doing logic and operation with preset characters string is not value of zero, determines that the conversion results bit of target pages T4A in this session is 1, otherwise is 0.
Table 3
Figure BDA0000453714550000071
The situation that refers to certain the several target pages in target pages for the first object page, the quantity of supposing the first object page is m, m is more than 2 natural number, judging unit 50 mainly comprises the 3rd judge module, the 3rd judge module represents that for judging storage data the bit of the first conversion results Ri is 1 or 0, wherein, the first conversion results Ri is the conversion results of first object page Wi, i gets 1 successively to m, wherein, in the situation that represent that the bit of the first conversion results Ri is 1 in judging storage data, the first determining unit determines that first object page Wi transforms, in the situation that represent that the bit of the first conversion results Ri is 0 in judging storage data, the second determining unit determines that first object page Wi is unconverted.; the 3rd judge module is for judging that respectively the bit of each the first conversion results is 1 or 0; when judging the bit of certain the first conversion results Ri, be in 1 situation, determine that the first object page Wi that the first conversion results Ri is corresponding transforms, on the contrary unconverted.With this, realize the inquiry whether a plurality of target pages are transformed.
Wherein, the bit that judges certain the first conversion results is 1 or 0 concrete mode, and be that 1 or 0 concrete mode is identical with the bit of single the first conversion results of above-mentioned judgement repeats no more herein.
As shown in table 4 below, suppose that the first object page comprises session sid1, target pages T3A in session sid2 and session sid3, target pages T6A and target pages T7A, the conversion results of target pages is being carried out in query script, judge respectively target pages T3A in each session, the bit of target pages T6A and target pages T7A conversion results is 1 or 0, in table 4, schematically shown from session sid1, in the target pages conversion results of session sid2 and session sid3, extract corresponding target pages T1A to the bit of target pages T7A conversion results, to extract again bit and preset characters string (2 of binary representation 6) do logic and operation, whether the 3rd, the 6th and the 7th that judges operation result be 1 again, judging in corresponding positions is 1 situation, the conversion results bit of determining corresponding target pages in this session is 1, this target pages transforms, otherwise the conversion results bit of corresponding target pages is 0 in this session, this target pages is unconverted.
Table 4
Figure BDA0000453714550000081
The disposal route that the embodiment of the present invention also provides a kind of target pages to transform, the treating apparatus that target pages that this disposal route can provide by embodiment of the present invention foregoing transforms is carried out, below the disposal route that transforms of target pages that the embodiment of the present invention is provided do concrete introduction:
Fig. 3 is the process flow diagram of the disposal route that transforms according to the target pages of the embodiment of the present invention, and as shown in Figure 3, this disposal route mainly comprises the steps that S302 is to step S306:
S302: receive the configuration information to target pages, particularly, in embodiments of the present invention, Config database is as configuration database, the configuration information that is used for the target pages of recording user, reception to configuration information is mainly from Config database, to receive the configuration information to target pages.
S304: monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages, particularly, monitoring to page access, can adopt that in prior art, any carries out the method for page access monitoring, record to target pages conversion results, also can adopt any method of carrying out target pages conversion statistics and recording in prior art.
S306: with the conversion results of bit-wise storage target pages, wherein, a bit represents the conversion results of a target pages, particularly, the main mode of bit byte stream that adopts is stored conversion results, a bit represents the conversion results of a target pages, can represent that target pages transforms with 1, with 0, represents that target pages is unconverted.As shown in Table 1, in table 1, schematically shown target pages T1A in session sid1, target pages T2A, target pages T3A ..., the conversion results of target pages TnA.
For further improving the extensibility that target pages transforms, and reduce and expand the cost that target pages configures quantity, in embodiments of the present invention, can adopt conversion results is stored with BigInt type, like this, BigInt type has 64 Bit, and the conversion results that can store 64 target pages greatly reduces the cost that expands target pages configuration quantity.If target pages exceeds 64, then add row, just reached like this object of extensibility, do not need to change frequently the structure of database and table.
The disposal route that the target pages that the invention process provides transforms, by the conversion results with bit-wise storage target pages, when the quantity of target pages surpasses in the situation of database storage capacity, structure without change database and storage list, only need in database, increase new memory row, solve the lower problem of extensibility that in prior art, target pages transforms, and then reached the effect that improves extensibility, reduces expansion target pages deployment cost.
Fig. 4 is the process flow diagram of the disposal route that target pages transforms according to the preferred embodiment of the invention, and as shown in Figure 4, in the preferred embodiment, disposal route mainly comprises the steps that S402 is to step S414:
S402: receive the configuration information to target pages, particularly, S302 is identical with above-mentioned steps.
S404: monitoring page access, and in monitor procedure according to the conversion results of configuration information record target pages, particularly, S304 is identical with above-mentioned steps.
S406: with the conversion results of bit-wise storage target pages, wherein, a bit represents the conversion results of a target pages, and particularly, S306 is identical with above-mentioned steps.
S408: receive query statement, wherein, whether query statement is used for inquiring about the first object page and transforms, wherein, the first object page is the arbitrary target page in target pages, that is, the first object page can refer to the some target pages in target pages, also can refer to certain the several target pages in target pages, whether query statement is to have used inquiry this or these target pages to transform.
S410: represent that the bit of the first conversion results is 1 or 0 in judgement storage data, wherein, storage data are the conversion results with the target pages of bit-wise storage, the first conversion results is the conversion results of the first object page, correspondingly, if the first object page refers to the some target pages in target pages, the first conversion results means the conversion results of this target pages; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, need to judge respectively in storage data and represent that the bit of each the first conversion results is 1 or 0.
S412: in the situation that represent that the bit of the first conversion results is 1 in judging storage data, determine that the first object page transforms, correspondingly, if the first object page refers to the some target pages in target pages, the conversion results of this target pages is the first conversion results, in the situation that represent that the bit of this first conversion results is 1 in judging storage data, determine that this first object page transforms; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, in the situation that represent that the bit of certain the first conversion results A is 1 in often judging storage data, determine that the first object page corresponding with the first conversion results A transforms.
S414: in the situation that represent that the bit of the first conversion results is 0 in judging storage data, determine that the first object page is unconverted, correspondingly, if the first object page refers to the some target pages in target pages, the conversion results of this target pages is the first conversion results, in the situation that represent that the bit of this first conversion results is 0 in judging storage data, determine that this first object page is unconverted; If the first object page refers to certain the several target pages in target pages, the conversion results of each target pages is all called the first conversion results, in the situation that represent that the bit of certain the first conversion results A is 0 in often judging storage data, determine that the first object page corresponding with the first conversion results A is unconverted.
The disposal route that the target pages of the preferred embodiment of the present invention transforms, the conversion results by direct inquiry with bit-wise storage, only needs the corresponding position of corresponding query aim page conversion results, has reached the effect of raising search efficiency.
The first object page of take below refers to that the some target pages in target pages are example, illustrates the bit that represents the first conversion results in judgement storage data and be 1 or 0 concrete mode:
Particularly, can store in the following way and in data, represent that the bit of the first conversion results is 1 or 0: first, from storage extracting data, represent the bit of the first conversion results; Secondly, the bit extracting and 1 is done to logic and operation; Then, judge whether operation result is true.Wherein, judging operation result, be in genuine situation, determine in storage data and represent that the bit of the first conversion results is 1, judging in the non-genuine situation of operation result, determine in storage data and represent that the bit of the first conversion results is 0.
As above shown in table 2, suppose that the first object page is session sid1, target pages T6A in session sid2 and session sid3, the conversion results of target pages T6A is being carried out in query script, directly from session sid1, in the target pages conversion results of session sid2 and session sid3, extract the bit of corresponding target pages T6A conversion results, to extract again bit and 1 and do logic and operation, if the bit of target pages T6A conversion results in certain session, with 1 operation result of doing logic and operation be 1, the conversion results bit of determining target pages T6A in this session is 1, otherwise be 0.
Can also store in the following way and in data, represent that the bit of the first conversion results is 1 or 0: first, from first character string to p position of storage extracting data, wherein, first lowest order for storage data, p position is for representing the bit of the first conversion results, and p is more than 2 natural number; Secondly, the bit extracting and preset characters string are done to logic and operation, wherein, the figure place of preset characters string is p, and the bit of preset characters string is comprised of target bit and non-target bit, and target bit is the p position of preset characters string, and target bit is 1, non-target bit is 0, that is, and and the numerical value 2 that preset characters string is binary representation p-1; Then, judge whether operation result is zero.Wherein, judging operation result non-vanishing in the situation that, determining in storage data and represent that the bit of the first conversion results is 1, in the situation that judging operation result and being zero, determining in storage data and represent that the bit of the first conversion results is 0.
As above shown in table 3, suppose that the first object page is the target pages T4A in session sid1, session sid2 and session sid3, the conversion results of target pages T4A is being carried out in query script, respectively from the target pages conversion results of session sid1, session sid2 and session sid3, extract corresponding target pages T1A to the bit of target pages T4A conversion results, then will extract bit and preset characters string (2 of binary representation 3) do logic and operation, if the bit extracting in certain session, the operation result of doing logic and operation with preset characters string is not value of zero, determines that the conversion results bit of target pages T4A in this session is 1, otherwise is 0.
The situation that refers to certain the several target pages in target pages for the first object page, the quantity of supposing the first object page is m, m is more than 2 natural number, the bit that represents the first conversion results in judgement storage data is 1 or 0 to be mainly, in judgement storage data, represent that the bit of the first conversion results Ri is 1 or 0, wherein, the first conversion results Ri is the conversion results of first object page Wi, i gets 1 successively to m, wherein, in the situation that represent that the bit of the first conversion results Ri is 1 in judging storage data, determine that first object page Wi transforms, in the situation that represent that the bit of the first conversion results Ri is 0 in judging storage data, determine that first object page Wi is unconverted.That is, the bit that judges respectively each the first conversion results is 1 or 0, when judging the bit of certain the first conversion results Ri, is in 1 situation, determines that the first object page Wi that the first conversion results Ri is corresponding transforms, otherwise unconverted.With this, realize the inquiry whether a plurality of target pages are transformed.
Wherein, the bit that judges certain the first conversion results is 1 or 0 concrete mode, and be that 1 or 0 concrete mode is identical with the bit of single the first conversion results of above-mentioned judgement repeats no more herein.
As above shown in table 4, suppose that the first object page comprises session sid1, target pages T3A in session sid2 and session sid3, target pages T6A and target pages T7A, the conversion results of target pages is being carried out in query script, judge respectively target pages T3A in each session, the bit of target pages T6A and target pages T7A conversion results is 1 or 0, in table 4, schematically shown from session sid1, in the target pages conversion results of session sid2 and session sid3, extract corresponding target pages T1A to the bit of target pages T7A conversion results, to extract again bit and preset characters string (2 of binary representation 6) do logic and operation, whether the 3rd, the 6th and the 7th that judges operation result be 1 again, judging in corresponding positions is 1 situation, the conversion results bit of determining corresponding target pages in this session is 1, this target pages transforms, otherwise the conversion results bit of corresponding target pages is 0 in this session, this target pages is unconverted.
As can be seen from the above description, the present invention has realized and has reduced the object that expands target pages deployment cost, improves extensibility, has reached saving storage space simultaneously, improves the effect of search efficiency.
It should be noted that, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. the disposal route that target pages transforms, is characterized in that, comprising:
The configuration information of reception to target pages;
Monitoring page access, and in monitor procedure according to the conversion results of target pages described in described configuration information record; And
With bit-wise, store the conversion results of described target pages, wherein, a bit represents the conversion results of a described target pages.
2. disposal route according to claim 1, is characterized in that, the data type of storing described conversion results is BigInt type.
3. disposal route according to claim 1, is characterized in that, after storing the conversion results of described target pages with bit-wise, described disposal route also comprises:
Receive query statement, wherein, whether described query statement is used for inquiring about the first object page and transforms, and the described first object page is the arbitrary target page in described target pages;
In judgement storage data, represent that the bit of the first conversion results is 1 or 0, wherein, described storage data are that described the first conversion results is the conversion results of the described first object page with the conversion results of the described target pages of bit-wise storage;
In the situation that represent in judging described storage data that the bit of described the first conversion results is 1, determine that the described first object page transforms; And
In the situation that represent in judging described storage data that the bit of described the first conversion results is 0, determine that the described first object page is unconverted.
4. disposal route according to claim 3, is characterized in that, the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise:
The bit that represents described the first conversion results from described storage extracting data;
The bit extracting and 1 is done to logic and operation; And
Judge whether operation result is true,
Wherein, judging described operation result, be in genuine situation, determine and in described storage data, represent that the bit of described the first conversion results is 1; And
Judging in the non-genuine situation of described operation result, determining and in described storage data, represent that the bit of described the first conversion results is 0.
5. disposal route according to claim 3, is characterized in that, the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise:
From first character string to p position of described storage extracting data, wherein, described first is the lowest order of described storage data, and described p position is for representing the bit of described the first conversion results, and p is more than 2 natural number;
The bit extracting and preset characters string are done to logic and operation, wherein, the figure place of described preset characters string is p, and the bit of described preset characters string is comprised of target bit and non-target bit, described target bit is the p position of described preset characters string, and described target bit is 1, described non-target bit is 0; And
Judge whether operation result is zero,
Wherein, judging described operation result non-vanishing in the situation that, determine and in described storage data, represent that the bit of described the first conversion results is 1; And
In the situation that judging described operation result and being zero, determine and in described storage data, represent that the bit of described the first conversion results is 0.
6. disposal route according to claim 3, is characterized in that, the quantity of the described first object page is m, and m is more than 2 natural number, and the bit that represents the first conversion results in judgement storage data is 1 or 0 to comprise:
Judge and in described storage data, represent that the bit of the first conversion results Ri is 1 or 0, wherein, described the first conversion results Ri is the conversion results of first object page Wi, and i gets 1 successively to m,
Wherein, in the situation that represent in judging described storage data that the bit of described the first conversion results Ri is 1, determine that described first object page Wi transforms; And
In the situation that represent in judging described storage data that the bit of described the first conversion results Ri is 0, determine that described first object page Wi is unconverted.
7. the treating apparatus that target pages transforms, is characterized in that, comprising:
The first receiving element, for receiving the configuration information to target pages;
Monitoring unit, for monitoring page access, and in monitor procedure according to the conversion results of target pages described in described configuration information record; And
Storage unit, for store the conversion results of described target pages with bit-wise, wherein, a bit represents the conversion results of a described target pages.
8. treating apparatus according to claim 7, is characterized in that, the data type of conversion results is BigInt type described in described cell stores.
9. treating apparatus according to claim 7, is characterized in that, described treating apparatus also comprises:
The second receiving element, for receiving query statement, wherein, whether described query statement is used for inquiring about the first object page and transforms, and the described first object page is the arbitrary target page in described target pages;
Judging unit, for judging that storage data represent that the bit of the first conversion results is 1 or 0, wherein, described storage data are that described the first conversion results is the conversion results of the described first object page with the conversion results of the described target pages of bit-wise storage;
The first determining unit, for representing that the bit of described the first conversion results is 1 in the situation that judge described storage data, determines that the described first object page transforms; And
The second determining unit, for representing that the bit of described the first conversion results is 0 in the situation that judge described storage data, determines that the described first object page is unconverted.
10. treating apparatus according to claim 9, is characterized in that, described judging unit comprises:
The first extraction module, for representing the bit of described the first conversion results from described storage extracting data;
The first computing module, for doing logic and operation by the bit extracting and 1; And
The first judge module, for judging whether operation result is true,
Wherein, judging described operation result, be in genuine situation, determine and in described storage data, represent that the bit of described the first conversion results is 1; And
Judging in the non-genuine situation of described operation result, determining and in described storage data, represent that the bit of described the first conversion results is 0.
11. treating apparatus according to claim 9, is characterized in that, described judging unit comprises:
The second extraction module, for from first character string to p position of described storage extracting data, wherein, described first is the lowest order of described storage data, and described p position is for representing the bit of described the first conversion results, and p is more than 2 natural number;
The second computing module, for the bit extracting and preset characters string are done to logic and operation, wherein, the figure place of described preset characters string is p, and the bit of described preset characters string is comprised of target bit and non-target bit, described target bit is the p position of described preset characters string, and described target bit is 1, and described non-target bit is 0; And
The second judge module, for judging whether operation result is zero,
Wherein, judging described operation result non-vanishing in the situation that, determine and in described storage data, represent that the bit of described the first conversion results is 1; And
In the situation that judging described operation result and being zero, determine and in described storage data, represent that the bit of described the first conversion results is 0.
12. treating apparatus according to claim 9, is characterized in that, the quantity of the described first object page is m, and m is more than 2 natural number, and described judging unit comprises:
The 3rd judge module, for judging that described storage data represent that the bit of the first conversion results Ri is 1 or 0, wherein, described the first conversion results Ri is the conversion results of first object page Wi, i gets 1 successively to m,
Wherein, in the situation that represent in judging described storage data that the bit of described the first conversion results Ri is 1, described the first determining unit determines that described first object page Wi transforms; And
In the situation that represent in judging described storage data that the bit of described the first conversion results Ri is 0, described the second determining unit determines that described first object page Wi is unconverted.
CN201410005803.6A 2014-01-06 2014-01-06 The treating method and apparatus of target pages conversion Active CN103744963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410005803.6A CN103744963B (en) 2014-01-06 2014-01-06 The treating method and apparatus of target pages conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410005803.6A CN103744963B (en) 2014-01-06 2014-01-06 The treating method and apparatus of target pages conversion

Publications (2)

Publication Number Publication Date
CN103744963A true CN103744963A (en) 2014-04-23
CN103744963B CN103744963B (en) 2018-05-18

Family

ID=50501981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410005803.6A Active CN103744963B (en) 2014-01-06 2014-01-06 The treating method and apparatus of target pages conversion

Country Status (1)

Country Link
CN (1) CN103744963B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224655A (en) * 2015-09-30 2016-01-06 百度在线网络技术(北京)有限公司 Website transforms the detection method, disposal route and the device that arrange
CN116932838A (en) * 2023-09-13 2023-10-24 浙江寰福科技有限公司 Database-based data query, update and storage method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661437A (en) * 2008-08-28 2010-03-03 国际商业机器公司 By-pass conversion buffer as well as method and device for matching addresses in same
CN101383034B (en) * 2008-09-18 2016-05-18 腾讯科技(深圳)有限公司 The method and system of a kind of advertistics and input
CN102222095B (en) * 2011-06-10 2013-04-17 百度在线网络技术(北京)有限公司 Equipment for converting webpage to be displayed and method thereof
CN102662966B (en) * 2012-03-08 2014-01-01 中国科学院计算机网络信息中心 Method and system for obtaining subject-oriented dynamic page content
CN103067481B (en) * 2012-12-24 2016-10-05 北京奇虎科技有限公司 Data transmission method, equipment and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224655A (en) * 2015-09-30 2016-01-06 百度在线网络技术(北京)有限公司 Website transforms the detection method, disposal route and the device that arrange
CN105224655B (en) * 2015-09-30 2019-03-12 百度在线网络技术(北京)有限公司 Detection method, the treating method and apparatus of website conversion setting
CN116932838A (en) * 2023-09-13 2023-10-24 浙江寰福科技有限公司 Database-based data query, update and storage method and device
CN116932838B (en) * 2023-09-13 2023-11-24 浙江寰福科技有限公司 Database-based data query, update and storage method and device

Also Published As

Publication number Publication date
CN103744963B (en) 2018-05-18

Similar Documents

Publication Publication Date Title
EP3767483A1 (en) Method, device, system, and server for image retrieval, and storage medium
CN111399756B (en) Data storage method, data downloading method and device
US8781980B2 (en) Matching pattern of events with interval conditions
CN104679778A (en) Search result generating method and device
CN107239701B (en) Method and device for identifying malicious website
CN104317749A (en) Information writing method and device
CN105657000A (en) Message transmission method and device
CN103905441A (en) Data acquisition method and device
CN109753424B (en) AB test method and device
CN104598266A (en) Client application service logic updating method and device and equipment
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
CN105681199A (en) Method and device for processing message data in vehicular bus
CN103744963A (en) Processing method and device for transforming destination pages
CN104253754A (en) ACL (access control list) fast matching method and equipment
CN112598514B (en) Cross-chain transaction management method, cross-chain platform and medium based on block chain
CN104424316A (en) Data storage method, data searching method, related device and system
CN103685405B (en) Network service system and the method updating firmware thereof
CN104702508A (en) Method and system for dynamically updating table items
CN115348184B (en) Internet of things data security event prediction method and system
CN116155992A (en) Method and device for subscribing resources
US10445080B2 (en) Methods for adaptive placement of applications and devices thereof
CN107977381B (en) Data configuration method, index management method, related device and computing equipment
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
CN105069064B (en) Acquisition methods and device, the method for pushing and device of vocabulary
CN105141465B (en) Internet of things equipment resource registering method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Processing method and device for transforming destination pages

Effective date of registration: 20190531

Granted publication date: 20180518

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

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

CP02 Change in the address of a patent holder
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.

PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20180518