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

Function GetMaxIndex

cpp/src/arrow/compute/kernels/vector_selection_test.cc:1457–1463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1455
1456template <typename T>
1457T GetMaxIndex(int64_t values_length) {
1458 int64_t max_index = values_length - 1;
1459 if (max_index > static_cast<int64_t>(std::numeric_limits<T>::max())) {
1460 max_index = std::numeric_limits<T>::max();
1461 }
1462 return static_cast<T>(max_index);
1463}
1464
1465template <>
1466uint64_t GetMaxIndex(int64_t values_length) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected