MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetVersionSchema

Method GetVersionSchema

src/storage/table.h:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 void SetTableMeta(::fedb::api::TableMeta& table_meta); // NOLINT
152
153 std::shared_ptr<Schema> GetVersionSchema(int32_t ver) {
154 auto versions = std::atomic_load_explicit(&version_schema_, std::memory_order_relaxed);
155 auto it = versions->find(ver);
156 if (it == versions->end()) {
157 return nullptr;
158 }
159 return it->second;
160 }
161
162 std::map<int32_t, std::shared_ptr<Schema>> GetAllVersionSchema() {
163 return *std::atomic_load_explicit(&version_schema_, std::memory_order_relaxed);

Callers 1

DecodeDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected