mapred

package
v0.0.0-...-9d38f52 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listen

type Listen func(name string) (<-chan grid.Request, func() error, error)

type Open

type Open func(name string) (*storage.DB, error)

type Process

type Process struct {
	// contains filtered or unexported fields
}

Process for mapping and reducing.

func New

func New(parent, graphType, graphName string, conf []byte, def *graph.Definition, o Open, s Send, l Listen) *Process

New map and reduce process.

func (*Process) Run

func (p *Process) Run() error

Run process.

func (*Process) SetRing

func (p *Process) SetRing(r *schedule.Ring)

func (*Process) Stop

func (p *Process) Stop()

Stop mapping, reducing and triggering.

func (*Process) String

func (p *Process) String() string

String description of process.

type Send

type Send func(timeout time.Duration, receiver string, msg interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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