BaseTriplePatternCompareTo Method |
Compares a Triple Pattern to another Triple Pattern.
Namespace:
VDS.RDF.Query.Patterns
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public virtual int CompareTo(
ITriplePattern other
)
Public Overridable Function CompareTo (
other As ITriplePattern
) As Integer
Parameters
- other
- Type: VDS.RDF.Query.PatternsITriplePattern
Other Triple Pattern.
Return Value
Type:
Int32[Missing <returns> documentation for "M:VDS.RDF.Query.Patterns.BaseTriplePattern.CompareTo(VDS.RDF.Query.Patterns.ITriplePattern)"]
Implements
IComparableTCompareTo(T)Remarks
The aim of this function is to sort Triple Patterns into what is hopefully an optimal order such that during execution the query space is restricted as early as possible.
The basic rules of this are as follows:.
- Patterns with fewer variables should be executed first
- Patterns using the same variables should be executed in sequence
- Patterns using indexes which are considered more useful should be executed first
See Also