Class BaseAlgebraOptimiser
Abstract Base Class for Algebra Transformers where the Transformer may care about the depth of the Algebra in the Algebra Tree.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Optimisation
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseAlgebraOptimiser : IAlgebraOptimiser
Properties
| Edit this page View SourceUnsafeOptimisation
Determines whether an Optimiser will perform algebra optimizations that are potentially unsafe at execution time.
Declaration
public bool UnsafeOptimisation { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceIsApplicable(SparqlQuery)
Determines whether the Optimiser can be applied to a given Query.
Declaration
public abstract bool IsApplicable(SparqlQuery q)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | q | Query. |
Returns
Type | Description |
---|---|
bool |
IsApplicable(SparqlUpdateCommandSet)
Determines whether the Optimiser can be applied to a given Update Command Set.
Declaration
public abstract bool IsApplicable(SparqlUpdateCommandSet cmds)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandSet | cmds | Command Set. |
Returns
Type | Description |
---|---|
bool |
Optimise(ISparqlAlgebra)
Attempts to optimise an Algebra to another more optimal form.
Declaration
public virtual ISparqlAlgebra Optimise(ISparqlAlgebra algebra)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebra | algebra | Algebra. |
Returns
Type | Description |
---|---|
ISparqlAlgebra |
OptimiseInternal(ISparqlAlgebra, int)
Transforms the Algebra to another form tracking the depth in the Algebra tree.
Declaration
protected abstract ISparqlAlgebra OptimiseInternal(ISparqlAlgebra algebra, int depth)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebra | algebra | Algebra. |
int | depth | Depth. |
Returns
Type | Description |
---|---|
ISparqlAlgebra |