| 193 | namespace { |
| 194 | struct TransformBoolean { |
| 195 | static KeyColumnArray ArrayReplace(const KeyColumnArray& column, |
| 196 | const KeyColumnArray& temp) { |
| 197 | // Make sure that the temp buffer is large enough |
| 198 | DCHECK(temp.length() >= column.length() && temp.metadata().is_fixed_length && |
| 199 | temp.metadata().fixed_length >= sizeof(uint8_t)); |
| 200 | KeyColumnMetadata metadata; |
| 201 | metadata.is_fixed_length = true; |
| 202 | metadata.fixed_length = sizeof(uint8_t); |
| 203 | constexpr int buffer_index = 1; |
| 204 | return column.WithBufferFrom(temp, buffer_index).WithMetadata(metadata); |
| 205 | } |
| 206 | |
| 207 | static void PostDecode(const KeyColumnArray& input, KeyColumnArray* output, |
| 208 | LightContext* ctx) { |
nothing calls this directly
no test coverage detected