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

26.157.1. Inheritance

objectPartition

26.157.2. Implements

IEquatable<Partition>

26.157.3. Inherited Members

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

26.157.4. Properties

26.157.4.1. ParentPartitionIds

List of parents up to the first partition

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

26.157.4.1.1. Property Value

IList<string>

26.157.4.2. PartitionId

Unique name of the partition

public required string PartitionId { get; init; }

26.157.4.2.1. Property Value

string

26.157.4.3. PodConfiguration

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

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

26.157.4.3.1. Property Value

IDictionary<string, string>

26.157.4.4. PodMax

Maximum number of pods that may be allocated to this partition

public required int PodMax { get; init; }

26.157.4.4.1. Property Value

int

26.157.4.5. PodReserved

Number of pods permanently reserved for this partition

public required int PodReserved { get; init; }

26.157.4.5.1. Property Value

int

26.157.4.6. PreemptionPercentage

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

public required int PreemptionPercentage { get; init; }

26.157.4.6.1. Property Value

int

26.157.4.7. Priority

Scheduling priority of the partition relative to others

public required int Priority { get; init; }

26.157.4.7.1. Property Value

int

26.157.5. Methods

26.157.5.1. Equals(Partition?)

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

public virtual bool Equals(Partition? other)

26.157.5.1.1. Parameters

other Partition?

An object to compare with this object.

26.157.5.1.2. Returns

bool

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

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

26.157.5.2.1. Parameters

json string

JSON value

26.157.5.2.2. Returns

Partition

built from the provided JSON

26.157.5.3. GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

26.157.5.3.1. Returns

int

A hash code for the current object.

26.157.5.4. ToJson()

Convert Data structure to hold partitions metadata to JSON

public string ToJson()

26.157.5.4.1. Returns

string

representing the JSON object of this instance