MCPcopy
hub / github.com/uber/aresdb / NewEnumMutator

Function NewEnumMutator

controller/mutators/etcd/enum_mutator.go:48–55  ·  view source on GitHub ↗

NewEnumMutator creates EnumMutator

(store kv.TxnStore, schemaMutator common.TableSchemaMutator)

Source from the content-addressed store, hash-verified

46
47// NewEnumMutator creates EnumMutator
48func NewEnumMutator(store kv.TxnStore, schemaMutator common.TableSchemaMutator) common.EnumMutator {
49 mutator := &enumMutator{
50 schemaMutator: schemaMutator,
51 txnStore: store,
52 enumCacheMap: make(map[string]enumCache),
53 }
54 return mutator
55}
56
57func (e *enumMutator) ExtendEnumCases(namespace, tableName, columnName string, enumCases []string) ([]int, error) {
58 schema, err := e.schemaMutator.GetTable(namespace, tableName)

Callers 3

startDataNodeFunction · 0.92
TestEnumMutatorFunction · 0.85
TestSchemaMutatorFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEnumMutatorFunction · 0.68
TestSchemaMutatorFunction · 0.68