MCPcopy Create free account
hub / github.com/apache/arrow / GetSessionOption

Method GetSessionOption

cpp/src/arrow/flight/sql/server_session_middleware.cc:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207std::optional<SessionOptionValue> FlightSession::GetSessionOption(
208 const std::string& name) {
209 const std::shared_lock<std::shared_mutex> l(map_lock_);
210 auto it = map_.find(name);
211 if (it != map_.end()) {
212 return it->second;
213 } else {
214 return std::nullopt;
215 }
216}
217
218std::map<std::string, SessionOptionValue> FlightSession::GetSessionOptions() {
219 const std::shared_lock<std::shared_mutex> l(map_lock_);

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected