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

Method writeMeta

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

writeMeta writes the item metadata to the buffer.

(item *BulkIndexerItem)

Source from the content-addressed store, hash-verified

640
641// writeMeta writes the item metadata to the buffer.
642func (w *worker) writeMeta(item *BulkIndexerItem) error {
643 if _, err := w.buf.Write(item.meta.Bytes()); err != nil {
644 return err
645 }
646 return nil
647}
648
649// writeBody writes the item body to the buffer.
650func (w *worker) writeBody(item *BulkIndexerItem) error {

Callers 2

TestBulkIndexerFunction · 0.95
runMethod · 0.95

Calls 2

WriteMethod · 0.45
BytesMethod · 0.45

Tested by 1

TestBulkIndexerFunction · 0.76