304.5. StreamList の使用
*Camel 2.18* 以降、プロデューサーはイテレーターを使用してクエリーの出力をストリーミングする outputType=StreamList をサポートします。これにより、Splitter EIP が各行を一度に処理し、必要に応じてデータベースからデータをロードできるストリーミング方式でデータを処理できます。
from("direct:withSplitModel") .to("sql:select * from projects order by id?outputType=StreamList&outputClass=org.apache.camel.component.sql.ProjectModel") .to("log:stream") .split(body()).streaming() .to("log:row") .to("mock:result") .end();