# US 2017/0293654 A1 · Deferred joining of a stream of tuples

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293654 A1
- Document ID: US20170293654A1
- Status: Published application
- Kind: A1
- Application number: 15/097,276
- Filed: 2016-04-12
- Published: 2017-10-12
- Earliest claimed: 2016-04-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bin Cao; Jessica R. Eidem; Brian R. Muras; Jingdong Sun
- Web page: https://patentgrep.com/patent/US20170293654A1

## CPC

- G06F 16/2456: {Join operations}
- G06F 16/24568: {Data stream processing; Continuous queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed aspects relate to deferred joining of a stream of tuples. The stream of tuples which is to be processed by a plurality of stream operators is received. The stream of tuples may include both a first set of tuples from a first source and a second set of tuples from a second source. For future utilization with respect to a join operation which indicates to join the first and second sets of tuples, a determination is made to establish a group of tuples. A first stream operator of the plurality of stream operators establishes the group of tuples. The group of tuples has both a first subgroup and a second subgroup. A set of stream operators of the plurality of stream operators processes the group of tuples. In response to processing the group of tuples, the join operation is performed.

## Claims

### Claim 1

A computer-implemented method for deferred joining of a stream of tuples, the method comprising:
receiving the stream of tuples to be processed by a plurality of stream operators, wherein the stream of tuples includes both a first set of tuples from a first source and a second set of tuples from a second source;
determining, for future utilization with respect to a join operation which indicates to join the first and second sets of tuples, to establish a group of tuples;
establishing, by a first stream operator of the plurality of stream operators, the group of tuples having both a first subgroup and a second subgroup;
processing, by a set of stream operators of the plurality of stream operators, the group of tuples; and
performing, in response to processing the group of tuples, the join operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein processing, by the set of stream operators of the plurality of stream operators, the group of tuples includes:
processing the first subgroup separate from the second subgroup; and
processing the second subgroup separate from the first subgroup.

### Claim 3 (depends on 1)

The method of claim 1, wherein processing, by the set of stream operators of the plurality of stream operators, the group of tuples includes:
processing the group of tuples to establish a processed group of tuples having both a first subset of the first set of tuples and a second subset of the second set of tuples.

### Claim 4 (depends on 3)

The method of claim 3, wherein the processed group of tuples includes fewer tuples than the group of tuples.

### Claim 5 (depends on 3)

The method of claim 3, wherein performing the join operation includes:
performing the join operation on the processed group of tuples.

### Claim 6 (depends on 1)

The method of claim 1, wherein performing the join operation in response to processing the group of tuples uses fewer computing resources than processing the group of tuples in response to performing the join operation.

### Claim 7 (depends on 1)

The method of claim 1, further comprising detecting a triggering event, wherein performing the join operation occurs in response to detecting the triggering event.

### Claim 8 (depends on 7)

The method of claim 7, wherein detecting the triggering event includes a selection from a group consisting of at least one of: a sink, or a second stream operator which accesses data of both the first and second subgroups.

### Claim 9 (depends on 1)

The method of claim 1, wherein the set of stream operators meet a threshold join autonomy criterion.

### Claim 10 (depends on 1)

The method of claim 1, wherein the set of stream operators have zero individual stream operators which operates on both the first and second subgroups.

### Claim 11 (depends on 1)

The method of claim 1, wherein:
determining to establish the group of tuples includes determining to establish the group of tuples based on the first and second sources;
the first subgroup includes the first set of tuples; and
the second subgroup includes the second set of tuples.

### Claim 12 (depends on 1)

The method of claim 1, wherein:
determining to establish the group of tuples includes determining to establish the group of tuples based on an expected join-rate;
the first subgroup includes a first portion of the first set of tuples and a first portion of the second set of tuples; and
the second subgroup includes a second portion of the first set of tuples and a second portion of the second set of tuples.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
allocating, based on an expected join-rate, a set of computing resources to the first and second subgroups.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
ordering, based on a sort criterion, at least one of the first subgroup or the second subgroup.

### Claim 15 (depends on 1)

The method of claim 1, wherein the deferred joining of the stream of tuples occurs in at least one of: a windowed-join environment, or a windowless-join environment.

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
providing, for utilization to develop a streaming application in an integrated development environment, an indication of the deferred joining.

### Claim 17 (depends on 1)

The method of claim 1, wherein the receiving, the determining, the establishing, the processing, and the performing each occur in an automated fashion without user intervention.

### Claim 18

A system for deferred joining of a stream of tuples, the system comprising:
a memory having a set of computer readable computer instructions, and
a processor for executing the set of computer readable instructions, the set of computer readable instructions including:
receiving the stream of tuples to be processed by a plurality of stream operators, wherein the stream of tuples includes both a first set of tuples from a first source and a second set of tuples from a second source;
determining, for future utilization with respect to a join operation which indicates to join the first and second sets of tuples, to establish a group of tuples;
establishing, by a first stream operator of the plurality of stream operators, the group of tuples having both a first subgroup and a second subgroup;
processing, by a set of stream operators of the plurality of stream operators, the group of tuples; and
performing, in response to processing the group of tuples, the join operation.

### Claim 19

A computer program product for deferred joining of a stream of tuples, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising:
receiving the stream of tuples to be processed by a plurality of stream operators, wherein the stream of tuples includes both a first set of tuples from a first source and a second set of tuples from a second source;
determining, for future utilization with respect to a join operation which indicates to join the first and second sets of tuples, to establish a group of tuples;
establishing, by a first stream operator of the plurality of stream operators, the group of tuples having both a first subgroup and a second subgroup;
processing, by a set of stream operators of the plurality of stream operators, the group of tuples; and
performing, in response to processing the group of tuples, the join operation.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein at least one of:
the program instructions are stored in a computer readable storage medium in a data processing system, and wherein the program instructions were downloaded over a network from a remote data processing system; or
the program instructions are stored in a computer readable storage medium in a server data processing system, and wherein the program instructions are downloaded over a network to a remote data processing system for use in a computer readable storage medium with the remote data processing system.
