Package org.openrdf.sail.rdbms.algebra

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


      filter.column(alias, "value");
    }
  }

  private void append(LongURIColumn uri, SqlExprBuilder filter) {
    ColumnVar var = uri.getRdbmsVar();
    String alias = getLongURIAlias(var);
    filter.column(alias, "value");
  }
View Full Code Here


  private void append(TrueValue expr, SqlExprBuilder filter) {
    filter.appendBoolean(true);
  }

  private void append(URIColumn uri, SqlExprBuilder filter) {
    ColumnVar var = uri.getRdbmsVar();
    String alias = getURIAlias(var);
    filter.column(alias, "value");
  }
View Full Code Here

      List<String> names = union.getSelectVarNames();
      List<ColumnVar> vars = union.appendVars(new ArrayList<ColumnVar>());
      SqlQueryBuilder subquery = query.subquery();
      for (FromItem item : union.getUnion()) {
        for (int i = 0, n = names.size(); i < n; i++) {
          ColumnVar var = item.getVar(names.get(i));
          SqlExprBuilder select = subquery.select();
          if (var == null) {
            select.appendNull();
          } else {
            select.column(var.getAlias(), var.getColumn());
          }
          select.as(vars.get(i).getColumn());
        }
        from(subquery, item);
        subquery = subquery.union();
View Full Code Here

  {
    if (hashes == null || hashes.getName() == null) {
      super.meet(node);
    }
    else {
      ColumnVar var = node.getRdbmsVar();
      String alias = "h" + getDBName(var);
      String tableName = hashes.getName();
      join(var, alias, tableName, false);
    }
  }
View Full Code Here

  @Override
  public void meet(BNodeColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "b" + getDBName(var);
    String tableName = bnodes.getName();
    join(var, alias, tableName);
  }
View Full Code Here

  @Override
  public void meet(DatatypeColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "d" + getDBName(var);
    String tableName = literals.getDatatypeTable().getName();
    join(var, alias, tableName);
  }
View Full Code Here

  @Override
  public void meet(DateTimeColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "t" + getDBName(var);
    String tableName = literals.getDateTimeTable().getName();
    join(var, alias, tableName);
  }
View Full Code Here

 
  @Override
  public void meet(LabelColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "l" + getDBName(var);
    String tableName = literals.getLabelTable().getName();
    join(var, alias, tableName);
  }
View Full Code Here

  @Override
  public void meet(LongLabelColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "ll" + getDBName(var);
    String tableName = literals.getLongLabelTable().getName();
    join(var, alias, tableName);
  }
View Full Code Here

  @Override
  public void meet(LanguageColumn node)
    throws RuntimeException
  {
    ColumnVar var = node.getRdbmsVar();
    String alias = "g" + getDBName(var);
    String tableName = literals.getLanguageTable().getName();
    join(var, alias, tableName);
  }
View Full Code Here

TOP

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

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.