Package org.openrdf.sail.rdbms.algebra

Examples of org.openrdf.sail.rdbms.algebra.IdColumn


    }
    if (var == null) {
      node.replaceWith(new SqlNull());
    }
    else if (var.isImplied() && node.getParentNode() instanceof SqlIsNull) {
      node.replaceWith(new IdColumn(var.getAlias(), "subj"));
    }
    else {
      node.setRdbmsVar(var);
    }
    return var;
View Full Code Here


  }

  private FromItem valueJoin(String alias, String tableName, ColumnVar using, boolean left) {
    JoinItem j = new JoinItem(alias, tableName);
    j.setLeft(left);
    j.addFilter(new SqlEq(new IdColumn(alias), new RefIdColumn(using)));
    return j;
  }
View Full Code Here

    Map<String, ColumnVar> vars = new HashMap<String, ColumnVar>(4);
    for (ColumnVar var : new ColumnVar[] { s, p, o, c }) {
      from.addVar(var);
      Value value = var.getValue();
      if (vars.containsKey(var.getName())) {
        IdColumn existing = new IdColumn(vars.get(var.getName()));
        from.addFilter(new SqlEq(new IdColumn(var), existing));
      }
      else if (value != null && !var.isImplied()) {
        try {
          NumberValue vc = new NumberValue(vf.getInternalId(value));
          from.addFilter(new SqlEq(new RefIdColumn(var), vc));
View Full Code Here

    names.retainAll(lvars.keySet());
    for (String name : names) {
      ColumnVar l = lvars.get(name);
      ColumnVar r = rvars.get(name);
      if (!l.isImplied() && !r.isImplied()) {
        IdColumn rid = new IdColumn(r);
        SqlExpr filter = eq(rid, new IdColumn(l));
        if (r.isNullable()) {
          filter = or(isNull(rid), filter);
        }
        right.addFilter(filter);
      }
View Full Code Here

    }
    if (var == null) {
      node.replaceWith(new SqlNull());
    }
    else if (var.isImplied() && node.getParentNode() instanceof SqlIsNull) {
      node.replaceWith(new IdColumn(var.getAlias(), "subj"));
    }
    else {
      node.setRdbmsVar(var);
    }
    return var;
View Full Code Here

  }

  private FromItem valueJoin(String alias, String tableName, ColumnVar using, boolean left) {
    JoinItem j = new JoinItem(alias, tableName);
    j.setLeft(left);
    j.addFilter(new SqlEq(new IdColumn(alias), new RefIdColumn(using)));
    return j;
  }
View Full Code Here

    Map<String, ColumnVar> vars = new HashMap<String, ColumnVar>(4);
    for (ColumnVar var : new ColumnVar[] { s, p, o, c }) {
      from.addVar(var);
      Value value = var.getValue();
      if (vars.containsKey(var.getName())) {
        IdColumn existing = new IdColumn(vars.get(var.getName()));
        from.addFilter(new SqlEq(new IdColumn(var), existing));
      }
      else if (value != null && !var.isImplied()) {
        try {
          NumberValue vc = new NumberValue(vf.getInternalId(value));
          from.addFilter(new SqlEq(new RefIdColumn(var), vc));
View Full Code Here

    names.retainAll(lvars.keySet());
    for (String name : names) {
      ColumnVar l = lvars.get(name);
      ColumnVar r = rvars.get(name);
      if (!l.isImplied() && !r.isImplied()) {
        IdColumn rid = new IdColumn(r);
        SqlExpr filter = eq(rid, new IdColumn(l));
        if (r.isNullable()) {
          filter = or(isNull(rid), filter);
        }
        right.addFilter(filter);
      }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.algebra.IdColumn

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.