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

Method SetValues

cpp/src/parquet/statistics_test.cc:1102–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100
1101template <>
1102void TestStatisticsSortOrder<Int32Type>::SetValues() {
1103 for (int i = 0; i < NUM_VALUES; i++) {
1104 values_[i] = i - 5; // {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4};
1105 }
1106
1107 // Write UINT32 min/max values
1108 stats_[0]
1109 .set_min(std::string(reinterpret_cast<const char*>(&values_[5]), sizeof(c_type)))
1110 .set_max(std::string(reinterpret_cast<const char*>(&values_[4]), sizeof(c_type)));
1111 stats_[0].is_max_value_exact = true;
1112 stats_[0].is_min_value_exact = true;
1113
1114 // Write INT32 min/max values
1115 stats_[1]
1116 .set_min(std::string(reinterpret_cast<const char*>(&values_[0]), sizeof(c_type)))
1117 .set_max(std::string(reinterpret_cast<const char*>(&values_[9]), sizeof(c_type)));
1118 stats_[1].is_max_value_exact = true;
1119 stats_[1].is_min_value_exact = true;
1120}
1121
1122// TYPE::INT64
1123template <>

Callers 1

WriteParquetMethod · 0.95

Calls 3

resizeMethod · 0.80
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected