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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.Optimisation
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseAlgebraOptimiser : IAlgebraOptimiser
Methods
| Improve this Doc 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 |
|---|---|
| System.Boolean |
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 |
|---|---|
| System.Boolean |
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, Int32)
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. |
| System.Int32 | depth | Depth. |
Returns
| Type | Description |
|---|---|
| ISparqlAlgebra |