|
void | write (int8_t *src, const size_t numBytes, const size_t offset=0, const MemoryLevel srcMemoryLevel=CPU_LEVEL, const int32_t deviceId=-1) override |
|
| FileBuffer (FileMgr *fm, const size_t pageSize, const ChunkKey &chunkKey, const size_t initialSize=0) |
| Constructs a FileBuffer object. More...
|
|
| FileBuffer (FileMgr *fm, const size_t pageSize, const ChunkKey &chunkKey, const SQLTypeInfo sqlType, const size_t initialSize=0) |
|
| FileBuffer (FileMgr *fm, const ChunkKey &chunkKey, const std::vector< HeaderInfo >::const_iterator &headerStartIt, const std::vector< HeaderInfo >::const_iterator &headerEndIt) |
|
| ~FileBuffer () override |
| Destructor. More...
|
|
Page | addNewMultiPage (const int32_t epoch) |
|
void | reserve (const size_t numBytes) override |
|
size_t | freeMetadataPages () |
|
size_t | freeChunkPages () |
|
size_t | freePages () |
|
void | freePagesBeforeEpoch (const int32_t targetEpoch) |
|
void | read (int8_t *const dst, const size_t numBytes=0, const size_t offset=0, const MemoryLevel dstMemoryLevel=CPU_LEVEL, const int32_t deviceId=-1) override |
|
void | write (int8_t *src, const size_t numBytes, const size_t offset=0, const MemoryLevel srcMemoryLevel=CPU_LEVEL, const int32_t deviceId=-1) override |
| Writes the contents of source (src) into new versions of the affected logical pages. More...
|
|
void | append (int8_t *src, const size_t numBytes, const MemoryLevel srcMemoryLevel=CPU_LEVEL, const int32_t deviceId=-1) override |
|
void | copyPage (Page &srcPage, Page &destPage, const size_t numBytes, const size_t offset=0) |
|
Data_Namespace::MemoryLevel | getType () const override |
|
int8_t * | getMemoryPtr () override |
| Not implemented for FileMgr – throws a runtime_error. More...
|
|
size_t | pageCount () const override |
| Returns the number of pages in the FileBuffer. More...
|
|
bool | hasDataPages () const |
|
size_t | pageSize () const override |
| Returns the size in bytes of each page in the FileBuffer. More...
|
|
virtual size_t | pageDataSize () const |
| Returns the size in bytes of the data portion of each page in the FileBuffer. More...
|
|
virtual size_t | reservedHeaderSize () const |
|
virtual std::vector< MultiPage > | getMultiPage () const |
| Returns vector of MultiPages in the FileBuffer. More...
|
|
MultiPage | getMetadataPage () const |
|
size_t | reservedSize () const override |
| Returns the total number of bytes allocated for the FileBuffer. More...
|
|
size_t | numMetadataPages () const |
| Returns the total number of used bytes in the FileBuffer. More...
|
|
bool | isMissingPages () const |
|
size_t | numChunkPages () const |
|
std::string | dump () const |
|
void | freePage (const Page &page) |
|
| AbstractBuffer (const int device_id) |
|
| AbstractBuffer (const int device_id, const SQLTypeInfo sql_type) |
|
virtual | ~AbstractBuffer () |
|
virtual void | read (int8_t *const dst, const size_t num_bytes, const size_t offset=0, const MemoryLevel dst_buffer_type=CPU_LEVEL, const int dst_device_id=-1)=0 |
|
virtual void | write (int8_t *src, const size_t num_bytes, const size_t offset=0, const MemoryLevel src_buffer_type=CPU_LEVEL, const int src_device_id=-1)=0 |
|
virtual void | append (int8_t *src, const size_t num_bytes, const MemoryLevel src_buffer_type=CPU_LEVEL, const int device_id=-1)=0 |
|
virtual void | setMemoryPtr (int8_t *new_ptr) |
|
virtual int | pin () |
|
virtual int | unPin () |
|
virtual int | getPinCount () |
|
size_t | size () const |
|
int | getDeviceId () const |
|
bool | isDirty () const |
|
bool | isAppended () const |
|
bool | isUpdated () const |
|
bool | hasEncoder () const |
|
SQLTypeInfo | getSqlType () const |
|
void | setSqlType (const SQLTypeInfo &sql_type) |
|
Encoder * | getEncoder () const |
|
void | setDirty () |
|
void | setUpdated () |
|
void | setAppended () |
|
void | setSize (const size_t size) |
|
void | clearDirtyBits () |
|
void | initEncoder (const SQLTypeInfo &tmp_sql_type) |
|
void | syncEncoder (const AbstractBuffer *src_buffer) |
|
void | copyTo (AbstractBuffer *destination_buffer, const size_t num_bytes=0) |
|
void | resetToEmpty () |
|
Definition at line 155 of file CachingFileMgr.h.