Package net.sf.saxon.sort

Examples of net.sf.saxon.sort.FixedSortKeyDefinition


                key = new Atomizer(key);
            }

            FixedSortKeyDefinition[] sk = new FixedSortKeyDefinition[1];

            sk[0] = new FixedSortKeyDefinition();
            sk[0].setSortKey(key);
            sk[0].bindComparer();

            iterator = new SortedIterator(context, iterator, sk);
        }
View Full Code Here


        if (sortSpecList != null) {
            FixedSortKeyDefinition[] keys = new FixedSortKeyDefinition[sortSpecList.size()];
            for (int i = 0; i < sortSpecList.size(); i++) {
                SortSpec spec = (SortSpec) sortSpecList.get(i);
                FixedSortKeyDefinition key = new FixedSortKeyDefinition();
                key.setSortKey(((SortSpec) sortSpecList.get(i)).sortKey);
                key.setOrder(new StringValue(spec.ascending ? "ascending" : "descending"));
                key.setEmptyFirst(spec.ascending ? spec.emptyLeast : !spec.emptyLeast);
                try {
                    if (spec.collation != null) {
                        key.setCollation(env.getCollation(spec.collation));
                    }
                    key.bindComparer();
                    keys[i] = key;
                } catch (XPathException e) {
                    grumble(e.getMessage());
                }
            }
View Full Code Here

TOP

Related Classes of net.sf.saxon.sort.FixedSortKeyDefinition

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.