Patent ID: 8769485

Claim:
A method of generating machine-executable instructions for processing at least one stream of data values, the method comprising: receiving: an indication of at least one first operation to be performed on the at least one stream, the at least one stream is defined by a schema and comprises a plurality of tuples; and an indication of at least one second operation to be performed on the at least one stream; generating a first set of machine-executable instructions to perform the at least one first operation; and generating a second set of machine-executable instructions to perform the at least one second operation, wherein: the first set and the second set are generated based on user input such that, when the user input comprises an indication that the at least one second operation is to execute in a separate thread, the first set and the second set are encoded to, when executed, be separated by a thread boundary and, when the user input does not comprise the indication, the first set and the second set are encoded to be executed in a same thread.