Cached files.
More...
◆ CachedFile()
| duckdb::ExternalFileCache::CachedFile::CachedFile |
( |
string | path_p | ) |
|
|
explicit |
413293 : path(std::move(path_p)), file_size(0), last_modified(0), can_seek(false), on_disk_file(false) {
413294}
◆ Verify()
Verifies that none of the ranges fully overlap (must hold the lock).
413296 {
413297#ifdef DEBUG
413298 for (const auto &range1 : ranges) {
413299 for (const auto &range2 : ranges) {
413300 if (range1.first == range2.first) {
413301 continue;
413302 }
413303 D_ASSERT(range1.second->GetOverlap(*range2.second) != CachedFileRangeOverlap::FULL);
413304 }
413305 }
413306#endif
413307}
◆ IsValid()
| bool duckdb::ExternalFileCache::CachedFile::IsValid |
( |
const unique_ptr< StorageLockKey > & | guard, |
|
|
bool | validate, |
|
|
const string & | current_version_tag, |
|
|
timestamp_t | current_last_modified ) |
Whether the CachedFile is still valid given the current modified/version tag.
413332 {
413333 if (!validate) {
413334 return true;
413335 }
413336 return ExternalFileCache::IsValid(validate, VersionTag(guard), LastModified(guard), current_version_tag,
413337 current_last_modified);
413338}
◆ FileSize()
Get reference to properties (must hold the lock).
413340 {
413341 return file_size;
413342}
◆ LastModified()
413344 {
413345 return last_modified;
413346}
◆ VersionTag()
413348 {
413349 return version_tag;
413350}
◆ CanSeek()
413352 {
413353 return can_seek;
413354}
◆ OnDiskFile()
413356 {
413357 return on_disk_file;
413358}
◆ Ranges()
413361 {
413362 return ranges;
413363}
The documentation for this struct was generated from the following file: