/** * Loads a test file into an in-memory link database. */ public static LinkDatabase loadTestFile(String testfile) throws IOException { LinkDatabase linkdb = new InMemoryLinkDatabase(); loadTestFile(testfile, linkdb); return linkdb; }
/** * Loads a test file into an in-memory link database. * @since 1.2 */ public static LinkDatabase loadTestFile(Reader reader) throws IOException { LinkDatabase linkdb = new InMemoryLinkDatabase(); loadTestFile(reader, linkdb); return linkdb; }
protected LinkDatabase makeDatabase() { return new InMemoryLinkDatabase(); }
public LinkFileOracle(String testfile) throws IOException { this.linkdb = new InMemoryLinkDatabase(); linkdb.setDoInference(true); LinkDatabaseUtils.loadTestFile(testfile, linkdb); }
/** * Creates a test file listener. */ public TestFileListener(String testfile, Configuration config, boolean debug, Processor processor, boolean showmatches, boolean pretty) throws IOException { InMemoryLinkDatabase testdb = new InMemoryLinkDatabase(); //testdb.setDoInference(true); LinkDatabaseUtils.loadTestFile(testfile, testdb); init(testdb, config, debug, processor, showmatches, pretty); }
@Before public void setUp() { this.linkdb = new InMemoryLinkDatabase(); }
public LinkFileListener(String linkfile, Collection<Property> idprops, boolean interactive, String testfile) throws IOException { super(idprops); if (interactive) { this.console = new YesNoConsole(); this.linkdb = new InMemoryLinkDatabase(); if (testfile != null) linkdb = LinkDatabaseUtils.loadTestFile(testfile); } // have to start writing the link file *after* we load the test // file, because they may be the same file... // second param: if there is a test file, we append to the link // file, instead of overwriting this.out = new FileWriter(linkfile, testfile != null); this.writer = new LinkFileWriter(out); // FIXME: this will only work if the two files are the same }
this.generations = 100; this.questions = 10; this.testdb = new InMemoryLinkDatabase();
private void init(LinkDatabase linkdb, Configuration config, boolean debug, Processor processor, boolean showmatches, boolean pretty) { this.golddb = linkdb; this.dukedb = new InMemoryLinkDatabase(); //((InMemoryLinkDatabase) this.dukedb).setDoInference(true); this.idprops = config.getIdentityProperties(); this.props = config.getProperties(); this.debug = debug; this.processor = processor; this.database = processor.getDatabase(); this.linkage = !config.isDeduplicationMode(); this.showmatches = showmatches; this.pretty = pretty; }
/** * Loads a test file into an in-memory link database. * @since 1.2 */ public static LinkDatabase loadTestFile(Reader reader) throws IOException { LinkDatabase linkdb = new InMemoryLinkDatabase(); loadTestFile(reader, linkdb); return linkdb; }
/** * Loads a test file into an in-memory link database. */ public static LinkDatabase loadTestFile(String testfile) throws IOException { LinkDatabase linkdb = new InMemoryLinkDatabase(); loadTestFile(testfile, linkdb); return linkdb; }
public LinkFileOracle(String testfile) throws IOException { this.linkdb = new InMemoryLinkDatabase(); linkdb.setDoInference(true); LinkDatabaseUtils.loadTestFile(testfile, linkdb); }
/** * Creates a test file listener. */ public TestFileListener(String testfile, Configuration config, boolean debug, Processor processor, boolean showmatches, boolean pretty) throws IOException { InMemoryLinkDatabase testdb = new InMemoryLinkDatabase(); testdb.setDoInference(true); LinkDatabaseUtils.loadTestFile(testfile, testdb); init(testdb, config, debug, processor, showmatches, pretty); }
public LinkFileListener(String linkfile, Collection<Property> idprops, boolean interactive, String testfile) throws IOException { super(idprops); if (interactive) { this.console = new YesNoConsole(); this.linkdb = new InMemoryLinkDatabase(); if (testfile != null) linkdb = LinkDatabaseUtils.loadTestFile(testfile); } // have to start writing the link file *after* we load the test // file, because they may be the same file... // second param: if there is a test file, we append to the link // file, instead of overwriting this.out = new FileWriter(linkfile, testfile != null); this.writer = new LinkFileWriter(out); // FIXME: this will only work if the two files are the same }
private void init(LinkDatabase linkdb, Configuration config, boolean debug, Processor processor, boolean showmatches, boolean pretty) { this.golddb = linkdb; this.dukedb = new InMemoryLinkDatabase(); ((InMemoryLinkDatabase) this.dukedb).setDoInference(true); this.idprops = config.getIdentityProperties(); this.props = config.getProperties(); this.debug = debug; this.processor = processor; this.database = processor.getDatabase(); this.linkage = !config.isDeduplicationMode(); this.showmatches = showmatches; this.pretty = pretty; }
this.generations = 100; this.questions = 10; this.testdb = new InMemoryLinkDatabase(); testdb.setDoInference(true); this.scientific = scientific;