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

Method ArrayReplace

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

Source from the content-addressed store, hash-verified

193namespace {
194struct 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) {

Callers

nothing calls this directly

Calls 4

WithBufferFromMethod · 0.80
lengthMethod · 0.45
metadataMethod · 0.45
WithMetadataMethod · 0.45

Tested by

no test coverage detected