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) PrepareEndRebalancing ¶ added in v0.0.40
func (b *Bulk) PrepareEndRebalancing()
func (*Bulk) PrepareStartRebalancing ¶ added in v0.0.40
func (b *Bulk) PrepareStartRebalancing()
Click to show internal directories.
Click to hide internal directories.