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

Method FindFirstTuple

be/src/exec/json/hdfs-json-scanner.cc:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195Status HdfsJsonScanner::FindFirstTuple() {
196 DCHECK_EQ(scanner_state_, OPENED);
197 if (stream_->scan_range()->offset() == 0) {
198 scanner_state_ = SCANNING;
199 return Status::OK();
200 }
201 SCOPED_TIMER(parse_json_timer_);
202 if (json_parser_->MoveToNextJson()) {
203 scanner_state_ = SCANNING;
204 DCHECK_OK(buffer_status_);
205 }
206 return buffer_status_;
207}
208
209Status HdfsJsonScanner::ParseWrapper(int max_tuples, int* num_tuples) {
210 DCHECK(json_parser_->IsTidy());

Callers

nothing calls this directly

Calls 4

OKFunction · 0.85
MoveToNextJsonMethod · 0.80
offsetMethod · 0.45
scan_rangeMethod · 0.45

Tested by

no test coverage detected