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

Method FindPhysicalIndexTestImpl

cpp/src/arrow/util/ree_util_test.cc:35–43  ·  view source on GitHub ↗

Re-implementation of FindPhysicalIndex that uses trivial linear-search instead of the more efficient implementation.

Source from the content-addressed store, hash-verified

33 // Re-implementation of FindPhysicalIndex that uses trivial linear-search
34 // instead of the more efficient implementation.
35 int64_t FindPhysicalIndexTestImpl(const RunEndCType* run_ends, int64_t run_ends_size,
36 int64_t i, int64_t absolute_offset = 0) {
37 for (int64_t j = 0; j < run_ends_size; j++) {
38 if (absolute_offset + i < run_ends[j]) {
39 return j;
40 }
41 }
42 return run_ends_size;
43 }
44};
45TYPED_TEST_SUITE_P(ReeUtilTest);
46

Callers 1

TYPED_TEST_PFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected