MCPcopy
hub / github.com/elastic/go-elasticsearch / bulkIndexer

Struct bulkIndexer

esutil/bulk_indexer.go:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293type bulkIndexer struct {
294 wg sync.WaitGroup
295 workers []*worker
296 stats *bulkIndexerStats
297
298 config BulkIndexerConfig
299 ownedClient *elasticsearch.BaseClient // non-nil when NewBulkIndexer auto-created the client; closed by Close
300 addCounter atomic.Uint64 // round-robin dispatch counter for Add()
301 flushMu sync.Mutex // serialises Flush() and Close()
302 closed atomic.Bool // set by Close()
303}
304
305type bulkIndexerStats struct {
306 numAdded uint64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected