Examples of GroupIterator


Examples of client.net.sf.saxon.ce.expr.sort.GroupIterator

    /**
    * Return an iteration over the result sequence
    */

    public SequenceIterator iterate(XPathContext c) throws XPathException {
        GroupIterator gi = c.getCurrentGroupIterator();
        if (gi==null) {
            return EmptyIterator.getInstance();
        }
        return gi.iterateCurrentGroup();
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.sort.GroupIterator

    /**
     * Evaluate the expression
     */

    public Item evaluateItem(XPathContext c) throws XPathException {
        GroupIterator gi = c.getCurrentGroupIterator();
        if (gi==null) {
            return null;
        }
        return gi.getCurrentGroupingKey();
     }
View Full Code Here

Examples of gnu.inet.nntp.GroupIterator

        Thread t = new Thread() {
            // get first connection
            NNTPConnection con = usedConnections.get(0);
           
            public void run() {
                GroupIterator git;
                try {
                    git = con.list();
                    while(git.hasNext()) {
                        gnu.inet.nntp.Group g = (gnu.inet.nntp.Group) git.next();
                        Group group = new Group();
                        group.setName(g.getName());
                        group.setFirst(g.getFirst());
                        group.setLast(g.getLast());
                        group.setLastUpdate(new Date());
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

     * Evaluate the expression
     */

    public Item evaluateItem(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUPING_KEY) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return null;
            }
            return gi.getCurrentGroupingKey();
        } else {
            return super.evaluateItem(c);
        }
    }
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

    * Return an iteration over the result sequence
    */

    public SequenceIterator iterate(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUP) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return EmptyIterator.getInstance();
            }
            return gi.iterateCurrentGroup();
        } else {
            return super.iterate(c);
        }
    }
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

     * Evaluate the expression
     */

    public Item evaluateItem(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUPING_KEY) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return null;
            }
            return gi.getCurrentGroupingKey();
        } else {
            return super.evaluateItem(c);
        }
    }
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

    * Return an iteration over the result sequence
    */

    public SequenceIterator iterate(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUP) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return EmptyIterator.getInstance();
            }
            return gi.iterateCurrentGroup();
        } else {
            return super.iterate(c);
        }
    }
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

     * Evaluate the expression
     */

    public Item evaluateItem(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUPING_KEY) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return null;
            }
            return gi.getCurrentGroupingKey();
        } else {
            return super.evaluateItem(c);
        }
    }
View Full Code Here

Examples of net.sf.saxon.sort.GroupIterator

    * Return an iteration over the result sequence
    */

    public SequenceIterator iterate(XPathContext c) throws XPathException {
        if (operation==CURRENT_GROUP) {
            GroupIterator gi = c.getCurrentGroupIterator();
            if (gi==null) {
                return EmptyIterator.getInstance();
            }
            return gi.iterateCurrentGroup();
        } else {
            return super.iterate(c);
        }
    }
View Full Code Here

Examples of org.apache.camel.util.GroupIterator

        return new ExpressionAdapter() {
            public Object evaluate(Exchange exchange) {
                // evaluate expression as iterator
                Iterator<?> it = expression.evaluate(exchange, Iterator.class);
                ObjectHelper.notNull(it, "expression: " + expression + " evaluated on " + exchange + " must return an java.util.Iterator");
                return new GroupIterator(exchange, it, token, group);
            }

            @Override
            public String toString() {
                return "group " + expression + " " + group + " times";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.