Definition of a problem as understood .
Let's say your file contains
ID,Name,Age
1,Jim,20
2,Tim,30
3,Kim,40
As you said, the line can be added / updated, so the file becomes
ID,Name,Age
1,Jim,20
2,Tim,35
3,Kim,40
4,Zim,30
, / 2 sql- 1 , sql.
- [, ] , ID - , - hash [ , hazelcast].
Batch Framework . [ , ], ID . .
If (ID present)
—found different create an update sql
In case ID not present in in-memory hash,create an insert sql and insert the hashvalue
, spring -batch hazelcast.
http://www.hazelcast.com/
http://static.springframework.org/spring-batch/
, .