Package org.terrier.structures

Examples of org.terrier.structures.BitFilePosition


        for(String p : parts)
          ids.add(Integer.parseInt(p));
        int[] _tmp = ids.toNativeArray();
        byteOffset = bo.getByteOffset();
        bitOffset = bo.getBitOffset();
        BitFilePosition bp = new FilePosition(byteOffset, bitOffset);
        startOffsets.add(bp);
        //System.err.println(_tmp.length + "@{"+byteOffset+","+bitOffset+"}");
       
        List<Posting> postingList = new ArrayList<Posting>();
        IterablePosting ip = new ArrayOfIdsIterablePosting(_tmp);
View Full Code Here


      if (initial_bitoffset > 0)
        bi.skipBits(initial_bitoffset);     
      for(int i=0;i<IDS.size();i++)
      {
        int[] postings = IDS.get(i);
        BitFilePosition pos = startOffsets.get(i);
        assertEquals(pos.getOffset(), bi.getByteOffset());
        assertEquals(pos.getOffsetBits(), bi.getBitOffset());
        int id = -1;
        for(int j=0;j<postings.length;j++)
        {
          int target = postings[j];
          id = bi.readGamma() + id;
View Full Code Here

TOP

Related Classes of org.terrier.structures.BitFilePosition

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.