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

Function FindPhysicalRange

cpp/src/arrow/util/ree_util.cc:174–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174std::pair<int64_t, int64_t> FindPhysicalRange(const ArraySpan& span, int64_t offset,
175 int64_t length) {
176 const auto& run_ends_span = RunEndsArray(span);
177 auto type_id = run_ends_span.type->id();
178 if (type_id == Type::INT16) {
179 auto* run_ends = run_ends_span.GetValues<int16_t>(1);
180 return internal::FindPhysicalRange<int16_t>(run_ends, run_ends_span.length, length,
181 offset);
182 }
183 if (type_id == Type::INT32) {
184 auto* run_ends = run_ends_span.GetValues<int32_t>(1);
185 return internal::FindPhysicalRange<int32_t>(run_ends, run_ends_span.length, length,
186 offset);
187 }
188 DCHECK_EQ(type_id, Type::INT64);
189 auto* run_ends = run_ends_span.GetValues<int64_t>(1);
190 return internal::FindPhysicalRange<int64_t>(run_ends, run_ends_span.length, length,
191 offset);
192}
193
194namespace {
195

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected