MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

cpp/src/arrow/util/cache_benchmark.cc:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 : index_(0), values_(std::move(values)) {}
94
95 std::string operator()(const std::string& key) {
96 // Return a value unrelated to the key
97 if (++index_ >= static_cast<int64_t>(values_.size())) {
98 index_ = 0;
99 }
100 return values_[index_];
101 }
102
103 private:
104 int64_t index_;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected