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

Function FindPhysicalIndex

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

Source from the content-addressed store, hash-verified

148} // namespace internal
149
150int64_t FindPhysicalIndex(const ArraySpan& span, int64_t i, int64_t absolute_offset) {
151 const auto type_id = RunEndsArray(span).type->id();
152 if (type_id == Type::INT16) {
153 return internal::FindPhysicalIndex<int16_t>(span, i, absolute_offset);
154 }
155 if (type_id == Type::INT32) {
156 return internal::FindPhysicalIndex<int32_t>(span, i, absolute_offset);
157 }
158 DCHECK_EQ(type_id, Type::INT64);
159 return internal::FindPhysicalIndex<int64_t>(span, i, absolute_offset);
160}
161
162int64_t FindPhysicalLength(const ArraySpan& span) {
163 auto type_id = RunEndsArray(span).type->id();

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected