I am attempting to use Duke to match records from one csv to another.First csv and second both has ID,Model,Price,CompanyName,Review,Url
columns. I am trying to match to another csv to find duplicates records.
package no.priv.garshol.duke;
import no.priv.garshol.duke.matchers.PrintMatchListener;
public class RunDuke {
public static void main(String[] argv) throws Exception {
Configuration config =
ConfigLoader
.load("/home/kishore/Duke-master/doc/example-data/presonalCare.xml");
Processor proc = new Processor(config);
proc.addMatchListener(new PrintMatchListener(true, true, true, false, config.getProperties(),
true));
proc.link();
proc.deduplicate();
proc.close();
}
}
Program is working fine with 2 csv.
How can I give the data source as String, mean I want to check on as single record in second data source csv. I dont want to write that single record in csv and check. I want to give string as a data source
proc.link(); proc.deduplicate();
How can I give the data source as String, mean I want to check on as single record in second data source csv. I dont want to write that single record in csv and check. I want to give string as a data source