Skip to content

Instantly share code, notes, and snippets.

@vblagoje
Created March 25, 2011 18:20
Show Gist options
  • Save vblagoje/887319 to your computer and use it in GitHub Desktop.
Save vblagoje/887319 to your computer and use it in GitHub Desktop.
public interface Mapper<KIn, VIn, KOut, VOut> extends Serializable {
void map(KIn key, VIn value, Collector<KOut,VOut> collector);
}
public interface Reducer<KOut,VOut> extends Serializable{
VOut reduce(KOut key, Iterator<VOut>);
}
public interface Collator<VOut,R> {
R collate();
void reducedResultReceived(Address remoteNode, VOut remoteResult);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment