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

Function Build

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

Source from the content-addressed store, hash-verified

249}
250
251void Build(TestCtx* ctx, vector<TupleRow*>& bdata) {
252 HashTable* ht = ctx->hash_table_;
253 HashTableCtx* ht_ctx = ctx->hash_context_.get();
254 for (int i = 0; i < bdata.size(); i++) {
255 TupleRow* row = bdata[i];
256 if (!ht_ctx->EvalAndHashBuild(row)) continue;
257 BufferedTupleStream::FlatRowPtr dummy_flat_row = nullptr;
258 Status status;
259 bool success = ht->Insert(ht_ctx, dummy_flat_row, row, &status);
260 CHECK(status.ok() && success) << "Inserting a tuple in HashTable failed";
261 }
262}
263
264namespace build {
265void SetUp(void* args) {

Callers 2

BenchmarkFunction · 0.85
mainFunction · 0.85

Calls 5

EvalAndHashBuildMethod · 0.80
getMethod · 0.65
sizeMethod · 0.45
InsertMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected