public void init(long skipPointer,int df) throws IOException {
  this.skipPointer[0]=skipPointer;
  this.docCount=df;
  assert skipPointer >= 0 && skipPointer <= skipStream[0].length() : "invalid skip pointer: " + skipPointer + ", length="+ skipStream[0].length();
  Arrays.fill(skipDoc,0);
  Arrays.fill(numSkipped,0);
  Arrays.fill(childPointer,0);
  for (int i=1; i < numberOfSkipLevels; i++) {
    skipStream[i]=null;
  }
  loadSkipLevels();
}

public void init ( long skipPointer , int df ) throws IOException { this . skipPointer [ 0 ] = skipPointer ; this . docCount = df ; assert skipPointer >= 0 && skipPointer <= skipStream [ 0 ] . length ( ) : "invalid skip pointer: " + skipPointer + ", length=" + skipStream [ 0 ] . length ( ) ; Arrays . fill ( skipDoc , 0 ) ; Arrays . fill ( numSkipped , 0 ) ; Arrays . fill ( childPointer , 0 ) ; for ( int i = 1 ; i < numberOfSkipLevels ; i ++ ) { skipStream [ i ] = null ; } loadSkipLevels ( ) ; }
initializes the reader , for reuse on a new term .
