Package org.terrier.structures.indexing.singlepass.hadoop

Examples of org.terrier.structures.indexing.singlepass.hadoop.HadoopRunWriter


  protected void forceFlush() throws IOException
  {
    //logger.info("Map "+mapTaskID+", flush requested, containing "+numberOfDocsSinceFlush+" documents, flush "+flushNo);
    if (mp == null)
      throw new IOException("Map flushed before any documents were indexed");
    mp.finish(new HadoopRunWriter(outputPostingListCollector, mapTaskID, splitnum, flushNo));
    RunData.writeInt(currentId);
    if (currentReporter != null)
      currentReporter.incrCounter(Counters.INDEXER_FLUSHES, 1);
    System.gc();
    createMemoryPostings();
View Full Code Here

TOP

Related Classes of org.terrier.structures.indexing.singlepass.hadoop.HadoopRunWriter

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.