Interface IAlgebraOptimiser
An Algebra Optimiser is a class that can transform a SPARQL algebra from one form to another typically for optimisation purposes.
Namespace: VDS.RDF.Query.Optimisation
Assembly: dotNetRdf.dll
Syntax
public interface IAlgebraOptimiser
Properties
| Improve this Doc View SourceUnsafeOptimisation
Determines whether an Optimiser will perform algebra optimizations that are potentially unsafe at execution time.
Declaration
bool UnsafeOptimisation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceIsApplicable(SparqlQuery)
Determines whether an Optimiser is applicable based on the Query whose Algebra is being optimised.
Declaration
bool IsApplicable(SparqlQuery q)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | q | SPARQL Query. |
Returns
Type | Description |
---|---|
System.Boolean |
IsApplicable(SparqlUpdateCommandSet)
Determines whether an Optimiser is applicable based on the Update Command Set being optimised.
Declaration
bool IsApplicable(SparqlUpdateCommandSet cmds)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandSet | cmds | Update Command Set. |
Returns
Type | Description |
---|---|
System.Boolean |
Optimise(ISparqlAlgebra)
Optimises the given Algebra.
Declaration
ISparqlAlgebra Optimise(ISparqlAlgebra algebra)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebra | algebra | Algebra to optimise. |
Returns
Type | Description |
---|---|
ISparqlAlgebra |
Remarks
Important: An Algebra Optimiser must guarantee to return an equivalent algebra to the given algebra. In the event of any error the optimiser should still return a valid algebra (or at least the original algebra).