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

Function InsertRowsFromReferenceFile

be/src/exec/tuple-text-file-util.cc:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static Status InsertRowsFromReferenceFile(
77 ReferenceRowsMap& cache, TupleTextFileReader* reader, int64_t* row_count) {
78 TupleCacheRowFunction insert_fn = [&cache](const string& str) {
79 cache[str].reference_rows_count++;
80 return Status::OK();
81 };
82 return ForEachRow(reader, insert_fn, row_count);
83}
84
85static Status VerifyRowCount(ReferenceRowsMap& cache) {
86 for (const auto& it : cache) {

Callers 1

VerifyRowsMethod · 0.85

Calls 2

OKFunction · 0.85
ForEachRowFunction · 0.85

Tested by

no test coverage detected