35 auto resultset_cache_tbl_key =
37 if (resultset_cache_tbl_key.has_value()) {
40 *resultset_cache_tbl_key,
44 auto chunk_metadata_cache_tbl_key =
46 if (chunk_metadata_cache_tbl_key.has_value()) {
49 *chunk_metadata_cache_tbl_key,
71 const std::unordered_set<size_t>& input_table_keys,
73 size_t resultset_size,
74 std::vector<std::shared_ptr<Analyzer::Expr>>& target_exprs);
79 const std::unordered_set<size_t>& input_table_keys,
static std::unique_ptr< ResultSetRecycler > query_resultset_cache_
static auto invalidateCache()
std::shared_ptr< ResultSet > ResultSetPtr
const ResultSetPtr getCachedQueryResultSet(const size_t key)
static std::unique_ptr< ChunkMetadataRecycler > chunk_metadata_cache_
bool hasCachedQueryResultSet(const size_t key)
void putChunkMetadataToCache(const size_t key, const std::unordered_set< size_t > &input_table_keys, const ChunkMetadataMap &chunk_metadata)
std::vector< std::shared_ptr< Analyzer::Expr > > & getTargetExprs(QueryPlanHash key) const
std::optional< std::vector< TargetMetaInfo > > getOutputMetaInfo(QueryPlanHash key)
static ChunkMetadataRecycler * getChunkMetadataRecycler()
std::optional< ChunkMetadataMap > getCachedChunkMetadata(const size_t key)
static ResultSetRecycler * getResultSetRecycler()
static auto markCachedItemAsDirty(size_t table_key)
static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER
void putQueryResultSetToCache(const size_t key, const std::unordered_set< size_t > &input_table_keys, const ResultSetPtr query_result, size_t resultset_size, std::vector< std::shared_ptr< Analyzer::Expr >> &target_exprs)