Min implements the Datum interface.
(ctx context.Context, cmpCtx CompareContext)
| 4687 | |
| 4688 | // Min implements the Datum interface. |
| 4689 | func (d *DTuple) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool) { |
| 4690 | res := NewDTupleWithLen(d.typ, len(d.D)) |
| 4691 | for i, v := range d.D { |
| 4692 | m, ok := v.Min(ctx, cmpCtx) |
| 4693 | if !ok { |
| 4694 | return nil, false |
| 4695 | } |
| 4696 | res.D[i] = m |
| 4697 | } |
| 4698 | return res, true |
| 4699 | } |
| 4700 | |
| 4701 | // IsMax implements the Datum interface. |
| 4702 | func (d *DTuple) IsMax(ctx context.Context, cmpCtx CompareContext) bool { |
nothing calls this directly
no test coverage detected