MCPcopy
hub / github.com/pingcap/tidb / NewStringSet

Function NewStringSet

pkg/util/set/string_set.go:27–33  ·  view source on GitHub ↗

NewStringSet builds a string set.

(ss ...string)

Source from the content-addressed store, hash-verified

25
26// NewStringSet builds a string set.
27func NewStringSet(ss ...string) StringSet {
28 set := make(StringSet, len(ss))
29 for _, s := range ss {
30 set.Insert(s)
31 }
32 return set
33}
34
35// Exist checks whether `val` exists in `s`.
36func (s StringSet) Exist(val string) bool {

Callers 15

skipFlakyFunction · 0.92
skipTazelFunction · 0.92
checkRecursiveViewMethod · 0.92
mergeMethod · 0.92
extractColMethod · 0.92
ExtractMethod · 0.92
initFunction · 0.92
ListColumnsMethod · 0.92
ListIndexesMethod · 0.92
TestMetricTableExtractorFunction · 0.92

Calls 1

InsertMethod · 0.65