Example #1
0
 internal TaskContext Process(Stream stream)
 {
     return((_version.Major, _version.Minor) switch
     {
         (2, 4) => TaskContextProcessorV2_4_X.Process(stream),
         (3, _) => TaskContextProcessorV3_0_X.Process(stream),
         _ => throw new NotSupportedException($"Spark {_version} not supported.")
     });
Example #2
0
        internal TaskContext Process(Stream stream)
        {
            if (_version.Major == 2)
            {
                switch (_version.Minor)
                {
                case 3:
                    return(TaskContextProcessorV2_3_X.Process(stream));

                case 4:
                    return(TaskContextProcessorV2_4_X.Process(stream));
                }
            }

            throw new NotSupportedException($"Spark {_version} not supported.");
        }