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

Function GetRunEndValue

cpp/src/arrow/compute/kernels/vector_search_sorted.cc:226–239  ·  view source on GitHub ↗

Read a run-end value from any supported run-end integer representation.

Source from the content-addressed store, hash-verified

224
225/// Read a run-end value from any supported run-end integer representation.
226int64_t GetRunEndValue(const ArraySpan& run_ends, int64_t physical_index) {
227 switch (run_ends.type->id()) {
228 case Type::INT16:
229 return run_ends.GetValues<int16_t>(1)[physical_index];
230 case Type::INT32:
231 return run_ends.GetValues<int32_t>(1)[physical_index];
232 case Type::INT64:
233 return run_ends.GetValues<int64_t>(1)[physical_index];
234 default:
235 DCHECK(false) << "Unexpected run-end type for search_sorted values: "
236 << run_ends.type->ToString();
237 return 0;
238 }
239}
240
241class SearchWindow {
242 public:

Callers 1

LogicalInsertionIndexMethod · 0.85

Calls 2

idMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected