Package de.fuberlin.wiwiss.d2rq.algebra

Examples of de.fuberlin.wiwiss.d2rq.algebra.AliasMap


        SQL.replaceColumnsInExpression("ofoo.col1", fooAsBar));
  }
 
  public void testReplaceColumnsWithSchemaInExpressionWithAliasMap() {
    Alias alias = new Alias(new RelationName("schema", "foo"), new RelationName("schema", "bar"));
    AliasMap fooAsBar = new AliasMap(Collections.singleton(alias));
    assertEquals("schema.bar.col1",
        SQL.replaceColumnsInExpression("schema.foo.col1", fooAsBar));
  }
View Full Code Here


  }

  public void testAliasesInRefersToClassMapAreRenamed() {
    TripleRelation relation = (TripleRelation) this.managerBridge.toTripleRelations().iterator().next();
    assertEquals(
        new AliasMap(Arrays.asList(new Alias[]{
            SQL.parseAlias("employees AS e"),
            SQL.parseAlias("employees AS m")})),
        relation.baseRelation().aliases());
  }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.algebra.AliasMap

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.