| Modifier and Type | Method and Description |
|---|---|
SqlExpr |
SqlExprEvaluator1.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_PassThrough.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator2.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_Concat.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_SqlRewrite.eval(List<SqlExpr> args) |
abstract SqlExpr |
SqlExprEvaluator1.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_LogicalNot.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_ParseInt.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_Compare.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_LogicalOr.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_LogicalAnd.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_Equals.eval(SqlExpr a,
SqlExpr b) |
abstract SqlExpr |
SqlExprEvaluator2.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_Arithmetic.eval(SqlExpr a,
SqlExpr b) |
| Modifier and Type | Method and Description |
|---|---|
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Compare.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Compare.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Equals.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Equals.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
| Modifier and Type | Method and Description |
|---|---|
static S_ColumnRef |
SqlExprEvaluator_Compare.asColumn(SqlExpr expr) |
static S_ColumnRef |
SqlExprEvaluator_Equals.asColumn(SqlExpr expr) |
static S_Constant |
SqlExprEvaluator_Compare.asConstant(SqlExpr expr) |
static S_Constant |
SqlExprEvaluator_Equals.asConstant(SqlExpr expr) |
abstract SqlExpr |
SqlExprEvaluator1.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_LogicalNot.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_ParseInt.eval(SqlExpr a) |
SqlExpr |
SqlExprEvaluator_Compare.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_LogicalOr.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_LogicalAnd.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_Equals.eval(SqlExpr a,
SqlExpr b) |
abstract SqlExpr |
SqlExprEvaluator2.eval(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprEvaluator_Arithmetic.eval(SqlExpr a,
SqlExpr b) |
static TypeToken |
SqlExprEvaluator_Compare.getCommonDataype(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static TypeToken |
SqlExprEvaluator_Equals.getCommonDataype(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Compare.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<? extends SqlExpr,? extends SqlExpr> |
SqlExprEvaluator_Equals.resolveCast(SqlExpr left,
SqlExpr right,
TypeSystem system) |
static org.aksw.commons.util.Pair<S_ColumnRef,S_Constant> |
SqlExprEvaluator_Compare.tryMatch(SqlExpr left,
SqlExpr right) |
static org.aksw.commons.util.Pair<S_ColumnRef,S_Constant> |
SqlExprEvaluator_Equals.tryMatch(SqlExpr left,
SqlExpr right) |
static org.aksw.commons.util.Pair<S_ColumnRef,S_Constant> |
SqlExprEvaluator_Compare.tryMatchDirected(SqlExpr left,
SqlExpr right) |
static org.aksw.commons.util.Pair<S_ColumnRef,S_Constant> |
SqlExprEvaluator_Equals.tryMatchDirected(SqlExpr left,
SqlExpr right) |
| Modifier and Type | Method and Description |
|---|---|
SqlExpr |
SqlExprEvaluator1.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_PassThrough.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator2.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_Concat.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator.eval(List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluator_SqlRewrite.eval(List<SqlExpr> args) |
| Constructor and Description |
|---|
SqlExprEvaluator_Compare(TypeSystem datatypeSystem,
org.aksw.commons.util.factory.Factory2<SqlExpr> exprFactory) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SqlExprConstant |
interface |
SqlExprFunction |
| Modifier and Type | Class and Description |
|---|---|
class |
S_Add |
class |
S_Agg
Class for holding aggregator functions
|
class |
S_Case |
class |
S_Cast |
class |
S_ColumnRef |
class |
S_Concat |
class |
S_Constant |
class |
S_Else
This is a hack (or at least trick)
to treat CASE ...
|
class |
S_Equals |
class |
S_Function |
class |
S_GreaterThan |
class |
S_GreaterThanOrEqual |
class |
S_IsNotNull |
class |
S_Jena
A wrapper for a Jena expression.
|
class |
S_LessThan |
class |
S_LessThanOrEqual |
class |
S_LogicalAnd |
class |
S_LogicalNot |
class |
S_LogicalOr |
class |
S_Method |
class |
S_Multiply |
class |
S_Serialize
TODO: Serialization expressions should not be part of the SqlExpr hierarchy! Instead, this should be a completely separate process.
|
class |
S_Substract |
class |
S_When |
class |
SqlExpr0 |
class |
SqlExpr1 |
class |
SqlExpr2 |
class |
SqlExprBase |
class |
SqlExprConstantBase |
class |
SqlExprFunctionBase |
class |
SqlExprN |
class |
SqlExprVarBase |
| Modifier and Type | Field and Description |
|---|---|
protected SqlExpr |
SqlExpr2.left |
protected SqlExpr |
SqlExpr2.right |
| Modifier and Type | Field and Description |
|---|---|
protected List<SqlExpr> |
SqlExprN.args |
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
S_Method.createOrEvaluate(SqlMethodCandidate candidate,
List<SqlExpr> args) |
SqlExpr |
S_AggCount.getExpr() |
SqlExpr |
SqlAggregator.getExpr() |
SqlExpr |
SqlExpr1.getExpr() |
SqlExpr |
SqlExpr2.getLeft() |
SqlExpr |
SqlExpr2.getRight() |
SqlExpr |
ExprSqlBridge.getSqlExpr() |
| Modifier and Type | Method and Description |
|---|---|
static List<SqlExpr> |
S_Agg.exprToList(SqlExpr expr) |
List<SqlExpr> |
SqlExpr2.getArgs() |
List<SqlExpr> |
SqlExprN.getArgs() |
List<SqlExpr> |
SqlExpr1.getArgs() |
List<SqlExpr> |
SqlExpr0.getArgs() |
List<SqlExpr> |
SqlExpr.getArgs() |
List<SqlExpr> |
S_Method.getArgs() |
List<SqlExpr> |
S_Jena.getArgs() |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlExprBase._getColumnsMentioned(Set<SqlExprColumn> result,
SqlExpr expr) |
S_IsNotNull |
S_IsNotNull.copy(SqlExpr arg) |
S_AggCount |
S_AggCount.copy(SqlExpr arg) |
SqlAggregator |
SqlAggregator.copy(SqlExpr arg) |
S_Else |
S_Else.copy(SqlExpr arg) |
S_LogicalNot |
S_LogicalNot.copy(SqlExpr arg) |
abstract SqlExprFunction |
SqlExpr1.copy(SqlExpr arg) |
S_Agg |
S_Agg.copy(SqlExpr arg) |
S_GreaterThanOrEqual |
S_GreaterThanOrEqual.copy(SqlExpr left,
SqlExpr right) |
abstract SqlExpr2 |
SqlExpr2.copy(SqlExpr left,
SqlExpr right) |
S_GreaterThan |
S_GreaterThan.copy(SqlExpr left,
SqlExpr right) |
S_LogicalAnd |
S_LogicalAnd.copy(SqlExpr left,
SqlExpr right) |
S_Equals |
S_Equals.copy(SqlExpr left,
SqlExpr right) |
S_Add |
S_Add.copy(SqlExpr left,
SqlExpr right) |
S_LessThanOrEqual |
S_LessThanOrEqual.copy(SqlExpr left,
SqlExpr right) |
S_Cast |
S_Cast.copy(SqlExpr expr,
SqlExpr typeExpr) |
S_LogicalOr |
S_LogicalOr.copy(SqlExpr left,
SqlExpr right) |
S_Multiply |
S_Multiply.copy(SqlExpr left,
SqlExpr right) |
SqlExpr2 |
S_When.copy(SqlExpr left,
SqlExpr right) |
S_LessThan |
S_LessThan.copy(SqlExpr left,
SqlExpr right) |
S_Substract |
S_Substract.copy(SqlExpr left,
SqlExpr right) |
static S_Concat |
S_Concat.create(SqlExpr... args) |
static S_IsNotNull |
S_IsNotNull.create(SqlExpr a) |
static S_Else |
S_Else.create(SqlExpr a) |
static S_LogicalNot |
S_LogicalNot.create(SqlExpr a) |
static S_GreaterThanOrEqual |
S_GreaterThanOrEqual.create(SqlExpr a,
SqlExpr b) |
static S_GreaterThan |
S_GreaterThan.create(SqlExpr a,
SqlExpr b) |
static S_LogicalAnd |
S_LogicalAnd.create(SqlExpr a,
SqlExpr b) |
static S_Equals |
S_Equals.create(SqlExpr a,
SqlExpr b) |
static S_Add |
S_Add.create(SqlExpr a,
SqlExpr b) |
static S_LessThanOrEqual |
S_LessThanOrEqual.create(SqlExpr a,
SqlExpr b) |
static S_LogicalOr |
S_LogicalOr.create(SqlExpr a,
SqlExpr b) |
static S_Multiply |
S_Multiply.create(SqlExpr a,
SqlExpr b) |
static S_LessThan |
S_LessThan.create(SqlExpr a,
SqlExpr b) |
static S_Substract |
S_Substract.create(SqlExpr a,
SqlExpr b) |
static S_Case |
S_Case.create(TypeToken type,
List<S_When> whens,
SqlExpr elseExpr) |
static S_Cast |
S_Cast.create(TypeToken type,
SqlExpr expr) |
static S_Function |
S_Function.create(TypeToken typeName,
String functionName,
SqlExpr... args) |
static List<SqlExpr> |
S_Agg.exprToList(SqlExpr expr) |
static Set<SqlExprColumn> |
SqlExprBase.getColumnsMentioned(SqlExpr expr) |
T |
SqlExprVisitor.visit(SqlExpr expr)
Fallback method for all expressions not captured by this visitor
|
| Modifier and Type | Method and Description |
|---|---|
SqlExprFunction |
SqlExpr2.copy(List<SqlExpr> args) |
S_Function |
S_Function.copy(List<SqlExpr> args) |
SqlExprFunction |
SqlExprFunction.copy(List<SqlExpr> args) |
SqlExprFunction |
S_Case.copy(List<SqlExpr> args) |
SqlExprFunction |
SqlExpr1.copy(List<SqlExpr> args) |
S_Concat |
S_Concat.copy(List<SqlExpr> args) |
S_Method |
S_Method.copy(List<SqlExpr> args)
Not: arguments are not sanity checked by this method.
|
S_Serialize |
S_Serialize.copy(List<SqlExpr> args) |
S_Agg |
S_Agg.copy(List<SqlExpr> args) |
static S_Concat |
S_Concat.create(List<SqlExpr> args) |
static S_Method |
S_Method.create(SqlMethodCandidate candidate,
List<SqlExpr> args) |
static S_Case |
S_Case.create(TypeToken type,
List<SqlExpr> cases) |
static S_Function |
S_Function.create(TypeToken typeName,
String functionName,
List<SqlExpr> args) |
static S_Method |
S_Method.create(XMethod method,
List<SqlExpr> args) |
static SqlExpr |
S_Method.createOrEvaluate(SqlMethodCandidate candidate,
List<SqlExpr> args) |
| Constructor and Description |
|---|
ExprSqlBridge(SqlExpr sqlExpr) |
S_Add(SqlExpr left,
SqlExpr right) |
S_Cast(TypeToken type,
SqlExpr expr,
SqlExpr typeExpr) |
S_Else(SqlExpr arg) |
S_Equals(SqlExpr left,
SqlExpr right) |
S_GreaterThan(SqlExpr left,
SqlExpr right) |
S_GreaterThanOrEqual(SqlExpr left,
SqlExpr right) |
S_IsNotNull(SqlExpr arg) |
S_LessThan(SqlExpr left,
SqlExpr right) |
S_LessThanOrEqual(SqlExpr left,
SqlExpr right) |
S_LogicalAnd(SqlExpr left,
SqlExpr right) |
S_LogicalNot(SqlExpr arg) |
S_LogicalOr(SqlExpr left,
SqlExpr right) |
S_Multiply(SqlExpr left,
SqlExpr right) |
S_Substract(SqlExpr left,
SqlExpr right) |
S_When(TypeToken type,
SqlExpr left,
SqlExpr right) |
SqlExpr1(TypeToken datatype,
String name,
SqlExpr expr) |
SqlExpr2(TypeToken datatype,
String name,
SqlExpr left,
SqlExpr right) |
| Constructor and Description |
|---|
S_Case(TypeToken datatype,
List<SqlExpr> exprs) |
S_Concat(List<SqlExpr> args) |
S_Function(TypeToken typeName,
String functionName,
List<SqlExpr> args) |
S_Method(XMethod method,
List<SqlExpr> args) |
S_Serialize(TypeToken datatype,
String name,
List<SqlExpr> exprs,
SqlFunctionSerializer serializer) |
SqlExprN(TypeToken datatype,
String name,
List<SqlExpr> exprs) |
| Modifier and Type | Method and Description |
|---|---|
SqlExpr |
SqlSortCondition.getExpression() |
| Modifier and Type | Method and Description |
|---|---|
List<SqlExpr> |
SqlOpJoin.getConditions() |
List<SqlExpr> |
SqlOpSelectBlock.getConditions() |
List<SqlExpr> |
SqlOpFilter.getExprs() |
List<SqlExpr> |
SqlOpSelectBlock.getGroupByExprs() |
List<SqlExpr> |
SqlOpGroupBy.getGroupByExprs() |
Map<String,SqlExpr> |
Projection.getNameToExpr() |
| Modifier and Type | Method and Description |
|---|---|
void |
Projection.put(String name,
SqlExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
static SqlOpJoin |
SqlOpJoin.create(com.hp.hpl.jena.sdb.core.JoinType joinType,
SqlOp a,
SqlOp b,
List<SqlExpr> conditions) |
static SqlOpFilter |
SqlOpFilter.create(SqlOp op,
List<SqlExpr> exprs) |
static SqlOpGroupBy |
SqlOpGroupBy.create(SqlOp subOp,
List<SqlExpr> groupByExprs,
List<SqlExprAggregator> aggregators) |
static SqlOp |
SqlOpFilter.createIfNeeded(SqlOp op,
List<SqlExpr> exprs) |
static Map<String,TypeToken> |
SqlOpExtend.extractExtendedTypeMap(Map<String,SqlExpr> nameToExpr) |
static Map<String,TypeToken> |
SqlOpExtend.extractExtendedTypeMap(Map<String,SqlExpr> nameToExpr,
Map<String,TypeToken> baseTypeMap) |
static SqlOp |
SqlOpSelectBlock.restrict(com.hp.hpl.jena.sdb.core.Generator generator,
SqlOp sqlOp,
List<SqlExpr> exprs) |
| Constructor and Description |
|---|
SqlSortCondition(SqlExpr expr,
int direction) |
| Constructor and Description |
|---|
Projection(List<String> names,
Map<String,SqlExpr> nameToExpr) |
Projection(Map<String,SqlExpr> nameToExpr) |
SqlOpFilter(Schema schema,
SqlOp subOp,
List<SqlExpr> exprs) |
SqlOpGroupBy(Schema schema,
SqlOp subOp,
List<SqlExpr> groupByExprs,
List<SqlExprAggregator> aggregators) |
SqlOpJoin(Schema schema,
com.hp.hpl.jena.sdb.core.JoinType joinType,
SqlOp left,
SqlOp right,
List<SqlExpr> conditions) |
| Modifier and Type | Field and Description |
|---|---|
static ExprAccessor<SqlExpr> |
SqlExprUtils.accessor |
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
SqlExprUtils.andifyBalanced(Iterable<SqlExpr> exprs) |
static SqlExpr |
MappingOpsImpl.createSqlCondition(com.hp.hpl.jena.sparql.expr.Expr condition,
VarDefinition varDef,
Map<String,TypeToken> typeMap,
SqlTranslator sqlTranslator) |
static SqlExpr |
MappingOpsImpl.createSqlConditionOld(com.hp.hpl.jena.sparql.expr.Expr condition,
VarDefinition varDef,
Map<String,TypeToken> typeMap,
SqlTranslator sqlTranslator)
Deprecated.
|
SqlExpr |
ExprEvaluatorSql.eval(SqlExpr expr,
Map<String,XClass> typeMap)
Some important fact:
We only derive datatypes during evaluation.
|
SqlExpr |
ExprSqlRewrite.getSqlExpr(int index) |
static SqlExpr |
SqlExprUtils.orifyBalanced(Iterable<SqlExpr> exprs) |
SqlExpr |
SqlExprSubstitutor.substitute(SqlExpr expr)
Deprecated.
|
static SqlExpr |
SqlExprSubstitutor2.substitute(SqlExpr expr,
Factory1<SqlExpr> postTraversalTransformer) |
static SqlExpr |
SqlExprUtils.toCnfExpr(SqlExpr expr) |
static SqlExpr |
SqlOpSelectBlockCollectorImpl.transformToAliasedReferences(SqlExpr expr,
Projection projection) |
SqlExpr |
SqlTranslatorImpl.translate(com.hp.hpl.jena.sparql.expr.ExprFunction fn,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
Deprecated.
TODO How to pass the type error to SPARQL functions,
such as logical AND/OR/NOT, so they get a chance to deal with it?
Using the SPARQL level evaluator is not really possible anymore, because we already translated to the SQL level.
|
SqlExpr |
SqlTranslatorImpl.translate(com.hp.hpl.jena.sparql.expr.ExprVar expr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
Deprecated.
|
SqlExpr |
SqlTranslatorImpl.translate(com.hp.hpl.jena.sparql.expr.NodeValue expr)
Deprecated.
|
static SqlExpr |
MappingOpsImpl.translateSql(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<String,TypeToken> typeMap,
SqlTranslator sqlTranslator) |
static SqlExpr |
MappingOpsImpl.translateSql(RestrictedExpr restExpr,
Map<String,TypeToken> typeMap,
SqlTranslator sqlTranslator) |
SqlExpr |
SqlTranslatorImpl.translateX(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
Deprecated.
|
SqlExpr |
SqlExprSubstitutor.trySubstitute(S_ColumnRef sqlExpr)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<SqlExpr> |
SqlOpSelectBlockCollectorImpl.adjustConditions(List<SqlExpr> exprs,
Projection projection) |
static List<SqlExpr> |
SqlExprUtils.cnfAsList(Collection<? extends Iterable<SqlExpr>> nf) |
List<SqlExpr> |
ExprSqlRewrite.getSqlExprs() |
static List<SqlExpr> |
SqlExprSubstitutor2.substitute(Collection<SqlExpr> exprs,
Factory1<SqlExpr> postTraversalTransformer) |
static List<Collection<SqlExpr>> |
SqlExprSubstitutor2.substitute(List<Collection<SqlExpr>> nf,
Factory1<SqlExpr> postTraversalTransformer) |
List<SqlExpr> |
SqlExprSubstitutor.substitute(List<SqlExpr> exprs)
Deprecated.
|
static List<Collection<SqlExpr>> |
SqlExprUtils.toCnf(Iterable<SqlExpr> exprs) |
static List<Collection<SqlExpr>> |
SqlExprUtils.toCnf(SqlExpr expr) |
static List<SqlExpr> |
SqlExprUtils.toDnf(Collection<? extends Iterable<SqlExpr>> clauses) |
List<SqlExpr> |
ExprEvaluatorSql.transform(Iterable<SqlExpr> exprs,
Map<String,XClass> typeMap) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlExprUtils.collectColumnReferences(SqlExpr expr,
Collection<S_ColumnRef> result) |
SqlExpr |
ExprEvaluatorSql.eval(SqlExpr expr,
Map<String,XClass> typeMap)
Some important fact:
We only derive datatypes during evaluation.
|
static Set<S_ColumnRef> |
SqlExprUtils.getColumnReferences(SqlExpr expr) |
String |
SqlExprSerializerDefault.serialize(SqlExpr expr) |
SqlExpr |
SqlExprSubstitutor.substitute(SqlExpr expr)
Deprecated.
|
static SqlExpr |
SqlExprSubstitutor2.substitute(SqlExpr expr,
Factory1<SqlExpr> postTraversalTransformer) |
static List<Collection<SqlExpr>> |
SqlExprUtils.toCnf(SqlExpr expr) |
static SqlExpr |
SqlExprUtils.toCnfExpr(SqlExpr expr) |
static SqlExpr |
SqlOpSelectBlockCollectorImpl.transformToAliasedReferences(SqlExpr expr,
Projection projection) |
| Modifier and Type | Method and Description |
|---|---|
static List<SqlExpr> |
SqlOpSelectBlockCollectorImpl.adjustConditions(List<SqlExpr> exprs,
Projection projection) |
static SqlExpr |
SqlExprUtils.andifyBalanced(Iterable<SqlExpr> exprs) |
static List<SqlExpr> |
SqlExprUtils.cnfAsList(Collection<? extends Iterable<SqlExpr>> nf) |
static boolean |
SqlExprUtils.containsFalse(Iterable<SqlExpr> exprs,
boolean includeTypeErrors) |
static boolean |
SqlTranslatorImpl.containsTypeError(Iterable<SqlExpr> exprs)
Deprecated.
|
static SqlExprSubstitutor |
SqlExprSubstitutor.create(Map<String,SqlExpr> map)
Deprecated.
|
org.aksw.sparqlify.core.algorithms.SelfJoinResult |
SqlOptimizerImpl.eliminateSelfJoins(List<SqlOp> ops,
List<Collection<SqlExpr>> cnf) |
static List<TypeToken> |
SqlTranslatorImpl.getTypes(Collection<SqlExpr> sqlExprs)
Deprecated.
|
static boolean |
ExprEvaluatorSql.isConstantsOnly(Iterable<SqlExpr> exprs) |
static boolean |
SqlTranslatorImpl.isConstantsOnlySql(Iterable<SqlExpr> exprs)
Deprecated.
|
Collection<RegisteredFunction> |
FunctionRegistrySql.lookup(String functionName,
Iterable<SqlExpr> sqlArgs) |
static void |
SqlExprUtils.optimizeEqualityInPlace(List<Collection<SqlExpr>> cnf) |
static void |
SqlExprUtils.optimizeNotNullInPlace(List<Collection<SqlExpr>> cnf) |
static SqlExpr |
SqlExprUtils.orifyBalanced(Iterable<SqlExpr> exprs) |
String |
SqlOpSerializerImpl.projection(List<String> columnNames,
Map<String,SqlExpr> map) |
List<String> |
SqlExprSerializerDefault.serializeArgs(List<SqlExpr> exprs) |
static List<SqlExpr> |
SqlExprSubstitutor2.substitute(Collection<SqlExpr> exprs,
Factory1<SqlExpr> postTraversalTransformer) |
static List<SqlExpr> |
SqlExprSubstitutor2.substitute(Collection<SqlExpr> exprs,
Factory1<SqlExpr> postTraversalTransformer) |
static List<Collection<SqlExpr>> |
SqlExprSubstitutor2.substitute(List<Collection<SqlExpr>> nf,
Factory1<SqlExpr> postTraversalTransformer) |
static List<Collection<SqlExpr>> |
SqlExprSubstitutor2.substitute(List<Collection<SqlExpr>> nf,
Factory1<SqlExpr> postTraversalTransformer) |
List<SqlExpr> |
SqlExprSubstitutor.substitute(List<SqlExpr> exprs)
Deprecated.
|
static SqlExpr |
SqlExprSubstitutor2.substitute(SqlExpr expr,
Factory1<SqlExpr> postTraversalTransformer) |
static void |
SqlOptimizerImpl.substituteProjectionInPlace(Projection proj,
Factory1<SqlExpr> transformer) |
static List<Collection<SqlExpr>> |
SqlExprUtils.toCnf(Iterable<SqlExpr> exprs) |
static List<SqlExpr> |
SqlExprUtils.toDnf(Collection<? extends Iterable<SqlExpr>> clauses) |
List<SqlExpr> |
ExprEvaluatorSql.transform(Iterable<SqlExpr> exprs,
Map<String,XClass> typeMap) |
static List<SqlSortCondition> |
SqlOptimizerImpl.transformSortConditions(List<SqlSortCondition> sortConditions,
Factory1<SqlExpr> transformer) |
| Constructor and Description |
|---|
SqlExprSubstitutor(Map<String,? extends SqlExpr> map)
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryEqual |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryGreaterThan |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryGreaterThanOrEqual |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryLessThan |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryLessThanOrEqual |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryNumericMinus |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryNumericMultiply |
static org.aksw.commons.util.factory.Factory2<SqlExpr> |
SqlExprFactoryUtils.factoryNumericPlus |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SqlExpr |
SqlExprEvaluatorConstantsOnly._eval(List<SqlExpr> args) |
SqlExpr |
ExprSubstitutor.create(List<SqlExpr> expr)
In the extreme case, this method may base return different results
based on the given arguments and their datatypes.
|
SqlExpr |
ExprSubstitutorSql.create(List<SqlExpr> expr)
The result of this method depends on the given arguments and the
registered SQL functions.
|
static SqlExpr |
TypedExprTransformerImpl.createSqlExpr(CandidateMethod<TypeToken> candidate,
List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluatorConstantsOnly.eval(List<SqlExpr> args) |
SqlExpr |
TypedExprTransformerImpl.processFunction(String functionId,
List<SqlExpr> newArgs) |
SqlExpr |
CoercionSparqlFunction.transform(SqlExpr expr) |
SqlExpr |
TypedExprTransformerImpl.translate(com.hp.hpl.jena.sparql.expr.ExprFunction fn,
Map<String,TypeToken> typeMap)
This function requires a type-constructor free expression as input:
That is an expression that can be translated directly to SQL -
i.e.
|
SqlExpr |
TypedExprTransformer.translate(com.hp.hpl.jena.sparql.expr.Expr sparqlExpr,
Map<String,TypeToken> typeMap)
Deprecated.
|
SqlExpr |
TypedExprTransformerImpl.translate(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<String,TypeToken> typeMap) |
SqlExpr |
TypedExprTransformerImpl.translate(com.hp.hpl.jena.sparql.expr.ExprVar expr,
Map<String,TypeToken> typeMap) |
SqlExpr |
TypedExprTransformerImpl.translate(com.hp.hpl.jena.sparql.expr.NodeValue expr) |
| Modifier and Type | Method and Description |
|---|---|
Factory1<SqlExpr> |
TypeSystemImpl.cast(TypeToken fromTypeUri,
TypeToken toTypeUri) |
Factory1<SqlExpr> |
TypeSystem.cast(TypeToken fromTypeUri,
TypeToken toTypeUri)
Return a factory for creating cast-expressions between the given datatypes
Null if no such cast exists.
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.sparql.expr.ExprVar |
TypedExprTransformerImpl.allocateVariable(SqlExpr sqlExpr,
org.aksw.sparqlify.core.cast.RewriteState state) |
String |
SqlExprSerializerSystemImpl.serialize(SqlExpr expr) |
SqlExpr |
CoercionSparqlFunction.transform(SqlExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SqlExpr |
SqlExprEvaluatorConstantsOnly._eval(List<SqlExpr> args) |
static boolean |
TypedExprTransformerImpl.containsTypeError(Iterable<SqlExpr> exprs) |
SqlExpr |
ExprSubstitutor.create(List<SqlExpr> expr)
In the extreme case, this method may base return different results
based on the given arguments and their datatypes.
|
SqlExpr |
ExprSubstitutorSql.create(List<SqlExpr> expr)
The result of this method depends on the given arguments and the
registered SQL functions.
|
static SqlExpr |
TypedExprTransformerImpl.createSqlExpr(CandidateMethod<TypeToken> candidate,
List<SqlExpr> args) |
SqlExpr |
SqlExprEvaluatorConstantsOnly.eval(List<SqlExpr> args) |
static List<TypeToken> |
TypedExprTransformerImpl.getTypes(Collection<SqlExpr> sqlExprs) |
SqlExpr |
TypedExprTransformerImpl.processFunction(String functionId,
List<SqlExpr> newArgs) |
| Modifier and Type | Field and Description |
|---|---|
static SqlExpr |
SqlExprOps.a |
static SqlExpr |
SqlExprOps.b |
static SqlExpr |
SqlExprOps.c |
static SqlExpr |
SqlExprOps.e |
static SqlExpr |
SqlExprOps.l |
static SqlExpr |
SqlExprOps.n |
static SqlExpr |
SqlExprOps.O |
static SqlExpr[][] |
SqlExprOps.tableLogicalAnd |
static SqlExpr[] |
SqlExprOps.tableLogicalNot |
static SqlExpr[][] |
SqlExprOps.tableLogicalOr |
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
SqlExprOps.interpretResult(SqlExpr tmp,
SqlExpr x,
SqlExpr y) |
static SqlExpr |
SqlExprOps.logicalAnd(SqlExpr x,
SqlExpr y)
0 1 e
0 0 0 0
1 0 1 e
e 0 e e
|
static SqlExpr |
SqlExprOps.logicalNot(SqlExpr x) |
static SqlExpr |
SqlExprOps.logicalOr(SqlExpr x,
SqlExpr y) |
| Modifier and Type | Method and Description |
|---|---|
static int |
SqlExprOps.exprToTruthValue(SqlExpr a) |
static SqlExpr |
SqlExprOps.interpretResult(SqlExpr tmp,
SqlExpr x,
SqlExpr y) |
static SqlExpr |
SqlExprOps.logicalAnd(SqlExpr x,
SqlExpr y)
0 1 e
0 0 0 0
1 0 1 e
e 0 e e
|
static SqlExpr |
SqlExprOps.logicalNot(SqlExpr x) |
static SqlExpr |
SqlExprOps.logicalOr(SqlExpr x,
SqlExpr y) |
| Modifier and Type | Method and Description |
|---|---|
String |
SqlExprSerializer.serialize(SqlExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
static List<SqlExprColumn> |
SqlExprUtils.getColumnsMentioned(SqlExpr expr) |
static void |
SqlExprUtils.getColumnsMentioned(SqlExpr expr,
List<SqlExprColumn> list) |
| Modifier and Type | Method and Description |
|---|---|
static List<TypeToken> |
SqlExprUtils.getTypes(List<SqlExpr> args) |
static boolean |
SqlExprUtils.isConstantsOnly(Iterable<SqlExpr> exprs) |
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
SqlTranslatorImpl2.asSqlExpr(ExprSqlRewrite rewrite)
Assumes that the rewrite's root expression is of type E_RdfTerm.
|
static SqlExpr |
SqlTranslatorImpl2.asSqlExprOld(ExprSqlRewrite rewrite) |
SqlExpr |
SqlExprAccessor.createLogicalAnd(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprAccessor.createLogicalNot(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.createLogicalOr(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprAccessor.getArg(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.getArg1(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.getArg2(SqlExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
SqlExpr |
SqlExprAccessor.createLogicalAnd(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprAccessor.createLogicalNot(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.createLogicalOr(SqlExpr a,
SqlExpr b) |
SqlExpr |
SqlExprAccessor.getArg(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.getArg1(SqlExpr expr) |
SqlExpr |
SqlExprAccessor.getArg2(SqlExpr expr) |
boolean |
SqlExprAccessor.isLogicalAnd(SqlExpr expr) |
boolean |
SqlExprAccessor.isLogicalNot(SqlExpr expr) |
boolean |
SqlExprAccessor.isLogicalOr(SqlExpr expr) |
Copyright © 2013. All Rights Reserved.