A storage medium recorded with a stream data processing control program executed by a stream data processing apparatus for receiving data added with time information in time series, and processing the data with a registered query therein,
- the stream data processing apparatus storing therein control management information including a content of control over the stream data processing apparatus and a control code corresponding to the content of the control,
- the stream data processing control program including the steps of:
- creating a window in which the data is stored in a case where the data is processed by the query;
- creating data including the control code based on the control management information in a case where the data is received;
- determining whether or not the data stored in the window includes the control code;
- and
- controlling the stream data processing apparatus based on the control code included in the data stored in the window in a case where the data stored in the window includes the control code.