MCPcopy Create free account
hub / github.com/bytedance/terarkdb / Prefetch

Method Prefetch

table/table_reader.h:103–110  ·  view source on GitHub ↗

Prefetch data corresponding to a give range of keys Typically this functionality is required for table implementations that persists the data on a non volatile storage medium like disk/SSD

Source from the content-addressed store, hash-verified

101 // Typically this functionality is required for table implementations that
102 // persists the data on a non volatile storage medium like disk/SSD
103 virtual Status Prefetch(const Slice* begin = nullptr,
104 const Slice* end = nullptr) {
105 (void)begin;
106 (void)end;
107 // Default implementation is NOOP.
108 // The child class should implement functionality when applicable
109 return Status::OK();
110 }
111
112 // convert db file to a human readable form
113 virtual Status DumpTable(WritableFile* /*out_file*/,

Callers 3

PrefetchRangeFunction · 0.45
CacheDependenciesMethod · 0.45
PrepareMethod · 0.45

Calls 1

OKFunction · 0.85

Tested by 1

PrefetchRangeFunction · 0.36