| Modifier and Type | Class and Description |
|---|---|
class |
SqlOpBase |
class |
SqlOpBase0 |
class |
SqlOpBase1 |
class |
SqlOpBase2 |
class |
SqlOpBaseN |
class |
SqlOpDistinct |
class |
SqlOpEmpty |
class |
SqlOpExtend |
class |
SqlOpFilter |
class |
SqlOpFilterExpr
A maybe hacky filter that allows SQL ops to be constrained by SPARQL
expressions.
|
class |
SqlOpGroupBy |
class |
SqlOpJoin |
class |
SqlOpJoinN |
class |
SqlOpLeaf
Leaf nodes in an SQL expression.
|
class |
SqlOpOrder |
class |
SqlOpProject
This is actually a combination of extend, rename and project.
|
class |
SqlOpQuery |
class |
SqlOpRename
The rename operator from the relational algebra.
|
class |
SqlOpSelectBlock
Similar to SqlSelectBlock:
The sql generation process is to generate SqlSelectBlock from the
algebra, which are then turned into strings.
|
class |
SqlOpSlice |
class |
SqlOpTable |
class |
SqlOpUnionN |
| Modifier and Type | Field and Description |
|---|---|
protected SqlOp |
SqlOpBase2.left |
protected SqlOp |
SqlOpBase2.right |
protected SqlOp |
SqlOpBase1.subOp |
| Modifier and Type | Field and Description |
|---|---|
protected List<SqlOp> |
SqlOpBaseN.subOps |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
SqlOp.copy(Schema schema,
List<SqlOp> newOps)
Create a copy of the SqlOp with a projected schema.
|
SqlOp |
SqlOpBase.copy(Schema schema,
List<SqlOp> newOps) |
SqlOp |
SqlOpQuery.copy(Schema schema,
List<SqlOp> newArgs) |
SqlOp |
SqlOpTable.copy(Schema schema,
List<SqlOp> newArgs) |
static SqlOp |
SqlOpFilterExpr.createIfNeeded(SqlOp op,
List<com.hp.hpl.jena.sparql.expr.Expr> exprs) |
static SqlOp |
SqlOpFilter.createIfNeeded(SqlOp op,
List<SqlExpr> exprs) |
static SqlOp |
SqlOpSelectBlock.distinct(com.hp.hpl.jena.sdb.core.Generator generator,
SqlOp sqlOp) |
SqlOp |
SqlOpBase2.getLeft() |
SqlOp |
SqlOpBase2.getRight() |
SqlOp |
SqlOpBase1.getSubOp() |
static SqlOp |
SqlOpSelectBlock.restrict(com.hp.hpl.jena.sdb.core.Generator generator,
SqlOp sqlOp,
List<SqlExpr> exprs) |
| Modifier and Type | Method and Description |
|---|---|
List<SqlOp> |
SqlOp.getSubOps() |
List<SqlOp> |
SqlOpBase2.getSubOps() |
List<SqlOp> |
SqlOpLeaf.getSubOps() |
List<SqlOp> |
SqlOpBase1.getSubOps() |
List<SqlOp> |
SqlOpBaseN.getSubOps() |
| Modifier and Type | Method and Description |
|---|---|
SqlOpSelectBlock |
SqlOpSelectBlock.copy1(SqlOp subOp) |
static SqlOpJoin |
SqlOpJoin.create(com.hp.hpl.jena.sdb.core.JoinType joinType,
SqlOp a,
SqlOp b) |
static SqlOpJoin |
SqlOpJoin.create(com.hp.hpl.jena.sdb.core.JoinType joinType,
SqlOp a,
SqlOp b,
List<SqlExpr> conditions) |
static SqlOpDistinct |
SqlOpDistinct.create(SqlOp subOp) |
static SqlOpSelectBlock |
SqlOpSelectBlock.create(SqlOp sqlOp) |
static SqlOpFilterExpr |
SqlOpFilterExpr.create(SqlOp op,
List<com.hp.hpl.jena.sparql.expr.Expr> exprs) |
static SqlOpFilter |
SqlOpFilter.create(SqlOp op,
List<SqlExpr> exprs) |
static SqlOpGroupBy |
SqlOpGroupBy.create(SqlOp subOp,
List<SqlExpr> groupByExprs,
List<SqlExprAggregator> aggregators) |
static SqlOpOrder |
SqlOpOrder.create(SqlOp subOp,
List<SqlSortCondition> sortConditions) |
static SqlOpProject |
SqlOpProject.create(SqlOp subOp,
List<String> columnNames) |
static SqlOpSlice |
SqlOpSlice.create(SqlOp subOp,
Long offset,
Long limit) |
static SqlOpRename |
SqlOpRename.create(SqlOp op,
Map<String,String> map) |
static SqlOpExtend |
SqlOpExtend.create(SqlOp op,
Projection projection) |
static SqlOpSelectBlock |
SqlOpSelectBlock.create(SqlOp sqlOp,
String aliasName) |
static SqlOp |
SqlOpFilterExpr.createIfNeeded(SqlOp op,
List<com.hp.hpl.jena.sparql.expr.Expr> exprs) |
static SqlOp |
SqlOpFilter.createIfNeeded(SqlOp op,
List<SqlExpr> exprs) |
static SqlOp |
SqlOpSelectBlock.distinct(com.hp.hpl.jena.sdb.core.Generator generator,
SqlOp sqlOp) |
static String |
SqlOpFormatter.format(SqlOp op) |
static String |
SqlOpSelectBlock.getAliasName(SqlOp op) |
static SqlOp |
SqlOpSelectBlock.restrict(com.hp.hpl.jena.sdb.core.Generator generator,
SqlOp sqlOp,
List<SqlExpr> exprs) |
void |
SqlOpSelectBlock.setSubOp(SqlOp subOp) |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
SqlOp.copy(Schema schema,
List<SqlOp> newOps)
Create a copy of the SqlOp with a projected schema.
|
SqlOp |
SqlOpBase.copy(Schema schema,
List<SqlOp> newOps) |
SqlOp |
SqlOpQuery.copy(Schema schema,
List<SqlOp> newArgs) |
SqlOp |
SqlOpTable.copy(Schema schema,
List<SqlOp> newArgs) |
static SqlOpJoinN |
SqlOpJoinN.create(List<SqlOp> subOps) |
static SqlOpUnionN |
SqlOpUnionN.create(List<SqlOp> subOps) |
static SqlOpJoinN |
SqlOpJoinN.create(List<SqlOp> subOps,
String aliasName) |
static SqlOpUnionN |
SqlOpUnionN.create(List<SqlOp> subOps,
String aliasName) |
| Constructor and Description |
|---|
SqlOpBase1(Schema schema,
SqlOp subOp) |
SqlOpBase2(Schema schema,
SqlOp left,
SqlOp right) |
SqlOpDistinct(Schema schema,
SqlOp subOp) |
SqlOpExtend(Schema schema,
SqlOp subOp,
Projection projection) |
SqlOpFilter(Schema schema,
SqlOp subOp,
List<SqlExpr> exprs) |
SqlOpFilterExpr(Schema schema,
SqlOp subOp,
com.hp.hpl.jena.sparql.expr.Expr expr) |
SqlOpFilterExpr(Schema schema,
SqlOp subOp,
List<com.hp.hpl.jena.sparql.expr.Expr> 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) |
SqlOpJoin(Schema schema,
com.hp.hpl.jena.sdb.core.JoinType joinType,
SqlOp left,
SqlOp right,
List<SqlExpr> conditions) |
SqlOpOrder(Schema schema,
SqlOp subOp,
List<SqlSortCondition> sortConditions) |
SqlOpProject(Schema schema,
SqlOp subOp,
List<String> columnNames) |
SqlOpRename(Schema schema,
SqlOp subOp,
org.apache.commons.collections15.BidiMap<String,String> rename) |
SqlOpSelectBlock(Schema schema,
SqlOp sqlOp) |
SqlOpSelectBlock(Schema schema,
SqlOp sqlOp,
String aliasName) |
SqlOpSelectBlock(SqlOp node) |
SqlOpSlice(Schema schema,
SqlOp subOp,
Long offset,
Long limit) |
| Constructor and Description |
|---|
SqlOpBaseN(Schema schema,
List<SqlOp> subOps) |
SqlOpJoinN(Schema schema,
List<SqlOp> subOps) |
SqlOpJoinN(Schema schema,
List<SqlOp> subOps,
String aliasName) |
SqlOpUnionN(Schema schema,
List<SqlOp> subOps) |
SqlOpUnionN(Schema schema,
List<SqlOp> subOps,
String aliasName) |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
SparqlifyConfigTree.joinClause() |
SqlOp |
SparqlifyConfigTree.joinClauseMember() |
SqlOp |
SparqlifyConfigTree.sqlLogicalTable() |
SqlOp |
SparqlifyConfigTree.sqlRelation() |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
ViewDefinition.getRelation() |
| Modifier and Type | Method and Description |
|---|---|
void |
ViewDefinition.setRelation(SqlOp relation) |
| Constructor and Description |
|---|
ViewDefinition(String name,
ViewTemplateDefinition viewTemplateDefinition,
SqlOp relation,
List<Constraint> constraints) |
| Modifier and Type | Method and Description |
|---|---|
static SqlOp |
SqlOpSelectBlockCollectorImpl._makeSelect(SqlOp sqlOp,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorOps._makeSelectOrTable(SqlOp sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOp sqlOp)
Turn an SqlOp into an OpSqlSelectBlock.
|
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpEmpty op,
Set<String> refs)
Create a dummy select query:
SELECT NULL WHERE FALSE;
If above is not cross db safe, we could change to:
SELECT NULL c FROM (SELECT NULL) t WHERE FALSE;
|
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpFilter op,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpGroupBy op,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpJoin op,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpOrder op,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpQuery node,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOpTable node,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpDistinct sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpEmpty sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpFilter sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpJoin sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpProject sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpQuery sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpSlice sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpTable sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorOps.makeSelectOrTable(SqlOpUnionN sqlOp) |
SqlOp |
SqlOpSelectBlockCollectorImpl.transform(SqlOp op) |
| Modifier and Type | Method and Description |
|---|---|
static List<SqlOp> |
SqlOptimizerImpl.collectJoins(SqlOp sqlOp) |
| Modifier and Type | Method and Description |
|---|---|
static org.aksw.sparqlify.core.algorithms.JoinContext |
SqlOpSelectBlockCollectorImpl._collectJoins(SqlOp sqlOp,
Set<String> refs) |
static SqlOpSelectBlock |
SqlOpSelectBlockCollectorOps._makeSelect(SqlOp sqlOp) |
static SqlOp |
SqlOpSelectBlockCollectorImpl._makeSelect(SqlOp sqlOp,
Set<String> refs) |
static SqlOp |
SqlOpSelectBlockCollectorOps._makeSelectOrTable(SqlOp sqlOp) |
static List<SqlOp> |
SqlOptimizerImpl.collectJoins(SqlOp sqlOp) |
static void |
SqlOptimizerImpl.collectJoins(SqlOp sqlOp,
List<SqlOp> result) |
static String |
SqlOpSerializerImpl.getAliasNameNotNull(SqlOp op) |
static SqlOp |
SqlOpSelectBlockCollectorImpl.makeSelect(SqlOp sqlOp)
Turn an SqlOp into an OpSqlSelectBlock.
|
static org.aksw.sparqlify.core.algorithms.SqlOptimizerImpl.OptResult |
SqlOptimizerImpl.opt(SqlOp op,
Set<S_ColumnRef> references) |
void |
SqlOptimizerImpl.optimize(SqlOp op) |
static SqlOpSelectBlock |
SqlOpSelectBlockCollectorImpl.requireSelectBlock(SqlOp op) |
String |
SqlOpSerializerImpl.serialize(SqlOp op) |
void |
SqlOpSerializerImpl.serialize(SqlOp op,
org.apache.jena.atlas.io.IndentedWriter writer) |
void |
SqlOpSerializerImpl.serializeJoinU(SqlOp op,
String aliasName,
org.apache.jena.atlas.io.IndentedWriter writer) |
SqlOp |
SqlOpSelectBlockCollectorImpl.transform(SqlOp op) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlOptimizerImpl.collectJoins(SqlOp sqlOp,
List<SqlOp> result) |
org.aksw.sparqlify.core.algorithms.SelfJoinResult |
SqlOptimizerImpl.eliminateSelfJoins(List<SqlOp> ops,
List<Collection<SqlExpr>> cnf) |
| Modifier and Type | Method and Description |
|---|---|
static SqlOp |
EffectiveViewGenerator.createMinimalSchema(SqlOp sqlOp,
VarDefinition varDef) |
| Modifier and Type | Method and Description |
|---|---|
static SqlOp |
EffectiveViewGenerator.createMinimalSchema(SqlOp sqlOp,
VarDefinition varDef) |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
Mapping.getSqlOp() |
SqlOp |
SparqlSqlOpRewrite.getSqlOp() |
| Constructor and Description |
|---|
Mapping(SqlOp sqlOp) |
Mapping(VarDefinition varDefinition,
SqlOp sqlOp)
This constructor does not create copy of the arguments
|
SparqlSqlOpRewrite(SqlOp sqlOp,
boolean isEmptyResult,
VarDefinition varDefinition,
List<com.hp.hpl.jena.sparql.core.Var> projectionOrder) |
| Modifier and Type | Method and Description |
|---|---|
SqlOp |
SqlOpSelectBlockCollector.transform(SqlOp op) |
| Modifier and Type | Method and Description |
|---|---|
String |
SqlOpSerializer.serialize(SqlOp op) |
SqlOp |
SqlOpSelectBlockCollector.transform(SqlOp op) |
| Modifier and Type | Method and Description |
|---|---|
static String |
SqlOpUtils.getTableName(SqlOp sqlOp)
Returns the table name if the sqlOp is of type SqlTable.
|
Copyright © 2014. All rights reserved.