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

Method GetNextEvent

be/src/runtime/io/data-cache-trace.cc:140–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140Status TraceFileIterator::GetNextEvent(TraceEvent* event, bool* done) {
141 string line;
142 DCHECK(initialized_);
143 DCHECK(event != nullptr);
144 DCHECK(done != nullptr);
145 if (getline(stream_, line)) {
146 RETURN_IF_ERROR(JsonToTraceEvent(line, event));
147 *done = false;
148 } else {
149 *done = true;
150 }
151 return Status::OK();
152}
153
154// Simple implementation of a glog Logger that writes to a file, used for
155// cache access tracing.

Callers 2

TEST_PFunction · 0.80
ReplayFileMethod · 0.80

Calls 2

JsonToTraceEventFunction · 0.85
OKFunction · 0.85

Tested by 1

TEST_PFunction · 0.64