A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
|
#include <PDBFile.h>
Public Member Functions | |
virtual | ~PDBFileInterface () |
virtual bool | openAll ()=0 |
virtual bool | closeAll ()=0 |
virtual void | clear ()=0 |
virtual int | appendPage (FilePartitionID partitionId, PDBPagePtr page)=0 |
virtual int | writeMeta ()=0 |
virtual int | updateMeta ()=0 |
virtual size_t | loadPage (FilePartitionID partitionId, unsigned int pageSeqInPartition, char *pageInCache, size_t length)=0 |
virtual unsigned int | getAndSetNumFlushedPages ()=0 |
virtual unsigned int | getNumFlushedPages ()=0 |
virtual NodeID | getNodeId ()=0 |
virtual DatabaseID | getDbId ()=0 |
virtual UserTypeID | getTypeId ()=0 |
virtual SetID | getSetId ()=0 |
virtual PageID | getLastFlushedPageID ()=0 |
virtual PageID | getLatestPageID ()=0 |
virtual size_t | getPageSize ()=0 |
virtual size_t | getPageSizeInMeta ()=0 |
virtual FileType | getFileType ()=0 |
This class wraps an interface to implement different kinds of disk file formats for data persistence.
|
inlinevirtual |
|
pure virtual |
To append page to a file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To delete a file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To close a file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To set and return total number of flushed pages;
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return DatabaseID associated with the file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return the file type of the file: SequenceFile or PartitionedFile
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return the PageID of last page flushed to the file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return the PageID of latest page.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return NodeID associated with the file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return total number of flushed pages.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return page size of the file
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return page size of the file by looking into the meta data.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return SetID associated with the file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To return UserTypeID associated with the file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To load a page from the file partition to cache. If the file is of SequenceFile type, set the partitionId = 0;
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To open a file.
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To update meta data of a file
Implemented in PartitionedFile, and SequenceFile.
|
pure virtual |
To initialize meta data of a file.
Implemented in PartitionedFile, and SequenceFile.