Package org.apache.lucene.util.packed

Examples of org.apache.lucene.util.packed.EliasFanoDocIdSet


  }

  // HSEARCH-610
  @Test
  public void testWithEliasFanoBitSet() throws IOException {
    EliasFanoDocIdSet idSet1 = new EliasFanoDocIdSet( 4, 12 );
    idSet1.encodeFromDisi( integersToDocIdSet( 0, 5, 6, 10 ).iterator() );
    EliasFanoDocIdSet idSet2 = new EliasFanoDocIdSet( 1, 6 );
    idSet2.encodeFromDisi( integersToDocIdSet( 6 ).iterator() );
    AndDocIdSet actual = createAndDocIdSet( idSet1, idSet2 );

    DocIdSet expected = integersToDocIdSet( 6 );
    assertTrue( docIdSetsEqual( expected, actual ) );
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.util.packed.EliasFanoDocIdSet

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.