22.276. Class ListPartitionsRequestExt

Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll

Provides extension methods for converting gRPC partition requests and filters into LINQ expressions for querying objects. Includes utilities for mapping gRPC fields and filters to strongly-typed expressions used in partition-related logic.

public static class ListPartitionsRequestExt

22.276.1. Inheritance

objectListPartitionsRequestExt

22.276.2. Inherited Members

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

22.276.3. Methods

22.276.3.1. ToField(Sort)

Converts gRPC message into the associated field

public static Expression<Func<PartitionData, object?>> ToField(this ListPartitionsRequest.Types.Sort sort)

22.276.3.1.1. Parameters

sort ListPartitionsRequest.Types.Sort

The gPRC message

22.276.3.1.2. Returns

Expression<Func<PartitionData, object?>>

The that access the field from the object

22.276.3.1.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

22.276.3.2. ToField(PartitionField)

Converts gRPC message into the associated field

public static Expression<Func<PartitionData, object?>> ToField(this PartitionField taskField)

22.276.3.2.1. Parameters

taskField PartitionField

The gPRC message field

22.276.3.2.2. Returns

Expression<Func<PartitionData, object?>>

The that access the field from the object

22.276.3.2.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

22.276.3.3. ToPartitionFilter(Filters)

Converts gRPC message filters into an that represents the filter conditions

public static Expression<Func<PartitionData, bool>> ToPartitionFilter(this Filters filters)

22.276.3.3.1. Parameters

filters Filters

The gPRC filters

22.276.3.3.2. Returns

Expression<Func<PartitionData, bool>>

The that represents the filter conditions

22.276.3.3.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized