#include <ForeignStorageInterface.h>
|
| ForeignStorageBufferMgr (const int db_id, const int table_id, PersistentForeignStorageInterface *persistent_foreign_storage) |
|
void | checkpoint () override |
|
Data_Namespace::AbstractBuffer * | createBuffer (const ChunkKey &key, const size_t pageSize=0, const size_t initialSize=0) override |
|
Data_Namespace::AbstractBuffer * | getBuffer (const ChunkKey &key, const size_t numBytes=0) override |
|
void | fetchBuffer (const ChunkKey &key, Data_Namespace::AbstractBuffer *destBuffer, const size_t numBytes=0) override |
|
void | getChunkMetadataVecForKeyPrefix (ChunkMetadataVector &chunkMetadataVec, const ChunkKey &keyPrefix) override |
|
std::string | getStringMgrType () override |
|
size_t | getNumChunks () override |
|
void | deleteBuffer (const ChunkKey &key, const bool purge=true) override |
|
void | deleteBuffersWithPrefix (const ChunkKey &keyPrefix, const bool purge=true) override |
|
Data_Namespace::AbstractBuffer * | putBuffer (const ChunkKey &key, Data_Namespace::AbstractBuffer *srcBuffer, const size_t numBytes=0) override |
|
bool | isBufferOnDevice (const ChunkKey &key) override |
|
std::string | printSlabs () override |
|
size_t | getMaxSize () override |
|
size_t | getInUseSize () override |
|
size_t | getAllocated () override |
|
bool | isAllocationCapped () override |
|
void | checkpoint (const int db_id, const int tb_id) override |
|
Data_Namespace::AbstractBuffer * | alloc (const size_t numBytes=0) override |
|
void | free (Data_Namespace::AbstractBuffer *buffer) override |
|
MgrType | getMgrType () override |
|
void | removeTableRelatedDS (const int db_id, const int table_id) override |
|
Definition at line 120 of file ForeignStorageInterface.h.
void ForeignStorageBufferMgr::checkpoint |
( |
| ) |
|
|
override |
void ForeignStorageBufferMgr::checkpoint |
( |
const int |
db_id, |
|
|
const int |
tb_id |
|
) |
| |
|
inlineoverride |
void ForeignStorageBufferMgr::deleteBuffer |
( |
const ChunkKey & |
key, |
|
|
const bool |
purge = true |
|
) |
| |
|
inlineoverride |
void ForeignStorageBufferMgr::deleteBuffersWithPrefix |
( |
const ChunkKey & |
keyPrefix, |
|
|
const bool |
purge = true |
|
) |
| |
|
inlineoverride |
size_t ForeignStorageBufferMgr::getAllocated |
( |
| ) |
|
|
inlineoverride |
Definition at line 108 of file ForeignStorageInterface.cpp.
References CHECK, chunk_index_, chunk_index_mutex_, and run_benchmark_import::type.
120 std::search(chunk_it->first.begin(),
121 chunk_it->first.begin() + keyPrefix.size(),
123 keyPrefix.end()) != chunk_it->first.begin() + keyPrefix.size()) {
124 const auto& chunk_key = chunk_it->first;
125 if (chunk_key.size() == 5) {
126 if (chunk_key[4] == 1) {
127 const auto& buffer = *chunk_it->second;
128 auto type = buffer.getSqlType();
129 auto size = buffer.size();
130 auto subkey = chunk_key;
133 auto bs = index_buf.size() / index_buf.getSqlType().get_size();
134 auto chunk_metadata =
136 chunkMetadataVec.emplace_back(chunk_key, chunk_metadata);
139 const auto& buffer = *chunk_it->second;
140 auto chunk_metadata = std::make_shared<ChunkMetadata>();
141 chunk_metadata->sqlType = buffer.getSqlType();
142 buffer.getEncoder()->getMetadata(chunk_metadata);
143 chunkMetadataVec.emplace_back(chunk_key, chunk_metadata);
std::unique_lock< T > unique_lock
std::map< ChunkKey, std::unique_ptr< ForeignStorageBuffer > > chunk_index_
heavyai::shared_mutex chunk_index_mutex_
size_t ForeignStorageBufferMgr::getInUseSize |
( |
| ) |
|
|
inlineoverride |
size_t ForeignStorageBufferMgr::getMaxSize |
( |
| ) |
|
|
inlineoverride |
MgrType ForeignStorageBufferMgr::getMgrType |
( |
| ) |
|
|
inlineoverride |
size_t ForeignStorageBufferMgr::getNumChunks |
( |
| ) |
|
|
inlineoverride |
std::string ForeignStorageBufferMgr::getStringMgrType |
( |
| ) |
|
|
inlineoverride |
bool ForeignStorageBufferMgr::isAllocationCapped |
( |
| ) |
|
|
inlineoverride |
bool ForeignStorageBufferMgr::isBufferOnDevice |
( |
const ChunkKey & |
key | ) |
|
|
inlineoverride |
std::string ForeignStorageBufferMgr::printSlabs |
( |
| ) |
|
|
inlineoverride |
void ForeignStorageBufferMgr::removeTableRelatedDS |
( |
const int |
db_id, |
|
|
const int |
table_id |
|
) |
| |
|
inlineoverride |
The documentation for this class was generated from the following files: