Source: http://www.patentsencyclopedia.com/app/20110145221
Timestamp: 2018-10-20 19:30:52
Document Index: 106554884

Matched Legal Cases: ['art.\n13', '§119', 'Application No. 10', 'art 204', 'art 301', 'art 301', 'art 301', 'art 301', 'art 302', 'art 301', 'art 401', 'art 301', 'art 302', 'art 301', 'art 302', 'art 301', 'art 301', 'art 301', 'art 301', 'art 301', 'art 301', 'art 301', 'art 302', 'art 302']

APPARATUS AND METHOD FOR PROCESSING A DATA STREAM - Patent application
Patent application title: APPARATUS AND METHOD FOR PROCESSING A DATA STREAM
Inventors: Jeong-Ja Kim (Suwon-Si, KR) Yeong-Ho Jin (Yongin-Si, KR) Ye-Jin Noh (Seongnam-Si, KR)
Patent application number: 20110145221
1. An apparatus for processing a data stream, the apparatus comprising: a determination unit configured to determine a first part and a second part of a query execution plan on queries, the first part comprising a part to be executed in a terminal, the second part comprising a part to be executed in a server; a providing unit configured to provide the terminal with the first part; and a combining unit configured to combine a query execution result with the second part, the query execution result corresponding to the first part and being received from the terminal.
2. The apparatus of claim 1, wherein the determination unit is further configured to: estimate an operation cost, the operation cost being used to execute a query operator included in the query execution plan in the terminal; and determine the first part based on the estimated operation cost.
6. The apparatus of claim 1, wherein the query execution plan comprises: at least one query operator; and an execution order of the query operator.
7. An apparatus for processing a data stream, the apparatus comprising: a receiving unit configured to receive a first part of a query execution plan on queries, the first part being determined as a part to be executed in a terminal; and a partial query execution part configured to: execute the first part of the query execution plan; and transmit a result of the execution to a server.
9. The apparatus of claim 7, wherein the query execution plan comprises: at least one query operator; and an execution order of the query operator.
10. An apparatus for processing a data stream based on a query execution plan for queries, the apparatus comprising: a data sensing terminal configured to execute a part of the query execution plan; and a data stream management server configured to: receive a result of the part of query execution plan from the data sensing terminal; and execute another part of the query execution plan based on the received result.
11. The apparatus of claim 10, wherein the data stream management server is configured to: estimate an operation cost of the data sensing terminal for executing query operators included in the query execution plan; and determine a part of the query execution plan based on the estimated operation cost, the part of the query execution plan to be executed in the data sensing terminal.
12. A method of processing a data stream, the method comprising: at a server, determining a first part and a second part of a query execution plan on queries, the first part comprising a part to be executed in a terminal, the second part comprising a part to be executed in the server; at the server, providing the terminal with the first part; at the terminal: executing the first part; and transmitting a result of the execution to the server; and at the server, combining the result of execution with the second part.
13. The method of claim 13, wherein the determining of the first part and the second part comprises: estimating an operation cost of the terminal for executing query operators included in the query execution plan; and determining the first part based on the estimated operation cost.
[0001] This application claims the benefit under 35 U.S.C. §119(a) of Korean Patent Application No. 10-2009-0123326, filed on Dec. 11, 2009, the disclosure of which is incorporated herein by reference in its entirety for all purposes.
[0003] The following description relates to a Data Stream Management System (DSMS).
[0005] A DataBase Management System (DBMS) is generally used to extract specific information from structured data. However, a new scheme of processing data has been newly developed with the emergence of new technologies such as a Sensor Network, Mobile Sensing and a Real Time Web. The new processing scheme dynamically corresponds to the data of the Sensor Network, the Mobile Sensing and Real Time Web that is continuously being streamed across a network.
[0006] The technology of handling dynamic data is referred to as Data Stream Processing, and also referred to as a Data Stream Management System (DSMS) which is in opposition to DBMS which handles static data.
[0007] Data Stream Processing has been used in particular industrial fields such as network monitoring and logistic monitoring using a radio frequency identification (RFID) or other particular specialized fields. However, recently, as personal terminals having a sensor attached thereto have become available on the open market, users now have a data stream based service. An example of such a data stream based service includes a service of reporting a traffic flow or population density using a mobile position sensor and a health care service using a biosensor attached to a personal terminal.
[0008] As described above, as the user easily receives a data stream based service, a system of processing a significant amount of continuously changing mass data stream suffers from a load of handling a large number of queries requested by users. In particular, a mobile position sensor based service needs to process all queries requested by users while monitoring a data stream on position information sent from a large number of mobiles devices.
[0009] In one general aspect, there is provided an apparatus for processing a data stream, the apparatus comprising: a determination unit configured to determine a first part and a second part of a query execution plan on queries, the first part comprising a part to be executed in a terminal, the second part comprising a part to be executed in a server; a providing unit configured to provide the terminal with the first part; and a combining unit configured to combine a query execution result with the second part, the query execution result corresponding to the first part and being received from the terminal.
[0010] The apparatus may include that the determination unit is further configured to: estimate an operation cost, the operation cost being used to execute a query operator included in the query execution plan in the terminal; and determine the first part based on the estimated operation cost.
[0011] The apparatus may further include a terminal information storage unit configured to store terminal-related information comprising at least one of: identification information of the terminal, a Central Processing Unit (CPU) performance information of the terminal, a memory size of the terminal, and an access speed of the terminal to a network.
[0012] The apparatus may include that the operation cost is estimated based on the terminal-related information.
[0013] The apparatus may include that the combining unit is further configured to combine the query execution result corresponding to the first part with the second part based on the terminal-related information.
[0014] The apparatus may include that the query execution plan comprises: at least one query operator; and an execution order of the query operator.
[0015] In another general aspect, there is provided an apparatus for processing a data stream, the apparatus comprising: a receiving unit configured to receive a first part of a query execution plan on queries, the first part being determined as a part to be executed in a terminal; and a partial query execution part configured to: execute the first part of the query execution plan; and transmit a result of the execution to a server.
[0016] The apparatus may include that the partial query execution unit is further configured to transmit identification information of the terminal, together with the execution result, to the server.
[0017] The apparatus may include that the query execution plan comprises: at least one query operator; and an execution order of the query operator.
[0018] In another general aspect, there is provided an apparatus for processing a data stream based on a query execution plan for queries, the apparatus comprising: a data sensing terminal configured to execute a part of the query execution plan; and a data stream management server configured to: receive a result of the part of query execution plan from the data sensing terminal; and execute another part of the query execution plan based on the received result.
[0019] The apparatus may include that the data stream management server is configured to: estimate an operation cost of the data sensing terminal for executing query operators included in the query execution plan; and determine a part of the query execution plan based on the estimated operation cost, the part of the query execution plan to be executed in the data sensing terminal.
[0020] In another general aspect, there is provided a method of processing a data stream, the method comprising: at a server, determining a first part and a second part of a query execution plan on queries, the first part comprising a part to be executed in a terminal, the second part comprising a part to be executed in the server; at the server, providing the terminal with the first part; at the terminal: executing the first part; and transmitting a result of the execution to the server; and at the server, combining the result of execution with the second part.
[0021] The method may include that the determining of the first part and the second part comprises: estimating an operation cost of the terminal for executing query operators included in the query execution plan; and determining the first part based on the estimated operation cost.
[0022] The method may include that the operation cost is estimated based on at least one of: identification information of the terminal, Central Processing Unit (CPU) performance information of the terminal, a memory size of the terminal, and an access speed of the terminal to a network.
[0023] The method may include that, in the combining, the execution result of the first part is combined with the second part based on an identification information of the terminal.
[0025] FIG. 1 illustrates an example of a data stream processing system.
[0026] FIG. 2 illustrates an example of a data stream processing apparatus.
[0027] FIG. 3 illustrates an example of a query execution plan.
[0028] FIG. 4 illustrates another example of a data stream processing apparatus.
[0029] FIG. 5 illustrates an example of a data stream processing method.
[0031] The following detailed description is provided to assist the reader in gaining a comprehensive understanding of the methods, apparatuses, and/or systems described herein. Accordingly, various changes, modifications, and equivalents of the systems, apparatuses and/or methods described herein will be suggested to those of ordinary skill in the art. The progression of processing steps and/or operations described is an example; however, the sequence of steps and/or operations is not limited to that set forth herein and may be changed as is known in the art, with the exception of steps and/or operations necessarily occurring in a certain order. Also, descriptions of well-known functions and constructions may be omitted for increased clarity and conciseness.
[0032] FIG. 1 illustrates an example of a data stream processing system.
[0033] As shown in FIG. 1, a data stream processing system 100 may include a server 101 and at least one terminal 102. The server 101 and the terminal 102 may exchange information with each other through a network 103.
[0034] The terminal 102 may include a sensor for sensing various types of data. The sensor may be a position sensor, a Global Positioning System (GPS) sensor, a speed sensor, a temperature sensor, etc. For example, the terminal 102 may be a mobile phone, a Personal Digital Assistants (PDA), a MP3-player, a laptop computer, or a health care device that is equipped with a sensor described above. The above list is not intended to be limiting.
[0035] The terminal 102 may transmit sensed data to the server 101. For example, if the terminal 102 is implemented as a mobile phone capable of GPS information, the terminal 102 may transmit GPS information to the server 101 at predetermined intervals.
[0036] The server 101 may be a data stream management server. The server 101 may analyze the data received from the terminal in real time and provides a user with information valuable to the user. For example, in response to a user's providing the server 101 with a question asking how many people are currently positioned in a predetermined area, the server 101 may notify the user of the number of people positioned in the predetermined area by analyzing GPS information received from the terminal 102.
[0037] The server 101 and the terminal 102 may process a query in cooperation with each other. The process of a query represents searching for information requested by a user and providing of the information. For example, information requested by a user may be obtained by filtering data of a large number of terminals 102 through a continuous query registered by the user.
[0038] In the above example, a query may correspond to the process of asking how many people are currently being positioned in a predetermined area, and processing of a query may correspond to the process of notifying the number of people currently being positioned in the corresponding area. The processing of a query may include a process of executing query operators according to a predetermined order.
[0039] That is, individual pieces of data streamed from a plurality of terminals 102 may be input to the server 101, and the server 101 may perform a stream mining and a continuous query process on a large amount of data stream input in real time.
[0040] According to the example of the data stream processing system, the cooperation between the server 101 and the terminal 102 may be implemented by sharing a query execution plan (QEP) between the server 101 and the terminal 102. The query execution plan may include at least one query operator and an execution order of the query operator.
[0041] The method of building a query execution plan is generally known in art. For example, the server 101 receives a query from a user, inspects an error by parsing the input query, and generates an optimum query execution plan in consideration of an operation cost for each query operator.
[0042] According to the example of the data stream processing system, a part of the query execution plan may be executed in the terminal 102 and another part may be executed in the server 101.
[0043] For example, the server 101 may determine a part of the entire query execution plan to be processed in the terminal 102 by analyzing the built query execution plan and may provide the determined part to the terminal 102. The terminal 102 may execute the received part of the entire query execution plan and may transmit a result of the execution to the server 101. The server 101 may execute the remaining part of the query execution plan using the result of execution received from the terminal 102.
[0044] As described above, when the server 101 and the terminal 102 share the query execution plan and each executes a part of the query execution plan, the processing load applied to the server 101 in order to process queries may be reduced.
[0045] FIG. 2 illustrates an example of a data stream processing apparatus that may also be an example of the server 101 shown in FIG. 1.
[0046] As shown in FIG. 2, a data stream processing apparatus 200 may include a building unit 201, a determination unit 202, a providing unit 203, a combining unit 204, an execution unit 205, a query storage unit 206, and a terminal-related information storage unit 207.
[0047] The building unit 201 may build a query execution plan for queries. The queries may be registered by a user and stored in the query storage unit 206. The building unit 201 may perform a parsing or a validation test on the queries stored in the query storage unit 206 and may build an optimum query execution plan. The building of query execution plan represents a process of determining an execution order for query operators. Accordingly, the query execution plan may be represented as at least one query operator and an execution order of the query operator.
[0048] The determination unit 202 may determine a first part of the entire query execution plan to be executed in the terminal 102 and a second part of the entire query execution plan to be executed in the sever 101 by analyzing the built query execution plan. For example, the first part to be executed in the terminal 102 may be defined as a set of some query operators in the query execution plan and the second part to be executed in the server 101 may be defined as a set of remaining query operators in the query execution plan except for the first part.
[0049] The part of the entire query execution plan to be assigned to the terminal 102 may be determined in consideration of a computing power of the terminal 102. For example, the determination may be performed taking into consideration information about the performance of a Central Processing Unit (CPU) of the terminal 102, information about the memory size of the terminal 102, and information about access speed of the terminal 102 to a network that are stored in the terminal-related information storage unit 207. A detailed description thereof will be made later.
[0050] The providing unit 203 may provide the terminal 102 with the first part determined in the determination unit 202. For example, the proving unit 203 may provide the terminal 102 with a set of query operators corresponding to the first part.
[0051] The combining part 204 may receive a result of query execution corresponding to the first part included in the entire query execution plan from the terminal 102. The combining unit 204 may combine the received execution result with the second part. The combining unit 204 may combine the received execution result with the second part based on identification information of the terminal that is stored in the terminal-related information storage unit 207.
[0052] The execution unit 205 may execute the second part of the entire query execution plan. When the first part is executed in the terminal 102 and then combined with the second part, if the execution unit 205 may execute the second part, the entire query execution plan may be executed.
[0053] FIG. 3 illustrates an example of a query execution plan.
[0054] As shown in FIG. 3, {circle around (a)}, {circle around (b)}, {circle around (c)}, {circle around (d)}, and {circle around (e)} represent query operators, such as a "select," "project," "join," and "union," and an arrow represents an execution order of the query operators.
[0055] A query execution plan 300 may be built by the building unit 201 and the query execution plan 300 may be built differently depending on the type of query, the terminal 102, and the type of data stream received from the terminal 102. For example, if a query is processed in different terminals, a different query execution plan may be built by each terminal even though the same query is processed.
[0056] Referring to FIG. 3, a method of determining a first part 301 in the determination unit 202 is described. For convenience, it may be presumed in one example that the query execution plan 300 is built to process a data stream received from at least one terminal 102.
[0057] The determination unit 202 may estimate an operation cost desired to execute a query operator in the terminal 102. For example, the estimated operation cost may include a first operation cost 310 desired when the terminal 102 only executes the operator {circle around (a)}, a second operation cost 320 desired when the terminal 102 executes operators {circle around (a)} and {circle around (b)}, a third operation cost 330 desired when the terminal 102 executes operators {circle around (a)}, {circle around (b)}, and {circle around (c)}, a fourth operation cost 340 desired when the terminal 102 executes operators {circle around (a)}, {circle around (b)}, {circle around (c)}, and {circle around (d)} and a fifth operation cost 350 desired when the terminal 102 executes operators {circle around (a)}, {circle around (b)}, {circle around (c)}, {circle around (d)}, and {circle around (e)}.
[0058] The determination unit 202 may determine the first part 301 by comparing the estimated operation cost with a threshold value. The threshold value may correspond to a limit value of the computing power of the terminal 102. For example, if the threshold value lies between the second operation cost 320 and the third operation cost 330, the limit value of the computing power of the terminal 102 may be set for when operators {circle around (a)} and {circle around (b)} are executed. In one example, the determination unit 202 may determine the operators {circle around (a)} and {circle around (b)} as the first part 301 of the entire query execution plan 300. In addition, the determination unit 202 may determine the remaining part of the entire query execution plan 300 except for the first part 301 as the second part 302.
[0059] The operation cost may be estimated based on CPU performance information of the terminal 102, information about a memory size of the terminal 102, and information about an access speed of the terminal 102 to a network. The information about the terminal 102 may be transmitted from the terminal 102 to the server 101, or may be input by a user of the server 101 with reference to a device catalog of the terminal 102.
[0060] As described above, as the query execution plan 300 may be built differently based on a data stream and the performance of a terminal which differs from terminal to terminal, the first part 301 of the query execution plan 300 may differ from terminal to terminal.
[0061] FIG. 4 illustrates another example of a data stream processing apparatus that may be also an example of the terminal 102 shown in FIG. 1.
[0062] As shown FIG. 4, a data stream processing apparatus 400 may include a receiving unit 401 and a partial query execution unit 402.
[0063] The receiving unit 401 may receive a first part that is included in the entire query execution plan and is determined as a part to be executed in the terminal. For example, the receiving part 401 may receive the operators {circle around (a)} and {circle around (b)} shown in FIG. 3 or an execution instruction for executing the query operators {circle around (a)} and {circle around (b)}.
[0064] The partial query execution unit 402 may execute the first part of the entire query execution plan and may transmit a result of the execution to the server. For example, the receiving unit 401 may execute the operators {circle around (a)} and {circle around (b)} included in the entire query execution plan 300 and transmit a result of the execution to the server.
[0065] The partial query execution unit 402 may transmit the execution result to the server 101 together with identification information of the terminal 102. The identification information of the terminal 102 transmitted together with the execution result may serve as a criterion that may be used when determining a terminal from which the data corresponding to the execution result of the partial query execution unit 402 is streamed.
[0066] According to one example, the data stream processing apparatus 400 may further include a front-end processor to remove errors from sensed data and maintain a raw data stream at a predetermined level.
[0067] FIG. 5 illustrates an example of a data stream processing method.
[0068] As shown in FIG. 5, in operation 501, the terminal 102 may transmit terminal-related information to the server 101. The terminal-related information may include at least one of: identification information of the terminal 102, performance information of a Central Processing Unit (CPU) of the terminal 102, the memory size of the terminal 102, and the access speed of the terminal 102 to a network. The transmitted terminal-related information may be stored in the server 101.
[0069] Alternatively, the terminal 102 may not transmit terminal-related information and a server administrator of the server may directly input terminal-related information with reference to the specification of hardware stated in a catalog of the terminal 102.
[0070] Meanwhile, in operation 502, the server 101 may build a query execution plan for registered queries. The query execution plan may include at least one query operator and an execution order of the query operator. The query execution plan may be built differently depending on the type of query, the type of terminal, and the type of data stream received from a terminal.
[0071] In operation 503, the server 101 may determine a part of the query execution plan to be executed in the terminal 102 and a part of the query execution plan to be executed in the server 101. For example, the determination unit 202 may determine the first part 301 and the second part 302 of the query execution plan 300. The first part 301 and the second part 302 may be determined by comparing a threshold value with an operation cost that is estimated based on performance information, such as a CPU performance of the terminal, a memory size of the terminal, and an access speed of the terminal to a network, among the stored terminal-related information.
[0072] In operation 504, the server 101 may transmit to the terminal 102 the first part 301 to be executed by the terminal 102. For example, the providing unit 203 may provide the terminal 101 with a query operator corresponding to the first part 301, or provide the terminal 101 with an execution instruction allowing the terminal 102 to execute a query operator corresponding to the first part 301.
[0073] In operation 505, the terminal, having received the first part 301, may execute a query operator corresponding to the first part 301. For example, the partial query execution unit 402 may execute some part of the entire query execution plan.
[0074] In operation 506, the terminal 102 may transmit an execution result on the first part 301 to the server 101. For example, the terminal 102 may execute query operators {circle around (a)} and {circle around (b)} and transmit a result of execution to the server. In addition, the terminal 102 may transmit its own identification information together with the result of execution.
[0075] In operation 505, the server 101, having received the query execution result corresponding to the first part 301, may combine the execution result with the second part 302. In one example, the server 101 may determine a terminal, from which the execution result is generated, based on identification information of the terminal 102 of the stored terminal-related information.
[0076] In operation 508, in response to the execution result transmitted from the terminal 102, the server 101 may execute the second part 302 corresponding to the remaining part of the entire query execution plan 300. In operation 509, the server 101 may transmit a result of execution of the entire query execution plan 300 to the terminal 102.
[0077] The processes, functions, methods and/or software described above may be recorded, stored, or fixed in one or more computer-readable storage media that includes program instructions to be implemented by a computer to cause a processor to execute or perform the program instructions. The media may also include, alone or in combination with the program instructions, data files, data structures, and the like. The media and program instructions may be those specially designed and constructed, or they may be of the kind well-known and available to those having skill in the computer software arts. Examples of computer-readable media include magnetic media, such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks and DVDs; magneto-optical media, such as optical disks; and hardware devices that are specially configured to store and perform program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, and the like. Examples of program instructions include machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The described hardware devices may be configured to act as one or more software modules in order to perform the operations and methods described above, or vice versa. In addition, a computer-readable storage medium may be distributed among computer systems connected through a network and computer-readable codes or program instructions may be stored and executed in a decentralized manner.
[0078] A number of examples have been described above. Nevertheless, it will be understood that various modifications may be made. For example, suitable results may be achieved if the described techniques are performed in a different order and/or if components in a described system, architecture, device, or circuit are combined in a different manner and/or replaced or supplemented by other components or their equivalents. Accordingly, other implementations are within the scope of the following claims.
2008-12-18 Method and system for data processing with database update for the same
2013-02-28 Apparatus and method for providing advertising service in portable terminal
2011-05-19 Apparatus and method for processing a data stream