Examples of attributes2()


Examples of de.fuberlin.wiwiss.d2rq.algebra.Join.attributes2()

    Join join1 = keys.get(0);
    Join join2 = keys.get(1);
    if (!filter.matches(join1.table1()) || !filter.matches(join1.table2()) ||
        !filter.matchesAll(join1.attributes1()) || !filter.matchesAll(join1.attributes2()) ||
        !filter.matches(join2.table1()) || !filter.matches(join2.table2()) ||
        !filter.matchesAll(join2.attributes1()) || !filter.matchesAll(join2.attributes2())) {
      log.info("Skipping link table " + linkTableName);
      return;
    }
    log.info("Generating d2rq:PropertyBridge instance for table " + linkTableName.qualifiedName());
    RelationName table1 = this.schema.getCorrectCapitalization(join1.table2());
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Join.attributes2()

    assertEquals(1, joins.size());
    Join join = (Join) joins.iterator().next();
    assertEquals(Arrays.asList(new Attribute[]{bar_col1, bar_col2}),
        join.attributes1());
    assertEquals(Arrays.asList(new Attribute[]{foo_col1, foo_col2}),
        join.attributes2());
    assertEquals(foo_col1, join.equalAttribute(bar_col1));
  }
 
  public void testParseJoinTwoConditionsOnDifferentTables() {
    Set<Join> joins = SQL.parseJoins(Arrays.asList(new String[]{
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Join.attributes2()

  public void testParseJoinOneCondition() {
    Set<Join> joins = SQL.parseJoins(Collections.singleton("foo.col1 = bar.col2"));
    assertEquals(1, joins.size());
    Join join = (Join) joins.iterator().next();
    assertEquals(Collections.singletonList(bar_col2), join.attributes1());
    assertEquals(Collections.singletonList(foo_col1), join.attributes2());
  }
 
  public void testParseJoinTwoConditionsOnSameTables() {
    Set<Join> joins = SQL.parseJoins(Arrays.asList(new String[]{
        "foo.col1 = bar.col1", "foo.col2 = bar.col2"}));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.