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

Method Reset

be/src/experiments/data-provider.cc:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void DataProvider::Reset(int num_rows, int batch_size, const vector<DataProvider::ColDesc>& cols) {
49 num_rows_ = num_rows;
50 batch_size_ = batch_size;
51 rows_returned_ = 0;
52 row_size_ = 0;
53 cols_ = cols;
54 for (int i = 0; i < cols_.size(); ++i) {
55 row_size_ += cols[i].bytes;
56 }
57 data_.reset(new char[row_size_ * batch_size_]);
58 COUNTER_SET(bytes_generated_, 0);
59}
60
61void DataProvider::SetSeed(int seed) {
62 rand_generator_.seed(seed);

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 2

resetMethod · 0.65
sizeMethod · 0.45

Tested by 2

mainFunction · 0.36
mainFunction · 0.36