Package de.fuberlin.wiwiss.d2rq.algebra

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


        SQL.findColumnsInExpression("FUNC('mustnot.match', foo.col1, 'must.not.match')"));
  }
 
  public void testReplaceColumnsInExpressionWithAliasMap() {
    Alias alias = new Alias(new RelationName(null, "foo"), new RelationName(null, "bar"));
    AliasMap fooAsBar = new AliasMap(Collections.singleton(alias));
    assertEquals("bar.col1",
        SQL.replaceColumnsInExpression("foo.col1", fooAsBar));
    assertEquals("LEN(bar.col1) > 0",
        SQL.replaceColumnsInExpression("LEN(foo.col1) > 0", fooAsBar));
    assertEquals("baz.col1",
View Full Code Here


        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$Alias

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.