output

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouse

type ClickHouse struct {
	Dims []*model.ColumnWithType
	Dms  []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 added in v1.5.2

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

func (*ClickHouse) Drain added in v1.5.2

func (c *ClickHouse) Drain()

Drain drains flying batchs

func (*ClickHouse) Init

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

Init the clickhouse intance

func (*ClickHouse) Send added in v1.5.2

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