This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-27278 in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 1dadb68bf63739fa6d77dc9163d6bf4c96be5afd Author: Pavel Tupitsyn <[email protected]> AuthorDate: Tue Dec 23 09:08:59 2025 +0200 IGNITE-27278 .NET: Add mapper support to SQL, Compute, PartitionManager APIs https://issues.apache.org/jira/browse/IGNITE-27278 --- .../dotnet/Apache.Ignite/Table/IPartitionManager.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/platforms/dotnet/Apache.Ignite/Table/IPartitionManager.cs b/modules/platforms/dotnet/Apache.Ignite/Table/IPartitionManager.cs index 6f60e56b09a..f1e3d35ee68 100644 --- a/modules/platforms/dotnet/Apache.Ignite/Table/IPartitionManager.cs +++ b/modules/platforms/dotnet/Apache.Ignite/Table/IPartitionManager.cs @@ -21,6 +21,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Internal.Table.Serialization; +using Mapper; using Network; /// <summary> @@ -58,7 +59,18 @@ public interface IPartitionManager /// <param name="key">Table key.</param> /// <returns>Partition that contains the specified key.</returns> /// <typeparam name="TK">Key type.</typeparam> - [RequiresUnreferencedCode(ReflectionUtils.TrimWarning)] // TODO: IGNITE-27278 + [RequiresUnreferencedCode(ReflectionUtils.TrimWarning)] ValueTask<IPartition> GetPartitionAsync<TK>(TK key) where TK : notnull; + + /// <summary> + /// Gets the partition for the specified table key. + /// </summary> + /// <param name="key">Table key.</param> + /// <param name="mapper">Mapper for the key.</param> + /// <returns>Partition that contains the specified key.</returns> + /// <typeparam name="TK">Key type.</typeparam> + [RequiresUnreferencedCode(ReflectionUtils.TrimWarning)] + ValueTask<IPartition> GetPartitionAsync<TK>(TK key, IMapper<TK> mapper) + where TK : notnull; }
