1. A data processing apparatus, comprising: a processor; and a memory for storing a stream program for carrying out stream processing, a batch program for carrying out batch processing, and a stream processing control program for controlling the stream program, the processor being configured to carry out: a first generation procedure of generating, by the stream processing control program, for a time-series first stream data group of stream data out of a time-series stream data sequence, first vector data including elements acquired by collecting respective pieces of stream data of the time-series first stream data group; a second generation procedure of generating, by the stream processing control program, for a time-series second stream data group including, as a head, a piece of intermediate stream data of the time-series first stream data group in the time-series stream data sequence and having the same number of pieces of data as the time-series first stream data group, second vector data including elements acquired by collecting respective pieces of stream data of the time-series second stream data group; and a control procedure of inputting, by the stream processing control program, the first vector data and the second vector data generated respectively by the first generation procedure and the second generation procedure to the batch program to control the batch program to carry out the batch processing.