Package net.sf.saxon.sort

Examples of net.sf.saxon.sort.AtomicSortComparer$ComparisonKey


    * used for the value lookup, and the AtomicComparer used to compare values.
    */

    public Object map(Item item, XPathContext context, Object info) throws XPathException {
        HashSet lookup = (HashSet)((Object[])info)[0];
        AtomicSortComparer comparer = (AtomicSortComparer)((Object[])info)[1];
        AtomicSortComparer.ComparisonKey key = comparer.getComparisonKey((AtomicValue)item);
        if (lookup.contains(key)) {
            return null;
        } else {
            lookup.add(key);
            return item;
View Full Code Here


    * If this argument was not supplied, the default collation is used
    * @param context The dynamic evaluation context.
    */

    protected AtomicSortComparer getAtomicSortComparer(int arg, XPathContext context) throws XPathException {
        return new AtomicSortComparer(getCollator(arg, context, true));
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.sort.AtomicSortComparer$ComparisonKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.