(ctx context.Context, sctx *super.Context, pool *Pool, vectorEnabled bool)
| 180 | } |
| 181 | |
| 182 | func NewSortedWriter(ctx context.Context, sctx *super.Context, pool *Pool, vectorEnabled bool) *SortedWriter { |
| 183 | return &SortedWriter{ |
| 184 | comparator: ImportComparator(sctx, pool), |
| 185 | ctx: ctx, |
| 186 | sctx: sctx, |
| 187 | sortKey: pool.SortKeys.Primary(), |
| 188 | pool: pool, |
| 189 | vectorEnabled: vectorEnabled, |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | func (w *SortedWriter) Write(val super.Value) error { |
| 194 | key := val.DerefPath(w.sortKey.Key).MissingAsNull() |
no test coverage detected