Table of Contents

Class MetricViewCollection<T>

Inheritance
MetricViewCollection<T>
Implements
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

A collection of MetricView objects with name-based indexing. Implements IReadOnlyList for compatibility while providing O(1) name lookups.

public class MetricViewCollection<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : IMetricViewNamedObject

Type Parameters

Name Description
T

The type of MetricView object in the collection

Extension Methods

Properties

Count

Gets the number of items in the collection.

public int Count { get; }

Property Value

Type Description
int

this[int]

Gets the item at the specified index.

public T this[int index] { get; }

Parameters

Type Name Description
int index

Property Value

Type Description
T

this[string]

Gets the item with the specified name.

public T this[string name] { get; }

Parameters

Type Name Description
string name

Property Value

Type Description
T

Exceptions

KeyNotFoundException

If no item with the specified name exists

Methods

Contains(string)

Determines whether an item with the specified name exists in the collection.

public bool Contains(string name)

Parameters

Type Name Description
string name

The name to search for

Returns

Type Description
bool

True if an item with the specified name exists

Find(string)

Finds an item by name, returning null if not found.

public T? Find(string name)

Parameters

Type Name Description
string name

The name to search for

Returns

Type Description
T

The item with the specified name, or null if not found

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<T> GetEnumerator()

Returns

Type Description
IEnumerator<T>