src/storage/source/SequenceFile.cc
size_t SequenceFile::loadPage(FilePartitionID partitionId,
                              unsigned int pageSeqInPartition,
                              char* pageInCache,
                              size_t length) {
    if (this->file == nullptr) {
        return 0;
    }
    seekPage(pageSeqInPartition);
    return fread(pageInCache, sizeof(char), length, this->file);
}
// Load data of given length on the page specified to cache
Load data of given length on the page specified to cache
Load data of given length on the page specified to cache
size_t SequenceFile::loadPage(FilePartitionID partitionId,
                              unsigned int pageSeqInPartition,
                              char* pageInCache,
                              size_t length) {
    if (this->file == nullptr) {
        return 0;
    }
    seekPage(pageSeqInPartition);
    return fread(pageInCache, sizeof(char), length, this->file);
}
size_t SequenceFile :: loadPage ( FilePartitionID partitionId , unsigned int pageSeqInPartition , char * pageInCache , size_t length ) { if ( this -> file == nullptr ) { return 0 ; } seekPage ( pageSeqInPartition ) ; return fread ( pageInCache , sizeof ( char ) , length , this -> file ) ; }
Load data of given length on the page specified to cache
Load data of given length on the page specified to cache