Click or drag to resize

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
)

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:.

  1. Patterns with fewer variables should be executed first
  2. Patterns using the same variables should be executed in sequence
  3. Patterns using indexes which are considered more useful should be executed first

See Also