MCPcopy Create free account
hub / github.com/apache/arrow / PostDecode

Method PostDecode

cpp/src/arrow/compute/row/encode_internal.cc:207–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 static void PostDecode(const KeyColumnArray& input, KeyColumnArray* output,
208 LightContext* ctx) {
209 // Make sure that metadata and lengths are compatible.
210 DCHECK(output->metadata().is_fixed_length == input.metadata().is_fixed_length);
211 DCHECK(output->metadata().fixed_length == 0 && input.metadata().fixed_length == 1);
212 DCHECK(output->length() == input.length());
213 constexpr int buffer_index = 1;
214 DCHECK(input.data(buffer_index) != nullptr);
215 DCHECK(output->mutable_data(buffer_index) != nullptr);
216
217 util::bit_util::bytes_to_bits(
218 ctx->hardware_flags, static_cast<int>(input.length()), input.data(buffer_index),
219 output->mutable_data(buffer_index), output->bit_offset(buffer_index));
220 }
221};
222
223} // namespace

Callers

nothing calls this directly

Calls 5

bytes_to_bitsFunction · 0.85
metadataMethod · 0.45
lengthMethod · 0.45
dataMethod · 0.45
mutable_dataMethod · 0.45

Tested by

no test coverage detected