Package org.terrier.structures

Examples of org.terrier.structures.FilePosition


        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


     
      FilePosition [] startOffsets = new FilePosition[testNumbers.length];
     
      for(int i=0;i<testNumbers.length;i++)
      {
        startOffsets[i] = new FilePosition(out.getByteOffset(), out.getBitOffset());
        if (i %2 == 0)
          out.writeGamma(testNumbers[i]);
        else
          out.writeUnary(testNumbers[i]);
        //System.err.println(i+ " wrote " + testNumbers[i] + " started @" + startOffsets[i] + " finished @{" + out.getByteOffset()  + "," + out.getBitOffset() + "}" );
View Full Code Here

TOP

Related Classes of org.terrier.structures.FilePosition

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.