Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 784 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 784 Bytes

Madoop

Matsuo Hadoop

BBVC (Browser-Based Voluntary Computing) based on MapReduce model with WebAssembly Technology.

Install

$ npm install git+ssh://[email protected]/h-matsuo/madoop.git

How to use

import * as madoop from 'madoop';

class MyInputData extends madoop.AbstractInputData {
  // write here
}

class MyMapper extends madoop.AbstractMapper {
  // write here
}

class MyReducer extends madoop.AbstractReducer {
  // write here
}

const job = new madoop.Job('sample');
const m = new madoop.Madoop();

job.setInputData(new MyInputData());
job.setMapper(new MyMapper());
job.setReducer(new MyReducer());
job.setCallbackWhenCompleted(result => {
  console.log(result);
});
m.setJob(job);
m.run();

See sample directory for more details.