コード例 #1
0
 public boolean next() throws IOException {
   pointer++;
   if (pointer < docFreq) {
     in.seek(postingMaps[pointer].offset);
     freq = in.readVInt();
     position = 0;
     return true;
   }
   return false;
 }
コード例 #2
0
 public int nextPosition() throws IOException {
   int positionIncrement = in.readVInt();
   position += positionIncrement;
   return position;
 }