MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / getMetadata

Method getMetadata

pj_datastore/src/reader.cpp:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145std::optional<TopicMetadata> DataReader::getMetadata(TopicId topic_id) const {
146 auto lock = engine_.lockEngine();
147 const TopicStorage* storage = engine_.getTopicStorage(topic_id);
148 if (storage == nullptr) {
149 return std::nullopt;
150 }
151 return storage->metadata(); // copied out under the lock
152}
153
154Expected<RangeCursor> DataReader::rangeQuery(const QueryRange& range) const {
155 // Take the read-lock BEFORE the lookup (a concurrent createTopic rehash could

Callers 13

datasetRawBoundsMethod · 0.80
rebuildNowMethod · 0.80
totalRowCountMethod · 0.80
rowCountMethod · 0.80
totalRowCountMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 3

lockEngineMethod · 0.80
getTopicStorageMethod · 0.80
metadataMethod · 0.80

Tested by 9

totalRowCountMethod · 0.64
rowCountMethod · 0.64
totalRowCountMethod · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
singleTopicRowCountMethod · 0.64