| 2127 | } |
| 2128 | |
| 2129 | beeswax::QueryState::type ClientRequestState::BeeswaxQueryState() const { |
| 2130 | switch (exec_state()) { |
| 2131 | case ExecState::INITIALIZED: return beeswax::QueryState::CREATED; |
| 2132 | case ExecState::PENDING: return beeswax::QueryState::COMPILED; |
| 2133 | case ExecState::RUNNING: return beeswax::QueryState::RUNNING; |
| 2134 | case ExecState::FINISHED: return beeswax::QueryState::FINISHED; |
| 2135 | case ExecState::ERROR: return beeswax::QueryState::EXCEPTION; |
| 2136 | default: { |
| 2137 | DCHECK(false) << "Add explicit translation for all used ExecState values"; |
| 2138 | return beeswax::QueryState::EXCEPTION; |
| 2139 | } |
| 2140 | } |
| 2141 | } |
| 2142 | |
| 2143 | // It is safe to use 'coord_' directly for the following two methods since they are safe |
| 2144 | // to call concurrently with Coordinator::Exec(). See comments for 'coord_' and |