public class SqlTranslatorImpl2 extends Object implements SqlTranslator
| Constructor and Description |
|---|
SqlTranslatorImpl2(ExprBindingSubstitutor exprBindingSubstitutor,
RdfTermEliminator rdfTermEliminator,
ExprEvaluator exprTransformer,
TypedExprTransformer typedExprTransformer) |
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
asSqlExpr(ExprSqlRewrite rewrite)
Assumes that the rewrite's root expression is of type E_RdfTerm.
|
static SqlExpr |
asSqlExprOld(ExprSqlRewrite rewrite) |
RdfTermEliminator |
getRdfTermEliminator() |
TypedExprTransformer |
getTypedExprTransformer() |
ExprSqlRewrite |
translate(com.hp.hpl.jena.sparql.expr.Expr sparqlExpr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
TODO: There are two use cases:
a) Rewrite an expression completely to SQL -> result is an SqlExpr object
b) Partially rewrite an expression to SQL -> result is an SqlExprRewrite object
I think the interface should return the SqlExprRewrite and
a static helper function then extracts the SqlExpr from it
|
public SqlTranslatorImpl2(ExprBindingSubstitutor exprBindingSubstitutor, RdfTermEliminator rdfTermEliminator, ExprEvaluator exprTransformer, TypedExprTransformer typedExprTransformer)
public RdfTermEliminator getRdfTermEliminator()
public TypedExprTransformer getTypedExprTransformer()
public ExprSqlRewrite translate(com.hp.hpl.jena.sparql.expr.Expr sparqlExpr, Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding, Map<String,TypeToken> typeMap)
translate in interface SqlTranslatorbinding - A set of variable-expr mappings. May be null.public static SqlExpr asSqlExpr(ExprSqlRewrite rewrite)
rewrite - public static SqlExpr asSqlExprOld(ExprSqlRewrite rewrite)
Copyright © 2014. All Rights Reserved.