Package org.apache.jackrabbit.oak.api

Examples of org.apache.jackrabbit.oak.api.ResultRow


            }

            private void fetch() {
                current = null;
                while (it.hasNext()) {
                    ResultRow r = it.next();
                    String path = r.getPath(selectorName);
                    if (includeRow(path)) {
                        current = getNode(getLocalPath(path));
                        break;
                    }
                }
View Full Code Here


    protected void assertRightOrder(@Nonnull final List<ValuePathTuple> orderedSequence,
                                    @Nonnull final Iterator<? extends ResultRow> resultset) {
        assertTrue("No results returned", resultset.hasNext());
        int counter = 0;
        while (resultset.hasNext() && counter < orderedSequence.size()) {
            ResultRow row = resultset.next();
            assertEquals(
                String.format("Wrong path at the element '%d'", counter),
                orderedSequence.get(counter).getPath(),
                row.getPath()
            );
            counter++;
        }
    }
View Full Code Here

    protected void assertRightOrder(@Nonnull final List<ValuePathTuple> orderedSequence,
                                    @Nonnull final Iterator<? extends ResultRow> resultset) {
        assertTrue("No results returned", resultset.hasNext());
        int counter = 0;
        while (resultset.hasNext() && counter < orderedSequence.size()) {
            ResultRow row = resultset.next();
            assertEquals(
                String.format("Wrong path at the element '%d'", counter),
                orderedSequence.get(counter).getPath(),
                row.getPath()
            );
            counter++;
        }
    }
View Full Code Here

            }

            private void fetch() {
                current = null;
                while (it.hasNext()) {
                    ResultRow r = it.next();
                    Tree tree = r.getTree(selectorName);
                    if (tree != null && tree.exists()) {
                        try {
                            current = getNode(tree);
                            break;
                        } catch (RepositoryException e) {
View Full Code Here

            }

            private void fetch() {
                current = null;
                while (it.hasNext()) {
                    ResultRow r = it.next();
                    for (String s : getSelectorNames()) {
                        String path = r.getPath(s);
                        if (includeRow(path)) {
                            current = new RowImpl(QueryResultImpl.this, r);
                            return;
                        }
                    }
View Full Code Here

            }

            private void fetch() {
                current = null;
                while (it.hasNext()) {
                    ResultRow r = it.next();
                    String path = r.getPath(selectorName);
                    if (includeRow(path)) {
                        current = getNode(getLocalPath(path));
                        break;
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.api.ResultRow

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.