| 49 | } |
| 50 | |
| 51 | Status 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 | |
| 64 | Status TupleFileReader::GetNext(RuntimeState *state, |
| 65 | BufferPool::ClientHandle* bpclient, RowBatch* output_row_batch, bool* eos) { |
nothing calls this directly
no test coverage detected