master

package
v0.0.0-...-94c467b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	IsLocal bool
	Workers map[string]string
	// contains filtered or unexported fields
}

func NewContext

func NewContext(isLocal bool, minWorkers int, masterPath string) *Context

func (*Context) DoAction

func (c *Context) DoAction(plan []*protos.IPartition) []*protos.IPartitionResult

func (*Context) InitContext

func (c *Context) InitContext()

type Mafream

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

func NewDataFrame

func NewDataFrame(c *Context, columns []string, numPartitions int) *Mafream

func (*Mafream) Count

func (w *Mafream) Count() *Mafream

func (*Mafream) Show

func (w *Mafream) Show() *Mafream

type Master

type Master struct {
	MasterPath string

	Http *gin.Engine
	// contains filtered or unexported fields
}

func NewMaster

func NewMaster(isLocal bool, host string, port int, minWorkers int) *Master

func (*Master) Load

func (m *Master) Load() *Mafream

func (*Master) Parallelize

func (m *Master) Parallelize(data [][]string, option common.Options) *Mafream

func (*Master) RegisterHandler

func (m *Master) RegisterHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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