Package org.terrier.structures

Examples of org.terrier.structures.BitPostingIndexInputStream.skip()


      throw new IOException("Index not found in JobConf:" + Index.getLastIndexLoadError());
   
    final String bitPostingStructureName = job.get(BITPOSTING_STRUCTURE_KEY);
   
    final BitPostingIndexInputStream postingStream = (BitPostingIndexInputStream)index.getIndexStructureInputStream(bitPostingStructureName);
    postingStream.skip(split.getStartingEntryIndex());
    //logger.info("BitPostingIndexRecordReader for structure "+ bitPostingStructureName + " start entry "+ split.getStartingEntryIndex() + " split size " + split.getEntryCount());
    return new BitPostingIndexRecordReader(postingStream, split.getStartingEntryIndex(), split.getEntryCount());
  }
 
  /** Returns the block size of the specified file. Only recommended to overload for testing */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.