OmniSciDB
a5dc49c757
|
#include <ResultSetRecyclerHolder.h>
Public Member Functions | |
const ResultSetPtr | getCachedQueryResultSet (const size_t key) |
std::optional< std::vector < TargetMetaInfo > > | getOutputMetaInfo (QueryPlanHash key) |
bool | hasCachedQueryResultSet (const size_t key) |
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) |
std::optional< ChunkMetadataMap > | getCachedChunkMetadata (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 |
Static Public Member Functions | |
static auto | invalidateCache () |
static auto | markCachedItemAsDirty (size_t table_key) |
static ResultSetRecycler * | getResultSetRecycler () |
static ChunkMetadataRecycler * | getChunkMetadataRecycler () |
Static Private Attributes | |
static std::unique_ptr < ResultSetRecycler > | query_resultset_cache_ |
static std::unique_ptr < ChunkMetadataRecycler > | chunk_metadata_cache_ |
Definition at line 22 of file ResultSetRecyclerHolder.h.
std::optional< ChunkMetadataMap > ResultSetRecyclerHolder::getCachedChunkMetadata | ( | const size_t | key | ) |
Definition at line 59 of file ResultSetRecyclerHolder.cpp.
References CHUNK_METADATA, chunk_metadata_cache_, and CHUNK_METADATA_CACHE_DEVICE_IDENTIFIER.
const ResultSetPtr ResultSetRecyclerHolder::getCachedQueryResultSet | ( | const size_t | key | ) |
Definition at line 30 of file ResultSetRecyclerHolder.cpp.
References DataRecyclerUtil::CPU_DEVICE_IDENTIFIER, QUERY_RESULTSET, and query_resultset_cache_.
|
inlinestatic |
Definition at line 59 of file ResultSetRecyclerHolder.h.
References chunk_metadata_cache_.
std::optional< std::vector< TargetMetaInfo > > ResultSetRecyclerHolder::getOutputMetaInfo | ( | QueryPlanHash | key | ) |
Definition at line 37 of file ResultSetRecyclerHolder.cpp.
References query_resultset_cache_.
|
inlinestatic |
Definition at line 55 of file ResultSetRecyclerHolder.h.
References query_resultset_cache_.
std::vector< std::shared_ptr< Analyzer::Expr > > & ResultSetRecyclerHolder::getTargetExprs | ( | QueryPlanHash | key | ) | const |
Definition at line 81 of file ResultSetRecyclerHolder.cpp.
References query_resultset_cache_.
bool ResultSetRecyclerHolder::hasCachedQueryResultSet | ( | const size_t | key | ) |
Definition at line 26 of file ResultSetRecyclerHolder.cpp.
References query_resultset_cache_.
|
inlinestatic |
Definition at line 24 of file ResultSetRecyclerHolder.h.
References CHECK, chunk_metadata_cache_, and query_resultset_cache_.
|
inlinestatic |
Definition at line 32 of file ResultSetRecyclerHolder.h.
References CHECK, CHUNK_METADATA, chunk_metadata_cache_, DataRecyclerUtil::CPU_DEVICE_IDENTIFIER, QUERY_RESULTSET, and query_resultset_cache_.
void ResultSetRecyclerHolder::putChunkMetadataToCache | ( | const size_t | key, |
const std::unordered_set< size_t > & | input_table_keys, | ||
const ChunkMetadataMap & | chunk_metadata | ||
) |
Definition at line 65 of file ResultSetRecyclerHolder.cpp.
References CHUNK_METADATA, chunk_metadata_cache_, and CHUNK_METADATA_CACHE_DEVICE_IDENTIFIER.
void ResultSetRecyclerHolder::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 | ||
) |
Definition at line 42 of file ResultSetRecyclerHolder.cpp.
References DataRecyclerUtil::CPU_DEVICE_IDENTIFIER, ResultSetMetaInfo::keepTargetExprs(), QUERY_RESULTSET, and query_resultset_cache_.
|
staticprivate |
Definition at line 89 of file ResultSetRecyclerHolder.h.
Referenced by getCachedChunkMetadata(), getChunkMetadataRecycler(), invalidateCache(), markCachedItemAsDirty(), and putChunkMetadataToCache().
|
staticprivate |
Definition at line 85 of file ResultSetRecyclerHolder.h.
Referenced by getCachedQueryResultSet(), getOutputMetaInfo(), getResultSetRecycler(), getTargetExprs(), hasCachedQueryResultSet(), invalidateCache(), markCachedItemAsDirty(), and putQueryResultSetToCache().