15 #ifndef IMPALA_RUNTIME_TMP_FILE_MGR_H
16 #define IMPALA_RUNTIME_TMP_FILE_MGR_H
19 #include "gen-cpp/Types_types.h"
static int num_tmp_devices()
static Status GetFile(int tmp_device_id, const TUniqueId &query_id, File **new_file)
const TUniqueId & query_id() const
Status AllocateSpace(int64_t write_size, int64_t *offset)
const std::string & path() const
std::string path_
Path of the physical file in the filesystem.
int64_t current_offset_
Offset to which the next block will be written.
static std::vector< std::string > tmp_dirs_
The created tmp directories, atmost one per device.
static const uint64_t AVAILABLE_SPACE_THRESHOLD_MB
int disk_id_
The id of the disk on which the physical file lies.
File(const std::string &path)
uint8_t offset[7 *64-sizeof(uint64_t)]
static const std::string TMP_SUB_DIR_NAME