SetSorted sets the sorted flag on the DTuple. This should be used when a DTuple is known to be sorted based on the datums added to it.
()
| 3131 | // SetSorted sets the sorted flag on the DTuple. This should be used when a |
| 3132 | // DTuple is known to be sorted based on the datums added to it. |
| 3133 | func (d *DTuple) SetSorted() *DTuple { |
| 3134 | if d.ContainsNull() { |
| 3135 | // A DTuple that contains a NULL (see ContainsNull) cannot be marked as sorted. |
| 3136 | return d |
| 3137 | } |
| 3138 | d.sorted = true |
| 3139 | return d |
| 3140 | } |
| 3141 | |
| 3142 | // AssertSorted asserts that the DTuple is sorted. |
| 3143 | func (d *DTuple) AssertSorted() { |