1
- using System . Collections . Generic ;
1
+ using System ;
2
+ using System . Collections ;
3
+ using System . Collections . Generic ;
2
4
using Parquet . Data ;
3
5
4
6
namespace Parquet . DataTypes
@@ -23,24 +25,29 @@ public virtual bool IsMatch(Thrift.SchemaElement tse, ParquetOptions formatOptio
23
25
return tse . __isset . type && _thriftType == tse . Type ;
24
26
}
25
27
26
- public SchemaElement2 Create ( SchemaElement2 parent , IList < Thrift . SchemaElement > schema , ref int index )
28
+ public SchemaElement Create ( SchemaElement parent , IList < Thrift . SchemaElement > schema , ref int index )
27
29
{
28
30
Thrift . SchemaElement tse = schema [ index ++ ] ;
29
31
30
32
if ( tse . Repetition_type == Thrift . FieldRepetitionType . REPEATED )
31
33
{
32
- var list = new SchemaElement2 ( tse . Name , DataType . List , parent ) ;
33
- parent . Children . Add ( list ) ;
34
- SchemaElement2 sei = CreateSimple ( list , tse ) ;
35
- list . Children . Add ( sei ) ;
34
+ var list = new SchemaElement ( tse . Name , DataType . List , parent ) ;
35
+ parent . NewChildren . Add ( list ) ;
36
+ SchemaElement sei = CreateSimple ( list , tse ) ;
37
+ list . NewChildren . Add ( sei ) ;
36
38
return null ;
37
39
}
38
40
39
- SchemaElement2 se = CreateSimple ( parent , tse ) ;
40
- parent . Children . Add ( se ) ;
41
+ SchemaElement se = CreateSimple ( parent , tse ) ;
42
+ parent . NewChildren . Add ( se ) ;
41
43
return null ;
42
44
}
43
45
44
- protected abstract SchemaElement2 CreateSimple ( SchemaElement2 parent , Thrift . SchemaElement tse ) ;
46
+ protected abstract SchemaElement CreateSimple ( SchemaElement parent , Thrift . SchemaElement tse ) ;
47
+
48
+ public virtual IList Read ( byte [ ] data )
49
+ {
50
+ throw new NotImplementedException ( ) ;
51
+ }
45
52
}
46
53
}
0 commit comments