@@ -22,43 +22,43 @@ private static void AppendDataFrameColumnFromArrowArray(Field field, IArrowArray
2222 BooleanArray arrowBooleanArray = ( BooleanArray ) arrowArray ;
2323 ReadOnlyMemory < byte > valueBuffer = arrowBooleanArray . ValueBuffer . Memory ;
2424 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 ) ;
2626 break ;
2727 case ArrowTypeId . Double :
2828 PrimitiveArray < double > arrowDoubleArray = ( PrimitiveArray < double > ) arrowArray ;
2929 ReadOnlyMemory < byte > doubleValueBuffer = arrowDoubleArray . ValueBuffer . Memory ;
3030 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 ) ;
3232 break ;
3333 case ArrowTypeId . Float :
3434 PrimitiveArray < float > arrowFloatArray = ( PrimitiveArray < float > ) arrowArray ;
3535 ReadOnlyMemory < byte > floatValueBuffer = arrowFloatArray . ValueBuffer . Memory ;
3636 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 ) ;
3838 break ;
3939 case ArrowTypeId . Int8 :
4040 PrimitiveArray < sbyte > arrowsbyteArray = ( PrimitiveArray < sbyte > ) arrowArray ;
4141 ReadOnlyMemory < byte > sbyteValueBuffer = arrowsbyteArray . ValueBuffer . Memory ;
4242 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 ) ;
4444 break ;
4545 case ArrowTypeId . Int16 :
4646 PrimitiveArray < short > arrowshortArray = ( PrimitiveArray < short > ) arrowArray ;
4747 ReadOnlyMemory < byte > shortValueBuffer = arrowshortArray . ValueBuffer . Memory ;
4848 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 ) ;
5050 break ;
5151 case ArrowTypeId . Int32 :
5252 PrimitiveArray < int > arrowIntArray = ( PrimitiveArray < int > ) arrowArray ;
5353 ReadOnlyMemory < byte > intValueBuffer = arrowIntArray . ValueBuffer . Memory ;
5454 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 ) ;
5656 break ;
5757 case ArrowTypeId . Int64 :
5858 PrimitiveArray < long > arrowLongArray = ( PrimitiveArray < long > ) arrowArray ;
5959 ReadOnlyMemory < byte > longValueBuffer = arrowLongArray . ValueBuffer . Memory ;
6060 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 ) ;
6262 break ;
6363 case ArrowTypeId . String :
6464 StringArray stringArray = ( StringArray ) arrowArray ;
@@ -71,25 +71,25 @@ private static void AppendDataFrameColumnFromArrowArray(Field field, IArrowArray
7171 PrimitiveArray < byte > arrowbyteArray = ( PrimitiveArray < byte > ) arrowArray ;
7272 ReadOnlyMemory < byte > byteValueBuffer = arrowbyteArray . ValueBuffer . Memory ;
7373 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 ) ;
7575 break ;
7676 case ArrowTypeId . UInt16 :
7777 PrimitiveArray < ushort > arrowUshortArray = ( PrimitiveArray < ushort > ) arrowArray ;
7878 ReadOnlyMemory < byte > ushortValueBuffer = arrowUshortArray . ValueBuffer . Memory ;
7979 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 ) ;
8181 break ;
8282 case ArrowTypeId . UInt32 :
8383 PrimitiveArray < uint > arrowUintArray = ( PrimitiveArray < uint > ) arrowArray ;
8484 ReadOnlyMemory < byte > uintValueBuffer = arrowUintArray . ValueBuffer . Memory ;
8585 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 ) ;
8787 break ;
8888 case ArrowTypeId . UInt64 :
8989 PrimitiveArray < ulong > arrowUlongArray = ( PrimitiveArray < ulong > ) arrowArray ;
9090 ReadOnlyMemory < byte > ulongValueBuffer = arrowUlongArray . ValueBuffer . Memory ;
9191 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 ) ;
9393 break ;
9494 case ArrowTypeId . Struct :
9595 StructArray structArray = ( StructArray ) arrowArray ;
0 commit comments