csv

package
v0.0.0-...-4624acb Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBatchDecoder

func NewBatchDecoder(ctx context.Context,
	codecConfig *common.Config,
	tableInfo *model.TableInfo,
	value []byte,
) (codec.RowEventDecoder, error)

NewBatchDecoder creates a new BatchDecoder

func NewTxnEventEncoderBuilder

func NewTxnEventEncoderBuilder(config *common.Config) codec.TxnEventEncoderBuilder

NewTxnEventEncoderBuilder creates a csv batchEncoderBuilder.

Types

type BatchEncoder

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

BatchEncoder encodes the events into the byte of a batch into.

func (*BatchEncoder) AppendTxnEvent

func (b *BatchEncoder) AppendTxnEvent(
	e *model.SingleTableTxn,
	callback func(),
) error

AppendTxnEvent implements the TxnEventEncoder interface

func (*BatchEncoder) Build

func (b *BatchEncoder) Build() (messages []*common.Message)

Build implements the RowEventEncoder interface

Jump to

Keyboard shortcuts

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