Patent ID: 8447744

Claim:
A method comprising: receiving, by a computer system, a first query configured for processing events received via one or more event streams; and compiling, by the computer system, the first query by retrieving metadata pertaining to an extensible object from information stored by a data cartridge for the extensible object, and generating, based on the metadata, executable instructions for executing the first query, the executable instructions including a call-out instruction to a function whose implementation is included in the information stored by the data cartridge for the extensible object; wherein the first query includes a particular link definition identifying the extensible object and a source of metadata for the extensible object; wherein compiling the first query further comprises determining that the first query includes the particular link definition; wherein compiling the first query further comprises identifying the data cartridge based upon the particular link definition in response to determining that the first query includes the particular link definition; receiving a second query; determining that the second query excludes link definitions; in response to determining that the second query excludes link definitions, determining that a complex type specified in the second query is a native data type that is not defined in the data cartridge; and compiling the second query based on the native data type.