Package org.openrdf.sail.rdbms.algebra

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


  @Override
  public void meet(LanguageColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null) {
      return;
    }
    if (!var.getTypes().isLanguages()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here


  @Override
  public void meet(NumericColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null) {
      return;
    }
    if (!var.getTypes().isNumeric()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(LongURIColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null) {
      return;
    }
    if (!var.getTypes().isLong() || !var.getTypes().isURIs()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(URIColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null) {
      return;
    }
    if (!var.getTypes().isURIs()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  {
    replaceVar(node);
  }

  private ColumnVar replaceVar(ValueColumnBase node) {
    ColumnVar var = null;
    if (var == null) {
      var = parent.getVar(node.getVarName());
    }
    if (var == null && gparent != parent) {
      var = gparent.getVarForChildren(node.getVarName());
    }
    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

  {
    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

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.