output

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTblNotExist = errors.Newf("table doesn't exist")
)

Functions

This section is empty.

Types

type ClickHouse

type ClickHouse struct {
	Dims     []*model.ColumnWithType
	IdxSerID int
	NameKey  string
	// contains filtered or unexported fields
}

ClickHouse is an output service consumers from kafka messages

func NewClickHouse

func NewClickHouse(cfg *config.Config, taskCfg *config.TaskConfig) *ClickHouse

NewClickHouse new a clickhouse instance

func (*ClickHouse) ChangeSchema

func (c *ClickHouse) ChangeSchema(newKeys *sync.Map) (err error)

func (*ClickHouse) Drain

func (c *ClickHouse) Drain()

Drain drains flying batchs

func (*ClickHouse) Init

func (c *ClickHouse) Init() (err error)

Init the clickhouse intance

func (*ClickHouse) Send

func (c *ClickHouse) Send(batch *model.Batch)

Send a batch to clickhouse

Jump to

Keyboard shortcuts

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