MCPcopy Create free account
hub / github.com/apache/impala / CreateDataSet

Method CreateDataSet

be/src/benchmarks/hash-table-benchmark.cc:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 return row;
213 }
214 void CreateDataSet(int num_buckets, int unique_percent, int dup = 2) {
215 int u_idx = (num_buckets * unique_percent) / 100;
216 TupleRow* row;
217 for (int i = 1; i <= u_idx; i++) {
218 row = CreateTupleRow(i);
219 data.push_back(row);
220 }
221 int count = u_idx;
222 for (int j = u_idx + 1; j <= num_buckets && count < num_buckets; j++) {
223 for (int i = 0; i < dup && count < num_buckets; i++) {
224 row = CreateTupleRow(j);
225 data.push_back(row);
226 count++;
227 }
228 }
229 }
230 void CreateAbsentKeysData(int num_buckets) {
231 data.clear();
232 TupleRow* row;

Callers 1

mainFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected