output

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	SeriesQuotas sync.Map
)

Functions

This section is empty.

Types

type ClickHouse

type ClickHouse struct {
	Dims     []*model.ColumnWithType
	NumDims  int
	IdxSerID int
	NameKey  string

	TableName string

	DimSerID  string
	DimMgmtID 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) AllowWriteSeries added in v0.5.0

func (c *ClickHouse) AllowWriteSeries(sid, mid int64) (allowed bool)

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) GetMetricTable added in v0.5.0

func (c *ClickHouse) GetMetricTable() string

func (*ClickHouse) GetSeriesQuotaKey added in v0.5.0

func (c *ClickHouse) GetSeriesQuotaKey() string

func (*ClickHouse) Init

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

Init the clickhouse intance

func (*ClickHouse) Send

func (c *ClickHouse) Send(batch *model.Batch, traceId string)

Send a batch to clickhouse

func (*ClickHouse) SetSeriesQuota added in v0.5.0

func (c *ClickHouse) SetSeriesQuota(sq *model.SeriesQuota)

type DistTblInfo added in v0.5.0

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

Jump to

Keyboard shortcuts

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