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

Function FindPhysicalLength

cpp/src/arrow/util/ree_util.h:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112/// offset to length
113template <typename RunEndCType>
114int64_t FindPhysicalLength(const RunEndCType* run_ends, int64_t run_ends_size,
115 int64_t length, int64_t offset) {
116 auto [_, physical_length] =
117 FindPhysicalRange<RunEndCType>(run_ends, run_ends_size, length, offset);
118 // GH-37107: This is a workaround for GCC 7. GCC 7 doesn't ignore
119 // variables in structured binding automatically from unused
120 // variables when one of these variables are used.
121 // See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81767
122 ARROW_UNUSED(_);
123 return physical_length;
124}
125
126/// \brief Find the physical index into the values array of the REE ArraySpan
127///

Callers 4

TYPED_TEST_PFunction · 0.70
LogicalValuesMethod · 0.50
FindPhysicalLengthMethod · 0.50
VisitMethod · 0.50

Calls

no outgoing calls

Tested by 1

TYPED_TEST_PFunction · 0.56