Trait mz_sql::catalog::CatalogComputeInstance
source · pub trait CatalogComputeInstance<'a> {
fn name(&self) -> &str;
fn id(&self) -> ComputeInstanceId;
fn linked_object_id(&self) -> Option<GlobalId>;
fn bound_objects(&self) -> &HashSet<GlobalId>;
fn replicas(&self) -> &HashMap<String, ReplicaId>;
}
Expand description
A compute instance in a SessionCatalog
.
Required Methods§
sourcefn id(&self) -> ComputeInstanceId
fn id(&self) -> ComputeInstanceId
Returns a stable ID for the compute instance.
sourcefn linked_object_id(&self) -> Option<GlobalId>
fn linked_object_id(&self) -> Option<GlobalId>
Returns the ID of the object this compute instance is linked to, if any.
sourcefn bound_objects(&self) -> &HashSet<GlobalId>
fn bound_objects(&self) -> &HashSet<GlobalId>
Returns the objects that are bound to this cluster.