mapreduce

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

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

func Materialize

func Materialize(in_repo, branch, commit, outRepo, 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 `outRepo`/`branch` and commits them as `outRepo`/`commit`

func PrepJob

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

func Reduce

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

func WaitJob

func WaitJob(outRepo, branch, commit, job string) error

Types

type Job

type Job struct {
	Type      string   `json:"type"`
	Input     string   `json:"input"`
	Image     string   `json:"image"`
	Cmd       []string `json:"command"`
	Limit     int      `json:"limit"`
	Parallel  int      `json:"parallel"`
	TimeOut   int      `json:"timeout"`
	CpuShares int      `json:"cpu-shares"`
	Memory    int      `json:"memory"`
}

type Proto added in v0.7.1

type Proto int
const (
	ProtoPfs Proto = iota
	ProtoS3  Proto = iota
)

Jump to

Keyboard shortcuts

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