Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
springbatch:类似于阅读器的复合项功能_Spring_Spring Batch - Fatal编程技术网

springbatch:类似于阅读器的复合项功能

springbatch:类似于阅读器的复合项功能,spring,spring-batch,Spring,Spring Batch,我需要使用三种不同的查询从数据库表中读取数据。rowmapper将是常见的,但在进入下一步处理记录之前,我有三个查询要从中获取记录。 我不想使用union运算符创建单个查询 我最初考虑使用:MultiResourceItemReader,但我想只有当我们读取多个文件时才能使用它 任何帮助或指点都会有真正的帮助 谢谢, Rahul您必须编写自己的ItemReader。也许这是一个很好的起点谢谢卢卡,我想看看这个。我只是在想,Spring Batch中是否已经存在这样的功能。我发现了这样的答案:我同

我需要使用三种不同的查询从数据库表中读取数据。rowmapper将是常见的,但在进入下一步处理记录之前,我有三个查询要从中获取记录。 我不想使用union运算符创建单个查询

我最初考虑使用:MultiResourceItemReader,但我想只有当我们读取多个文件时才能使用它

任何帮助或指点都会有真正的帮助

谢谢,
Rahul

您必须编写自己的
ItemReader
。也许这是一个很好的起点谢谢卢卡,我想看看这个。我只是在想,Spring Batch中是否已经存在这样的功能。我发现了这样的答案:我同意,他们为处理器和编写器提供了这种类型的功能,为什么不为读者提供呢?你必须编写自己的
ItemReader
。也许这是一个很好的起点谢谢卢卡,我想看看这个。我在想,如果SpringBatch中已经存在这样的功能,我会得到这样的答案:我同意,他们为处理器和编写器提供了这种类型的功能,为什么不为读者提供呢?