MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / tile_extents

Method tile_extents

nodedb/src/control/array_sync/schema_registry.rs:95–99  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 15

make_schemaFunction · 0.45
make_ctxFunction · 0.45
build_schemaFunction · 0.45
vshard_for_opMethod · 0.45
apply_array_opFunction · 0.45
schema_2d_f64Function · 0.45
schemaFunction · 0.45
schemaFunction · 0.45
schemaFunction · 0.45
test_schemaFunction · 0.45

Calls 4

lockMethod · 0.80
to_schemaMethod · 0.80
okMethod · 0.45
getMethod · 0.45

Tested by 15

schema_2d_f64Function · 0.36
schemaFunction · 0.36
test_schemaFunction · 0.36
test_schemaFunction · 0.36
schemaFunction · 0.36
schemaFunction · 0.36
schemaFunction · 0.36
schemaFunction · 0.36
genomic_schemaFunction · 0.36