Examples of forwardCursor()


Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

    {
      Index idx = store.getSubLevelIndex();
     
      assertEquals( 19, idx.count() );
     
      Cursor<IndexEntry<Long,Attributes>> cursor = idx.forwardCursor( 2L );
     
      assertTrue( cursor.next() );
      assertEquals( 2, ( long ) cursor.get().getId() );
     
      assertTrue( cursor.next() );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

      assertFalse( cursor.next() );
     
      idx.drop( 5L );
     
      cursor = idx.forwardCursor( 2L );

      assertTrue( cursor.next() );
      assertEquals( 2, ( long ) cursor.get().getId() );
     
      assertTrue( cursor.next() );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

      entry.add( "cn""Martin King");
      entry.add( "entryCSN", new CsnFactory( 1 ).newInstance().toString() );
      entry.add( "entryUUID", SchemaUtils.uuidToBytes( UUID.randomUUID() ) );
      store.add( entry );
     
      cursor = idx.forwardCursor( 2L);
      cursor.afterLast();
      assertTrue( cursor.previous() );
      assertEquals( 12, ( long ) cursor.get().getId() );
     
      LdapDN newParentDn = new LdapDN( "ou=Board of Directors,o=Good Times Co." );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

     
      LdapDN newParentDn = new LdapDN( "ou=Board of Directors,o=Good Times Co." );
      newParentDn.normalize( attributeRegistry.getNormalizerMapping() );
     
      store.move( martinDn, newParentDn );
      cursor = idx.forwardCursor( 3L);
      cursor.afterLast();
      assertTrue( cursor.previous() );
      assertEquals( 12, ( long ) cursor.get().getId() );
     
      // dn id 13
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

      entry.add( "entryUUID", SchemaUtils.uuidToBytes( UUID.randomUUID() ) );
      store.add( entry );
     
      store.move( marketingDn, newParentDn );

      cursor = idx.forwardCursor( 3L);
      cursor.afterLast();

      assertTrue( cursor.previous() );
      assertEquals( 14, ( long ) cursor.get().getId() );
     
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

    {
        Index idx = store.getSubLevelIndex();

        assertEquals( 19, idx.count() );

        Cursor<IndexEntry<Long, Attributes, Long>> cursor = idx.forwardCursor( 2L );

        assertTrue( cursor.next() );
        assertEquals( 2, ( long ) cursor.get().getId() );

        assertTrue( cursor.next() );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

        assertFalse( cursor.next() );

        idx.drop( 5L );

        cursor = idx.forwardCursor( 2L );

        assertTrue( cursor.next() );
        assertEquals( 2, ( long ) cursor.get().getId() );

        assertTrue( cursor.next() );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

        entry.add( "cn", "Martin King" );
        entry.add( "entryCSN", new CsnFactory( 1 ).newInstance().toString() );
        entry.add( "entryUUID", UUID.randomUUID().toString() );
        store.add( entry );

        cursor = idx.forwardCursor( 2L );
        cursor.afterLast();
        assertTrue( cursor.previous() );
        assertEquals( 12, ( long ) cursor.get().getId() );

        Dn newParentDn = new Dn( schemaManager, "ou=Board of Directors,o=Good Times Co." );
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

        Dn newParentDn = new Dn( schemaManager, "ou=Board of Directors,o=Good Times Co." );

        Dn newDn = newParentDn.add( martinDn.getRdn() );

        store.move( martinDn, newParentDn, newDn, entry );
        cursor = idx.forwardCursor( 3L );
        cursor.afterLast();
        assertTrue( cursor.previous() );
        assertEquals( 12, ( long ) cursor.get().getId() );

        // dn id 13
View Full Code Here

Examples of org.apache.directory.server.xdbm.Index.forwardCursor()

        newDn = newParentDn.add( marketingDn.getRdn() );

        store.move( marketingDn, newParentDn, newDn, entry );

        cursor = idx.forwardCursor( 3L );
        cursor.afterLast();

        assertTrue( cursor.previous() );
        assertEquals( 14, ( long ) cursor.get().getId() );
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.