Return the `tile_extents` for `array`, or `None` if the array is not registered or the schema cannot be decoded. Used by tile-aware shard routing to convert coordinates to tile IDs.
(&self, array: &str)
| 93 | /// |
| 94 | /// Used by tile-aware shard routing to convert coordinates to tile IDs. |
| 95 | pub fn tile_extents(&self, array: &str) -> Option<Vec<u64>> { |
| 96 | let docs = self.docs.lock().ok()?; |
| 97 | let doc = docs.get(array)?; |
| 98 | doc.to_schema().ok().map(|s| s.tile_extents) |
| 99 | } |
| 100 | |
| 101 | /// Apply a remote Loro snapshot for `array`. |
| 102 | /// |