Returns the scalar value stored at `index`, if it has been populated.
(&self, index: SubqueryIndex)
| 206 | |
| 207 | /// Returns the scalar value stored at `index`, if it has been populated. |
| 208 | pub fn get(&self, index: SubqueryIndex) -> Option<ScalarValue> { |
| 209 | let slot = self.slots.get(index.as_usize())?; |
| 210 | slot.lock().unwrap().clone() |
| 211 | } |
| 212 | |
| 213 | /// Stores `value` in the slot at `index`. |
| 214 | pub fn set(&self, index: SubqueryIndex, value: ScalarValue) -> Result<()> { |