26.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>
26.162.1. Inheritance
26.162.2. Implements
26.162.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.162.4. Properties
26.162.4.1. ParentPartitionIds
List of parents up to the first partition
public required IList<string> ParentPartitionIds { get; init; }
26.162.4.1.1. Property Value
26.162.4.2. PartitionId
Unique name of the partition
public required string PartitionId { get; init; }
26.162.4.2.1. Property Value
26.162.4.3. PodConfiguration
Arbitrary key-value pairs passed as configuration to partition deployment tool
public IDictionary<string, string> PodConfiguration { get; init; }
26.162.4.3.1. Property Value
26.162.4.4. PodMax
Maximum number of pods that may be allocated to this partition
public required int PodMax { get; init; }
26.162.4.4.1. Property Value
26.162.4.5. PodReserved
Number of pods permanently reserved for this partition
public required int PodReserved { get; init; }
26.162.4.5.1. Property Value
26.162.4.6. PreemptionPercentage
Percentage of this partition’s pods that higher-priority work may preempt
public required int PreemptionPercentage { get; init; }
26.162.4.6.1. Property Value
26.162.4.7. Priority
Scheduling priority of the partition relative to others
public required int Priority { get; init; }
26.162.4.7.1. Property Value
26.162.5. Methods
26.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)
26.162.5.1.1. Parameters
other Partition?
An object to compare with this object.
26.162.5.1.2. Returns
true if the current object is equal to the other parameter; otherwise, false.
26.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)
26.162.5.2.1. Parameters
json string
JSON value
26.162.5.2.2. Returns
built from the provided JSON
26.162.5.3. GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
26.162.5.3.1. Returns
A hash code for the current object.
26.162.5.4. ToJson()
Convert Data structure to hold partitions metadata to JSON
public string ToJson()
26.162.5.4.1. Returns
representing the JSON object of this instance