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

Function ValidateSorted

cpp/src/arrow/compute/kernels/vector_sort_test.cc:972–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970
971template <typename ArrayType>
972void ValidateSorted(const ArrayType& array, UInt64Array& offsets, SortOrder order,
973 NullPlacement null_placement) {
974 ValidateOutput(array);
975 SortComparator<ArrayType> compare{order, null_placement};
976 for (int i = 1; i < array.length(); i++) {
977 uint64_t lhs = offsets.Value(i - 1);
978 uint64_t rhs = offsets.Value(i);
979 ASSERT_TRUE(compare(array, lhs, rhs));
980 }
981}
982
983TYPED_TEST_SUITE(TestArraySortIndicesRandom, SortIndicesableTypes);
984

Callers

nothing calls this directly

Calls 3

ValidateOutputFunction · 0.85
lengthMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected