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 514be70e8e8e91bf1f70e1d1b6d85bc8c38d7d3c
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Wed Dec 24 12:23:21 2025 +0200

    Revert "wip BasicMappers"
    
    This reverts commit b963f2864f3767c48a25e0c29249ec8683901e68.
---
 .../Apache.Ignite/Internal/Table/BasicMappers.cs   | 42 ----------------------
 1 file changed, 42 deletions(-)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite/Internal/Table/BasicMappers.cs 
b/modules/platforms/dotnet/Apache.Ignite/Internal/Table/BasicMappers.cs
index 11ec6d73ba4..80856a78baa 100644
--- a/modules/platforms/dotnet/Apache.Ignite/Internal/Table/BasicMappers.cs
+++ b/modules/platforms/dotnet/Apache.Ignite/Internal/Table/BasicMappers.cs
@@ -34,16 +34,6 @@ internal static class BasicMappers
     /// <returns>Mapper or null.</returns>
     internal static IMapper<T>? TryGet<T>()
     {
-        if (typeof(T) == typeof(int))
-        {
-            return (IMapper<T>)(object)IntMapper.Instance;
-        }
-
-        if (typeof(T) == typeof(long))
-        {
-            return (IMapper<T>)(object)LongMapper.Instance;
-        }
-
         if (typeof(T) == typeof(Guid))
         {
             return (IMapper<T>)(object)GuidMapper.Instance;
@@ -54,11 +44,6 @@ internal static class BasicMappers
             return (IMapper<T>)(object)StringMapper.Instance;
         }
 
-        if (typeof(T) == typeof(byte[]))
-        {
-            return (IMapper<T>)(object)ByteArrayMapper.Instance;
-        }
-
         return null;
     }
 
@@ -79,31 +64,4 @@ internal static class BasicMappers
 
         public string Read(ref RowReader rowReader, IMapperSchema schema) => 
rowReader.ReadString()!;
     }
-
-    private sealed class ByteArrayMapper : IMapper<byte[]>
-    {
-        public static readonly ByteArrayMapper Instance = new();
-
-        public void Write(byte[] obj, ref RowWriter rowWriter, IMapperSchema 
schema) => rowWriter.WriteBytes(obj);
-
-        public byte[] Read(ref RowReader rowReader, IMapperSchema schema) => 
rowReader.ReadBytes()!;
-    }
-
-    private sealed class IntMapper : IMapper<int>
-    {
-        public static readonly IntMapper Instance = new();
-
-        public void Write(int obj, ref RowWriter rowWriter, IMapperSchema 
schema) => rowWriter.WriteInt(obj);
-
-        public int Read(ref RowReader rowReader, IMapperSchema schema) => 
rowReader.ReadInt()!.Value;
-    }
-
-    private sealed class LongMapper : IMapper<long>
-    {
-        public static readonly LongMapper Instance = new();
-
-        public void Write(long obj, ref RowWriter rowWriter, IMapperSchema 
schema) => rowWriter.WriteLong(obj);
-
-        public long Read(ref RowReader rowReader, IMapperSchema schema) => 
rowReader.ReadLong()!.Value;
-    }
 }

Reply via email to