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

Function FindPhysicalLength

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

Source from the content-addressed store, hash-verified

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

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