21.163. Class Partition

Namespace: ArmoniK.Core.Common.Injection.Options.Database
Assembly: ArmoniK.Core.Common.dll

Data structure to hold partitions metadata

public record Partition : IEquatable<Partition>

21.163.1. Inheritance

objectPartition

21.163.2. Implements

IEquatable<Partition>

21.163.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.163.4. Properties

21.163.4.1. ParentPartitionIds

List of parents up to the first partition

public required IList<string> ParentPartitionIds { get; init; }

21.163.4.1.1. Property Value

IList<string>

21.163.4.2. PartitionId

Unique name of the partition

public required string PartitionId { get; init; }

21.163.4.2.1. Property Value

string

21.163.4.3. PodConfiguration

Configuration for compute plane instances in this Partition

public IDictionary<string, string> PodConfiguration { get; init; }

21.163.4.3.1. Property Value

IDictionary<string, string>

21.163.4.4. PodMax

Max number of pods

public required int PodMax { get; init; }

21.163.4.4.1. Property Value

int

21.163.4.5. PodReserved

Number of reserved pods

public required int PodReserved { get; init; }

21.163.4.5.1. Property Value

int

21.163.4.6. PreemptionPercentage

Percentage of pods that can be preempted

public required int PreemptionPercentage { get; init; }

21.163.4.6.1. Property Value

int

21.163.4.7. Priority

Priority of the partition

public required int Priority { get; init; }

21.163.4.7.1. Property Value

int

21.163.5. Methods

21.163.5.1. Equals(Partition?)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(Partition? other)

21.163.5.1.1. Parameters

other Partition?

An object to compare with this object.

21.163.5.1.2. Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

21.163.5.2. FromJson(string)

Build a Data structure to hold partitions metadata from a JSON Represents text as a sequence of UTF-16 code units.

public static Partition FromJson(string json)

21.163.5.2.1. Parameters

json string

JSON value

21.163.5.2.2. Returns

Partition

built from the provided JSON

21.163.5.3. GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

21.163.5.3.1. Returns

int

A hash code for the current object.

21.163.5.4. ToJson()

Convert Data structure to hold partitions metadata to JSON

public string ToJson()

21.163.5.4.1. Returns

string

representing the JSON object of this instance