Skip to content

Commit

Permalink
Make reader classes sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed May 10, 2024
1 parent 325dcdd commit 6270bac
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/BooleanVectorDataReader.cs
Expand Up @@ -4,7 +4,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class BooleanVectorDataReader : VectorDataReaderBase
internal sealed class BooleanVectorDataReader : VectorDataReaderBase
{
internal unsafe BooleanVectorDataReader(void* dataPointer, ulong* validityMaskPointer, DuckDBType columnType, string columnName) : base(dataPointer, validityMaskPointer, columnType, columnName)
{
Expand Down
Expand Up @@ -4,7 +4,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class DateTimeVectorDataReader : VectorDataReaderBase
internal sealed class DateTimeVectorDataReader : VectorDataReaderBase
{
private static readonly Type DateTimeType = typeof(DateTime);
private static readonly Type DateTimeNullableType = typeof(DateTime?);
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/DecimalVectorDataReader.cs
Expand Up @@ -5,7 +5,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class DecimalVectorDataReader : NumericVectorDataReader
internal sealed class DecimalVectorDataReader : NumericVectorDataReader
{
private readonly byte scale;
private readonly DuckDBType decimalType;
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/EnumVectorDataReader.cs
Expand Up @@ -5,7 +5,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class EnumVectorDataReader : VectorDataReaderBase
internal sealed class EnumVectorDataReader : VectorDataReaderBase
{
private readonly DuckDBType enumType;
private readonly DuckDBLogicalType logicalType;
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/GuidVectorDataReader.cs
Expand Up @@ -5,7 +5,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class GuidVectorDataReader : VectorDataReaderBase
internal sealed class GuidVectorDataReader : VectorDataReaderBase
{
private static readonly char[] HexDigits = "0123456789abcdef".ToCharArray();

Expand Down
Expand Up @@ -4,7 +4,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class IntervalVectorDataReader : VectorDataReaderBase
internal sealed class IntervalVectorDataReader : VectorDataReaderBase
{
private static readonly Type TimeSpanType = typeof(TimeSpan);
private static readonly Type TimeSpanNullableType = typeof(TimeSpan?);
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/ListVectorDataReader.cs
Expand Up @@ -6,7 +6,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class ListVectorDataReader : VectorDataReaderBase
internal sealed class ListVectorDataReader : VectorDataReaderBase
{
private readonly ulong arraySize;
private readonly VectorDataReaderBase listDataReader;
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/MapVectorDataReader.cs
Expand Up @@ -7,7 +7,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class MapVectorDataReader : VectorDataReaderBase
internal sealed class MapVectorDataReader : VectorDataReaderBase
{
private readonly VectorDataReaderBase keyReader;
private readonly VectorDataReaderBase valueReader;
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/StringVectorDataReader.cs
Expand Up @@ -6,7 +6,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class StringVectorDataReader : VectorDataReaderBase
internal sealed class StringVectorDataReader : VectorDataReaderBase
{
internal unsafe StringVectorDataReader(void* dataPointer, ulong* validityMaskPointer, DuckDBType columnType, string columnName) : base(dataPointer, validityMaskPointer, columnType, columnName)
{
Expand Down
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/Reader/StructVectorDataReader.cs
Expand Up @@ -7,7 +7,7 @@

namespace DuckDB.NET.Data.Internal.Reader;

internal class StructVectorDataReader : VectorDataReaderBase
internal sealed class StructVectorDataReader : VectorDataReaderBase
{
private static readonly ConcurrentDictionary<Type, TypeDetails> TypeCache = new();
private readonly Dictionary<string, VectorDataReaderBase> structDataReaders;
Expand Down

0 comments on commit 6270bac

Please sign in to comment.