MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / newMapper

Function newMapper

dgraph/cmd/bulk/mapper.go:63–72  ·  view source on GitHub ↗
(st *state)

Source from the content-addressed store, hash-verified

61}
62
63func newMapper(st *state) *mapper {
64 shards := make([]shardState, st.opt.MapShards)
65 for i := range shards {
66 shards[i].cbuf = newMapperBuffer(st.opt)
67 }
68 return &mapper{
69 state: st,
70 shards: shards,
71 }
72}
73
74type MapEntry []byte
75

Callers 1

newLoaderFunction · 0.85

Calls 1

newMapperBufferFunction · 0.85

Tested by

no test coverage detected