Examples of skipBack()


Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

               assertEquals(skip, iterator.getPosition());
               try
               {
                  int skip2 = skip + 1 + random.nextInt(TEST_NODES_COUNT);
                  log.info("testSkipBeforeFirst skip2=" + skip2);
                  iterator.skipBack(skip2);
                  fail();
               }
               catch (NoSuchElementException e)
               {
                  // ok
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(skip);
               assertEquals(skip, iterator.getPosition());
               try
               {
                  iterator.skipBack(-1 * skip);
                  fail();
               }
               catch (IllegalArgumentException e)
               {
                  // ok
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

            {
               QueryResult result = query.execute();
               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(skip);
               assertEquals(skip, iterator.getPosition());
               iterator.skipBack(skip);
               return iterator;
            }

         };
         checkPosition(tester, 0);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

            {
               QueryResult result = query.execute();
               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(5);
               iterator.skip(skip);
               iterator.skipBack(skip);
               return iterator;
            }

         };
         checkPosition(tester, 5);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

      assertEquals(expectedPosition, orderIterator.getPosition());
      Node nextNode = (Node)orderIterator.next();

      if (nextNode.getProperty("val").getLong() != expectedPosition)
      {
         orderIterator.skipBack(orderIterator.getPosition());
         while (orderIterator.hasNext())
         {
            Node nooode = (Node)orderIterator.next();
            log.info("node " + nooode.getPath() + " " + nooode.getProperty("val").getLong() + "  "
               + orderIterator.getPosition());
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

               iterator.skip(skip);
               assertEquals(skip, iterator.getPosition());
               try
               {
                  int skip2 = skip + 1 + random.nextInt(TEST_NODES_COUNT);
                  iterator.skipBack(skip2);
                  fail();
               }
               catch (NoSuchElementException e)
               {
                  // ok
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(skip);
               assertEquals(skip, iterator.getPosition());
               try
               {
                  iterator.skipBack(-1 * skip);
                  fail();
               }
               catch (IllegalArgumentException e)
               {
                  // ok
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

            {
               QueryResult result = query.execute();
               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(skip);
               assertEquals(skip, iterator.getPosition());
               iterator.skipBack(skip);
               return iterator;
            }

         };
         checkPosition(tester, 0);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

            {
               QueryResult result = query.execute();
               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(5);
               iterator.skip(skip);
               iterator.skipBack(skip);
               return iterator;
            }

         };
         checkPosition(tester, 5);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skipBack()

      assertEquals(expectedPosition, orderIterator.getPosition());
      Node nextNode = (Node)orderIterator.next();

      if (nextNode.getProperty("val").getLong() != expectedPosition)
      {
         orderIterator.skipBack(orderIterator.getPosition());
         while (orderIterator.hasNext())
         {
            Node nooode = (Node)orderIterator.next();
         }
      }
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.