(st *state)
| 61 | } |
| 62 | |
| 63 | func 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 | |
| 74 | type MapEntry []byte |
| 75 |
no test coverage detected