Use findOrInsert method to allow importers to handle resolve criteria
The Import framework allows people to specify a resolve key to find existing records where data should be placed. Now that the findOrInsert method exists, extend the Import framework to take advantage by supporting resolve criteria.
@jtnelson Hi! I would like to work on this ticket. Could you please guide me on this?
https://github.com/cinchapi/concourse/blob/develop/concourse-import/src/main/java/com/cinchapi/concourse/importer/DelimitedLineImporter.java
- In the
importFileandimportStringmethods change thekeyparameter toresolveCriteria - In the
importFileandimportStringmethods, add some logic to callfindOrInsertinstead ofinsertif theresolveCriteriavariable is not null
@jtnelson The prototype of findOrInsert takes two parameters -
- Criteria criteria
- String json
Shall I change String resolveKey to Criteria resolveCriteria in importFile and importString methods' definitions?
keep the param as a string...there is a findOrInsert method that takes a String criteria/ccl
I am getting this error while building - https://gist.github.com/iamutkarshtiwari/087cde4d0712213367e37ca7421fd73a
oh my bad! i guided you wrong here, i'll ping you offline about a different approach for this one
@jtnelson Any updates with this issue?