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

Method Open

be/src/exec/tuple-file-reader.cc:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51Status TupleFileReader::Open(RuntimeState *state) {
52 kudu::RWFileOptions opts;
53 opts.mode = kudu::Env::OpenMode::MUST_EXIST;
54 KUDU_RETURN_IF_ERROR(
55 kudu::Env::Default()->NewRWFile(opts, path_, &reader_),
56 "Failed to open tuple cache file");
57 // Get the file size
58 KUDU_RETURN_IF_ERROR(reader_->Size(&file_size_),
59 "Failed to get size for the tuple cache file");
60 RETURN_IF_ERROR(DebugAction(state->query_options(), "TUPLE_FILE_READER_OPEN"));
61 return Status::OK();
62}
63
64Status TupleFileReader::GetNext(RuntimeState *state,
65 BufferPool::ClientHandle* bpclient, RowBatch* output_row_batch, bool* eos) {

Callers

nothing calls this directly

Calls 5

DefaultClass · 0.85
DebugActionFunction · 0.85
OKFunction · 0.85
NewRWFileMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected