@@ -44,35 +44,6 @@ internal partial class PrimitiveColumnContainer<T> : IEnumerable<T?>
44
44
// Need a way to differentiate between columns initialized with default values and those with null values in SetValidityBit
45
45
internal bool _modifyNullCountWhileIndexing = true ;
46
46
47
- public PrimitiveColumnContainer ( T [ ] values )
48
- {
49
- values = values ?? throw new ArgumentNullException ( nameof ( values ) ) ;
50
- long length = values . LongLength ;
51
- DataFrameBuffer < T > curBuffer ;
52
- if ( Buffers . Count == 0 )
53
- {
54
- curBuffer = new DataFrameBuffer < T > ( ) ;
55
- Buffers . Add ( curBuffer ) ;
56
- NullBitMapBuffers . Add ( new DataFrameBuffer < byte > ( ) ) ;
57
- }
58
- else
59
- {
60
- curBuffer = ( DataFrameBuffer < T > ) Buffers [ Buffers . Count - 1 ] ;
61
- }
62
- for ( long i = 0 ; i < length ; i ++ )
63
- {
64
- if ( curBuffer . Length == ReadOnlyDataFrameBuffer < T > . MaxCapacity )
65
- {
66
- curBuffer = new DataFrameBuffer < T > ( ) ;
67
- Buffers . Add ( curBuffer ) ;
68
- NullBitMapBuffers . Add ( new DataFrameBuffer < byte > ( ) ) ;
69
- }
70
- curBuffer . Append ( values [ i ] ) ;
71
- SetValidityBit ( Length , true ) ;
72
- Length ++ ;
73
- }
74
- }
75
-
76
47
public PrimitiveColumnContainer ( IEnumerable < T > values )
77
48
{
78
49
values = values ?? throw new ArgumentNullException ( nameof ( values ) ) ;
@@ -81,6 +52,7 @@ public PrimitiveColumnContainer(IEnumerable<T> values)
81
52
Append ( value ) ;
82
53
}
83
54
}
55
+
84
56
public PrimitiveColumnContainer ( IEnumerable < T ? > values )
85
57
{
86
58
values = values ?? throw new ArgumentNullException ( nameof ( values ) ) ;
0 commit comments