public class DistinctValues extends CollatingFunction
Modifier and Type | Class and Description |
---|---|
static class |
DistinctValues.DistinctIterator
Iterator class to return the distinct values in a sequence
|
conversionContext
operation
argument
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
DistinctValues() |
Modifier and Type | Method and Description |
---|---|
protected AtomicSortComparer |
getAtomicSortComparer(int arg,
XPathContext context)
Get a AtomicSortComparer that can be used to compare values
|
SequenceIterator |
iterate(XPathContext context)
Evaluate the function to return an iteration of selected values or nodes.
|
checkArguments, getAtomicComparer, getCollator, preEvaluateCollation
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
checkArgumentCount, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
context
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionprotected AtomicSortComparer getAtomicSortComparer(int arg, XPathContext context) throws XPathException
arg
- the position of the argument (starting at 0) containing the collation name.
If this argument was not supplied, the default collation is usedcontext
- The dynamic evaluation context.XPathException