bulk

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchItem added in v1.1.28

type BatchItem struct {
	Action *document.ESActionDocument
	Bytes  []byte
}

type Bulk

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

func NewBulk

func NewBulk(
	config *config.Config,
	dcpCheckpointCommit func(),
	esClient *elasticsearch.Client,
	sinkResponseHandler dcpElasticsearch.SinkResponseHandler,
) (*Bulk, error)

func (*Bulk) AddActions

func (b *Bulk) AddActions(
	ctx *models.ListenerContext,
	eventTime time.Time,
	actions []document.ESActionDocument,
	collectionName string,
	isLastChunk bool,
)

func (*Bulk) Close

func (b *Bulk) Close()

func (*Bulk) GetMetric

func (b *Bulk) GetMetric() *Metric

func (*Bulk) PrepareEndRebalancing added in v0.0.40

func (b *Bulk) PrepareEndRebalancing()

func (*Bulk) PrepareStartRebalancing added in v0.0.40

func (b *Bulk) PrepareStartRebalancing()

func (*Bulk) StartBulk

func (b *Bulk) StartBulk()

type Metric

type Metric struct {
	ProcessLatencyMs            int64
	BulkRequestProcessLatencyMs int64
}

Jump to

Keyboard shortcuts

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