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

Method SetValues

cpp/src/parquet/statistics_test.cc:1035–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033
1034template <>
1035void TestStatisticsSortOrder<Int32Type>::SetValues() {
1036 for (int i = 0; i < NUM_VALUES; i++) {
1037 values_[i] = i - 5; // {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4};
1038 }
1039
1040 // Write UINT32 min/max values
1041 stats_[0]
1042 .set_min(std::string(reinterpret_cast<const char*>(&values_[5]), sizeof(c_type)))
1043 .set_max(std::string(reinterpret_cast<const char*>(&values_[4]), sizeof(c_type)));
1044 stats_[0].is_max_value_exact = true;
1045 stats_[0].is_min_value_exact = true;
1046
1047 // Write INT32 min/max values
1048 stats_[1]
1049 .set_min(std::string(reinterpret_cast<const char*>(&values_[0]), sizeof(c_type)))
1050 .set_max(std::string(reinterpret_cast<const char*>(&values_[9]), sizeof(c_type)));
1051 stats_[1].is_max_value_exact = true;
1052 stats_[1].is_min_value_exact = true;
1053}
1054
1055// TYPE::INT64
1056template <>

Callers 1

WriteParquetMethod · 0.95

Calls 3

resizeMethod · 0.80
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected