worker

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

func NewWorker

func NewWorker(cfg *config.Config, name string, ig ingester.DatabendIngester, src *source.Source) *Worker

func (*Worker) IsSplitAccordingMaxGoRoutine added in v0.0.4

func (w *Worker) IsSplitAccordingMaxGoRoutine(minSplitKey, maxSplitKey, batchSize int) bool

func (*Worker) IsWorkerCorrect

func (w *Worker) IsWorkerCorrect() (int, int, bool)

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

func (*Worker) StepBatchByTimeSplitKey added in v0.0.6

func (w *Worker) StepBatchByTimeSplitKey() error

Jump to

Keyboard shortcuts

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