Package it.unimi.dsi.mg4j.search

Examples of it.unimi.dsi.mg4j.search.NotDocumentIterator


        { { 0, 1 }, { 1, 2 } },
        { { 1, 2 } },
        { {} },
        } );
   
    NotDocumentIterator notDocumentIterator = NotDocumentIterator.getInstance( i, 8 );
    assertEquals( 0, notDocumentIterator.nextDocument() );
    assertEquals( 0, notDocumentIterator.document() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 1, notDocumentIterator.nextDocument() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 3, notDocumentIterator.nextDocument() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 5, notDocumentIterator.nextDocument() );
    assertEquals( 5, notDocumentIterator.document() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 6, notDocumentIterator.nextDocument() );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertFalse( notDocumentIterator.hasNext() );
    notDocumentIterator.dispose();
  }
View Full Code Here


        { { 0, 1 }, { 1, 2 } },
        { { 1, 2 } },
        { {} },
        } );
   
    NotDocumentIterator notDocumentIterator = NotDocumentIterator.getInstance( i, 9 );
 
    assertEquals( 3, notDocumentIterator.skipTo( 3 ) );
    assertEquals( IntervalIterators.TRUE, notDocumentIterator.intervalIterator() );
    assertEquals( 3, notDocumentIterator.skipTo( 2 ) );
    assertEquals( 8, notDocumentIterator.skipTo( 8 ) );
    assertEquals( Integer.MAX_VALUE, notDocumentIterator.skipTo( 9 ) );
  }
View Full Code Here

        new int[][][] {
        { { 0 } },
        { { 0 } },
        } );
   
    NotDocumentIterator notDocumentIterator = NotDocumentIterator.getInstance( i, 9 );
    notDocumentIterator.hasNext();
    assertEquals( 1, notDocumentIterator.skipTo( 0 ) );
  }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.search.NotDocumentIterator

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.