Skip to main content

RtIdSet

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

An immutable, sorted, duplicate-free set of rtIds (metering points / streams) that a late-delivery recompute is restricted to. Compared by value, so the recompute records that carry one (ArchiveDirtyWindow.RtIds, ArchiveRecomputeRange.RtIdSet, RecomputeJobSnapshot.RtIdSet) keep their value semantics: a store removes an obligation by handing back the record it read, and two sets with the same members are the same set whatever order they were built in.

public sealed class RtIdSet : IReadOnlyCollection<OctoObjectId>, IEnumerable<OctoObjectId>, IEnumerable, IEquatable<RtIdSet>

Inheritance Object → RtIdSet
Implements IReadOnlyCollection<OctoObjectId>, IEnumerable<OctoObjectId>, IEnumerable, IEquatable<RtIdSet>

Properties​

Count​

public int Count { get; }

Property Value​

Int32

Methods​

Of(IEnumerable<OctoObjectId>)​

The set of the given rtIds, or null when there are none: an empty set never stands for "no series" - a recompute without a set is the unscoped one, so an empty input carries no scope.

public static RtIdSet Of(IEnumerable<OctoObjectId> rtIds)

Parameters​

rtIds IEnumerable<OctoObjectId>

Returns​

RtIdSet

Parse(IEnumerable<String>)​

The set parsed from stored rtId strings (the StringArray CK attributes), or null when there are none. Entries that are empty or no valid rtId are skipped.

public static RtIdSet Parse(IEnumerable<string> rtIds)

Parameters​

rtIds IEnumerable<String>

Returns​

RtIdSet

Union(IEnumerable<RtIdSet>)​

The union of the given sets, or null when one of them is null (no scope absorbs every scope) or none is given.

public static RtIdSet Union(IEnumerable<RtIdSet> sets)

Parameters​

sets IEnumerable<RtIdSet>

Returns​

RtIdSet

Contains(OctoObjectId)​

Whether rtId is a member.

public bool Contains(OctoObjectId rtId)

Parameters​

rtId OctoObjectId

Returns​

Boolean

IsSubsetOf(RtIdSet)​

Whether every member of this set is also a member of other.

public bool IsSubsetOf(RtIdSet other)

Parameters​

other RtIdSet

Returns​

Boolean

ToStrings()​

The members as the strings the CK attributes store, in sort order.

public IReadOnlyList<string> ToStrings()

Returns​

IReadOnlyList<String>

GetEnumerator()​

public IEnumerator<OctoObjectId> GetEnumerator()

Returns​

IEnumerator<OctoObjectId>

Equals(RtIdSet)​

public bool Equals(RtIdSet other)

Parameters​

other RtIdSet

Returns​

Boolean

Equals(Object)​

public bool Equals(object obj)

Parameters​

obj Object

Returns​

Boolean

GetHashCode()​

public int GetHashCode()

Returns​

Int32

ToString()​

public string ToString()

Returns​

String