MCPcopy Create free account
hub / github.com/AdRoll/baker / constructKey

Method constructKey

filter/dedup.go:92–98  ·  view source on GitHub ↗

constructKey builds a key by concatenating field values

(l baker.Record)

Source from the content-addressed store, hash-verified

90
91// constructKey builds a key by concatenating field values
92func (f *Dedup) constructKey(l baker.Record) string {
93 fields := make([][]byte, len(f.fields))
94 for i, idx := range f.fields {
95 fields[i] = l.Get(idx)
96 }
97 return string(bytes.Join(fields, f.sep))
98}

Callers 1

ProcessMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected