Package org.jibenakka.sample.mapreduce.wordcount.messages

Examples of org.jibenakka.sample.mapreduce.wordcount.messages.InitialMapWork


    LinkedList<Future<Map<String, Integer>>> mappedFuturesList = new LinkedList<Future<Map<String, Integer>>>();

    while (fileIterator.hasNext()) {
      // Start the futures here. Pair mapping futures with Partition /
      // Reduce futures
      InitialMapWork work = new InitialMapWork((File) fileIterator.next());
      LinkedList<Future<Map<String, Integer>>> futureMaps = (LinkedList<Future<Map<String, Integer>>>) this.mapWorkRouter
          .sendRequestReply(work, getContext());
      mappedFuturesList.addAll(futureMaps);
    }
    return mappedFuturesList;
View Full Code Here


  /**
   *
   * @param message
   */
  protected void doWork(Object message) {
    InitialMapWork work = (InitialMapWork) message;
    // Start dividing the work into portions of the file
    extractFileMapResult(work);
  }
View Full Code Here

TOP

Related Classes of org.jibenakka.sample.mapreduce.wordcount.messages.InitialMapWork

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.