30.162. 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>

30.162.1. Inheritance

objectPartition

30.162.2. Implements

IEquatable<Partition>

30.162.3. Inherited Members

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

30.162.4. Properties

30.162.4.1. ParentPartitionIds

List of parents up to the first partition

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

30.162.4.1.1. Property Value

IList<string>

30.162.4.2. PartitionId

Unique name of the partition

public required string PartitionId { get; init; }

30.162.4.2.1. Property Value

string

30.162.4.3. PodConfiguration

Arbitrary key-value pairs passed as configuration to partition deployment tool

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

30.162.4.3.1. Property Value

IDictionary<string, string>

30.162.4.4. PodMax

Maximum number of pods that may be allocated to this partition

public required int PodMax { get; init; }

30.162.4.4.1. Property Value

int

30.162.4.5. PodReserved

Number of pods permanently reserved for this partition

public required int PodReserved { get; init; }

30.162.4.5.1. Property Value

int

30.162.4.6. PreemptionPercentage

Percentage of this partition’s pods that higher-priority work may preempt

public required int PreemptionPercentage { get; init; }

30.162.4.6.1. Property Value

int

30.162.4.7. Priority

Scheduling priority of the partition relative to others

public required int Priority { get; init; }

30.162.4.7.1. Property Value

int

30.162.5. Methods

30.162.5.1. Equals(Partition?)

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

public virtual bool Equals(Partition? other)

30.162.5.1.1. Parameters

other Partition?

An object to compare with this object.

30.162.5.1.2. Returns

bool

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

30.162.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)

30.162.5.2.1. Parameters

json string

JSON value

30.162.5.2.2. Returns

Partition

built from the provided JSON

30.162.5.3. GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

30.162.5.3.1. Returns

int

A hash code for the current object.

30.162.5.4. ToJson()

Convert Data structure to hold partitions metadata to JSON

public string ToJson()

30.162.5.4.1. Returns

string

representing the JSON object of this instance