net.sf.saxon.sort

Class FixedSortKeyDefinition

public final class FixedSortKeyDefinition extends SortKeyDefinition

A FixedSortKeyDefinition is a SortKeyDefinition in which all aspects of the sort key definition (sort order, data type, etc,) are known. A SortKeyDefinition defines one component of a sort key.
Constructor Summary
FixedSortKeyDefinition()
Method Summary
voidbindComparer(XPathContext context)
Allocate a reusable Comparer to implement this sort key comparison
ComparatorgetComparer()
Get the comparer which is used to compare two values according to this sort key.
FixedSortKeyDefinitionreduce(XPathContext context)
Eliminate dependencies of the sort key definition on the context.
SortKeyDefinitionsimplify()

Constructor Detail

FixedSortKeyDefinition

public FixedSortKeyDefinition()

Method Detail

bindComparer

public void bindComparer(XPathContext context)
Allocate a reusable Comparer to implement this sort key comparison

getComparer

public Comparator getComparer()
Get the comparer which is used to compare two values according to this sort key.

reduce

public FixedSortKeyDefinition reduce(XPathContext context)
Eliminate dependencies of the sort key definition on the context. For the sort key select expression, this means things that don't depend on the individual node: specifically, variables and current-group(). For the AVTs used to select data type, case order, language, it means all dependencies: after reduction, these values will be constants.

simplify

public SortKeyDefinition simplify()