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

Method Close

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

Close waits until all added items are flushed and closes the indexer.

(context.Context)

Source from the content-addressed store, hash-verified

54
55 // Close waits until all added items are flushed and closes the indexer.
56 Close(context.Context) error
57
58 // Flush drains all currently queued items, flushes all worker buffers to
59 // Elasticsearch, and waits for the flushes to complete. The indexer remains

Callers 15

mainFunction · 0.95
runMethod · 0.95
initFunction · 0.95
TestBulkIndexerFunction · 0.95
TestBulkIndexerFlushFunction · 0.95
BenchmarkBulkIndexerFunction · 0.95
ExampleNewBulkIndexerFunction · 0.95
ExampleBulkIndexer_FlushFunction · 0.95

Implementers 1

bulkIndexeresutil/bulk_indexer.go

Calls

no outgoing calls

Tested by 15

TestBulkIndexerFunction · 0.76
TestBulkIndexerFlushFunction · 0.76
BenchmarkBulkIndexerFunction · 0.76
ExampleNewBulkIndexerFunction · 0.76
ExampleBulkIndexer_FlushFunction · 0.76
TestNew_CloseFunction · 0.52
TestNewBase_CloseFunction · 0.52
TestNewTyped_CloseFunction · 0.52