worker

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlreadyIngestRows  = 0
	AlreadyIngestBytes = 0
)

Functions

This section is empty.

Types

type DatabendWorkerStatsData added in v0.1.3

type DatabendWorkerStatsData struct {
	BytesPerSecond float64
	RowsPerSecond  float64
}

type DatabendWorkerStatsRecorder added in v0.1.3

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

func NewDatabendWorkerStatsRecorder added in v0.1.3

func NewDatabendWorkerStatsRecorder() *DatabendWorkerStatsRecorder

func (*DatabendWorkerStatsRecorder) RecordMetric added in v0.1.3

func (stats *DatabendWorkerStatsRecorder) RecordMetric(bytes int, rows int)

func (*DatabendWorkerStatsRecorder) Stats added in v0.1.3

type Worker

type Worker struct {
	Name string
	Cfg  *config.Config
	Ig   ingester.DatabendIngester
	Src  source.Sourcer
	// contains filtered or unexported fields
}

func NewWorker

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

func (*Worker) IsSplitAccordingMaxGoRoutine added in v0.0.4

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

IsSplitAccordingMaxGoRoutine checks if the split key is according to the max go routine

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