mapreduce

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoPfs = iota
	ProtoS3  = iota
)

Variables

This section is empty.

Functions

func Map

func Map(job Job, jobPath string, m materializeInfo, host string, shard, modulos uint64)

func Materialize

func Materialize(in_repo, branch, commit, out_repo, jobDir string, shard, modulos uint64) error

Materialize parses the jobs found in `in_repo`/`commit`/`jobDir` runs them with `in_repo/commit` as input, outputs the results to `out_repo`/`branch` and commits them as `out_repo`/`commit`

func PrepJob

func PrepJob(job Job, jobPath string, m materializeInfo) error

func Reduce

func Reduce(job Job, jobPath string, m materializeInfo, host string, shard, modulos uint64)

func WaitJob

func WaitJob(in_repo, commit, job string)

Types

type Job

type Job struct {
	Type     string   `json:"type"`
	Input    string   `json:"input"`
	Image    string   `json:"image"`
	Command  []string `json:"command"`
	Limit    int      `json:"limit"`
	Parallel int      `json:"parallel"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL