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

Method AppendArraySliceImpl

cpp/src/arrow/array/builder_dict.h:520–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 protected:
519 template <typename c_type>
520 Status AppendArraySliceImpl(const typename TypeTraits<T>::ArrayType& dict,
521 const ArraySpan& array, int64_t offset, int64_t length) {
522 const c_type* values = array.GetValues<c_type>(1) + offset;
523 return VisitBitBlocks(
524 array.buffers[0].data, array.offset + offset, length,
525 [&](const int64_t position) {
526 const int64_t index = static_cast<int64_t>(values[position]);
527 if (dict.IsValid(index)) {
528 return Append(dict.GetView(index));
529 }
530 return AppendNull();
531 },
532 [&]() { return AppendNull(); });
533 }
534
535 template <typename IndexType>
536 Status AppendScalarImpl(const typename TypeTraits<T>::ArrayType& dict,

Callers

nothing calls this directly

Calls 5

VisitBitBlocksFunction · 0.85
AppendFunction · 0.70
AppendNullFunction · 0.70
IsValidMethod · 0.45
GetViewMethod · 0.45

Tested by

no test coverage detected