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

Function PartitionNullsAndNans

cpp/src/arrow/compute/kernels/vector_sort_internal.h:294–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293template <typename ArrayType, typename Partitioner>
294NullLikePartition PartitionNullsAndNans(std::span<uint64_t> indices,
295 const ArrayType& values, int64_t offset,
296 NullPlacement null_placement) {
297 // Partition nulls at start (resp. end), and null-like values just before (resp. after)
298 NullPartition p =
299 PartitionNullsOnly<Partitioner>(indices, values, offset, null_placement);
300 auto q =
301 PartitionNans<ArrayType, Partitioner>(p.non_nulls, values, offset, null_placement);
302 return NullLikePartition{.non_null_like_range = q.non_null_like_range,
303 .nan_range = q.nan_range,
304 .null_range = p.nulls};
305}
306
307template <typename ArrayType, typename Partitioner>
308NullLikePartition PartitionNansOnly(std::span<uint64_t> indices, const ArrayType& values,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected