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

Method FixBinaryAccess

cpp/src/arrow/compute/util.h:191–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 return std::min(num_rows_safe, num_rows);
190 }
191 static int64_t FixBinaryAccess(int num_bytes_accessed_together, int64_t num_rows,
192 int64_t length) {
193 int64_t num_rows_to_skip = bit_util::CeilDiv(length, num_bytes_accessed_together);
194 int64_t num_rows_safe =
195 std::max(static_cast<int64_t>(0LL), num_rows - num_rows_to_skip);
196 return num_rows_safe;
197 }
198 static int64_t FixVarBinaryAccess(int num_bytes_accessed_together, int64_t num_rows,
199 const uint32_t* offsets) {
200 // Do not process rows that could read past the end of the buffer using N

Callers

nothing calls this directly

Calls 1

CeilDivFunction · 0.85

Tested by

no test coverage detected