Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.InMemoryLinkDatabase


public class InMemoryLinkDatabaseTest {
  private LinkDatabase linkdb;

  @Before
  public void setUp() {
    this.linkdb = new InMemoryLinkDatabase();
  }
View Full Code Here


  /**
   * 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;
  }
View Full Code Here

  /**
   * 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;
  }
View Full Code Here

public class InMemoryLinkDatabaseMatchListenerTest
  extends LinkDatabaseMatchListenerTest {

  protected LinkDatabase makeDatabase() {
    return new InMemoryLinkDatabase();
  }
View Full Code Here

*/
public class LinkFileOracle implements Oracle {
  private InMemoryLinkDatabase linkdb;

  public LinkFileOracle(String testfile) throws IOException {
    this.linkdb = new InMemoryLinkDatabase();
    linkdb.setDoInference(true);
    LinkDatabaseUtils.loadTestFile(testfile, linkdb);
  }
View Full Code Here

   */
  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);
  }
View Full Code Here

  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;
View Full Code Here

    throws IOException {
    this.config = config;
    this.population = new GeneticPopulation(config);
    this.generations = 100;
    this.questions = 10;
    this.testdb = new InMemoryLinkDatabase();
    //testdb.setDoInference(true);
    this.scientific = scientific;
    this.threads = 1;
    this.used = new ArrayList();
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.InMemoryLinkDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.