@@ -22,43 +22,43 @@ private static void AppendDataFrameColumnFromArrowArray(Field field, IArrowArray
22
22
BooleanArray arrowBooleanArray = ( BooleanArray ) arrowArray ;
23
23
ReadOnlyMemory < byte > valueBuffer = arrowBooleanArray . ValueBuffer . Memory ;
24
24
ReadOnlyMemory < byte > nullBitMapBuffer = arrowBooleanArray . NullBitmapBuffer . Memory ;
25
- dataFrameColumn = new BooleanDataFrameColumn ( fieldName , valueBuffer , nullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
25
+ dataFrameColumn = new PrimitiveDataFrameColumn < bool > ( fieldName , valueBuffer , nullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
26
26
break ;
27
27
case ArrowTypeId . Double :
28
28
PrimitiveArray < double > arrowDoubleArray = ( PrimitiveArray < double > ) arrowArray ;
29
29
ReadOnlyMemory < byte > doubleValueBuffer = arrowDoubleArray . ValueBuffer . Memory ;
30
30
ReadOnlyMemory < byte > doubleNullBitMapBuffer = arrowDoubleArray . NullBitmapBuffer . Memory ;
31
- dataFrameColumn = new DoubleDataFrameColumn ( fieldName , doubleValueBuffer , doubleNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
31
+ dataFrameColumn = new PrimitiveDataFrameColumn < double > ( fieldName , doubleValueBuffer , doubleNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
32
32
break ;
33
33
case ArrowTypeId . Float :
34
34
PrimitiveArray < float > arrowFloatArray = ( PrimitiveArray < float > ) arrowArray ;
35
35
ReadOnlyMemory < byte > floatValueBuffer = arrowFloatArray . ValueBuffer . Memory ;
36
36
ReadOnlyMemory < byte > floatNullBitMapBuffer = arrowFloatArray . NullBitmapBuffer . Memory ;
37
- dataFrameColumn = new SingleDataFrameColumn ( fieldName , floatValueBuffer , floatNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
37
+ dataFrameColumn = new PrimitiveDataFrameColumn < float > ( fieldName , floatValueBuffer , floatNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
38
38
break ;
39
39
case ArrowTypeId . Int8 :
40
40
PrimitiveArray < sbyte > arrowsbyteArray = ( PrimitiveArray < sbyte > ) arrowArray ;
41
41
ReadOnlyMemory < byte > sbyteValueBuffer = arrowsbyteArray . ValueBuffer . Memory ;
42
42
ReadOnlyMemory < byte > sbyteNullBitMapBuffer = arrowsbyteArray . NullBitmapBuffer . Memory ;
43
- dataFrameColumn = new SByteDataFrameColumn ( fieldName , sbyteValueBuffer , sbyteNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
43
+ dataFrameColumn = new PrimitiveDataFrameColumn < sbyte > ( fieldName , sbyteValueBuffer , sbyteNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
44
44
break ;
45
45
case ArrowTypeId . Int16 :
46
46
PrimitiveArray < short > arrowshortArray = ( PrimitiveArray < short > ) arrowArray ;
47
47
ReadOnlyMemory < byte > shortValueBuffer = arrowshortArray . ValueBuffer . Memory ;
48
48
ReadOnlyMemory < byte > shortNullBitMapBuffer = arrowshortArray . NullBitmapBuffer . Memory ;
49
- dataFrameColumn = new Int16DataFrameColumn ( fieldName , shortValueBuffer , shortNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
49
+ dataFrameColumn = new PrimitiveDataFrameColumn < short > ( fieldName , shortValueBuffer , shortNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
50
50
break ;
51
51
case ArrowTypeId . Int32 :
52
52
PrimitiveArray < int > arrowIntArray = ( PrimitiveArray < int > ) arrowArray ;
53
53
ReadOnlyMemory < byte > intValueBuffer = arrowIntArray . ValueBuffer . Memory ;
54
54
ReadOnlyMemory < byte > intNullBitMapBuffer = arrowIntArray . NullBitmapBuffer . Memory ;
55
- dataFrameColumn = new Int32DataFrameColumn ( fieldName , intValueBuffer , intNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
55
+ dataFrameColumn = new PrimitiveDataFrameColumn < int > ( fieldName , intValueBuffer , intNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
56
56
break ;
57
57
case ArrowTypeId . Int64 :
58
58
PrimitiveArray < long > arrowLongArray = ( PrimitiveArray < long > ) arrowArray ;
59
59
ReadOnlyMemory < byte > longValueBuffer = arrowLongArray . ValueBuffer . Memory ;
60
60
ReadOnlyMemory < byte > longNullBitMapBuffer = arrowLongArray . NullBitmapBuffer . Memory ;
61
- dataFrameColumn = new Int64DataFrameColumn ( fieldName , longValueBuffer , longNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
61
+ dataFrameColumn = new PrimitiveDataFrameColumn < long > ( fieldName , longValueBuffer , longNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
62
62
break ;
63
63
case ArrowTypeId . String :
64
64
StringArray stringArray = ( StringArray ) arrowArray ;
@@ -71,25 +71,25 @@ private static void AppendDataFrameColumnFromArrowArray(Field field, IArrowArray
71
71
PrimitiveArray < byte > arrowbyteArray = ( PrimitiveArray < byte > ) arrowArray ;
72
72
ReadOnlyMemory < byte > byteValueBuffer = arrowbyteArray . ValueBuffer . Memory ;
73
73
ReadOnlyMemory < byte > byteNullBitMapBuffer = arrowbyteArray . NullBitmapBuffer . Memory ;
74
- dataFrameColumn = new ByteDataFrameColumn ( fieldName , byteValueBuffer , byteNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
74
+ dataFrameColumn = new PrimitiveDataFrameColumn < byte > ( fieldName , byteValueBuffer , byteNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
75
75
break ;
76
76
case ArrowTypeId . UInt16 :
77
77
PrimitiveArray < ushort > arrowUshortArray = ( PrimitiveArray < ushort > ) arrowArray ;
78
78
ReadOnlyMemory < byte > ushortValueBuffer = arrowUshortArray . ValueBuffer . Memory ;
79
79
ReadOnlyMemory < byte > ushortNullBitMapBuffer = arrowUshortArray . NullBitmapBuffer . Memory ;
80
- dataFrameColumn = new UInt16DataFrameColumn ( fieldName , ushortValueBuffer , ushortNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
80
+ dataFrameColumn = new PrimitiveDataFrameColumn < ushort > ( fieldName , ushortValueBuffer , ushortNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
81
81
break ;
82
82
case ArrowTypeId . UInt32 :
83
83
PrimitiveArray < uint > arrowUintArray = ( PrimitiveArray < uint > ) arrowArray ;
84
84
ReadOnlyMemory < byte > uintValueBuffer = arrowUintArray . ValueBuffer . Memory ;
85
85
ReadOnlyMemory < byte > uintNullBitMapBuffer = arrowUintArray . NullBitmapBuffer . Memory ;
86
- dataFrameColumn = new UInt32DataFrameColumn ( fieldName , uintValueBuffer , uintNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
86
+ dataFrameColumn = new PrimitiveDataFrameColumn < uint > ( fieldName , uintValueBuffer , uintNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
87
87
break ;
88
88
case ArrowTypeId . UInt64 :
89
89
PrimitiveArray < ulong > arrowUlongArray = ( PrimitiveArray < ulong > ) arrowArray ;
90
90
ReadOnlyMemory < byte > ulongValueBuffer = arrowUlongArray . ValueBuffer . Memory ;
91
91
ReadOnlyMemory < byte > ulongNullBitMapBuffer = arrowUlongArray . NullBitmapBuffer . Memory ;
92
- dataFrameColumn = new UInt64DataFrameColumn ( fieldName , ulongValueBuffer , ulongNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
92
+ dataFrameColumn = new PrimitiveDataFrameColumn < ulong > ( fieldName , ulongValueBuffer , ulongNullBitMapBuffer , arrowArray . Length , arrowArray . NullCount ) ;
93
93
break ;
94
94
case ArrowTypeId . Struct :
95
95
StructArray structArray = ( StructArray ) arrowArray ;
0 commit comments