@@ -84,43 +84,8 @@ public final class ${className} extends BaseDataValueVector implements <#if type
8484 values = new $ {valuesName }(valuesField , allocator );
8585 mutator = new Mutator ();
8686 accessor = new Accessor ();
87- <#if minor .class == "TinyInt" ||
88- minor .class == "SmallInt" ||
89- minor .class == "Int" ||
90- minor .class == "BigInt" >
91- field = new Field (name , true , new Int ($ {type .width } * 8 , true ), dictionary , null );
92- <#elseif minor .class == "UInt1" ||
93- minor .class == "UInt2" ||
94- minor .class == "UInt4" ||
95- minor .class == "UInt8" >
96- field = new Field (name , true , new Int ($ {type .width } * 8 , false ), dictionary , null );
97- <#elseif minor .class == "Date" >
98- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Date (), dictionary , null );
99- <#elseif minor .class == "Time" >
100- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Time (), dictionary , null );
101- <#elseif minor .class == "Float4" >
102- field = new Field (name , true , new FloatingPoint (org .apache .arrow .vector .types .FloatingPointPrecision .SINGLE ), dictionary , null );
103- <#elseif minor .class == "Float8" >
104- field = new Field (name , true , new FloatingPoint (org .apache .arrow .vector .types .FloatingPointPrecision .DOUBLE ), dictionary , null );
105- <#elseif minor .class == "TimeStampSec" >
106- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Timestamp (org .apache .arrow .vector .types .TimeUnit .SECOND ), dictionary , null );
107- <#elseif minor .class == "TimeStampMilli" >
108- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Timestamp (org .apache .arrow .vector .types .TimeUnit .MILLISECOND ), dictionary , null );
109- <#elseif minor .class == "TimeStampMicro" >
110- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Timestamp (org .apache .arrow .vector .types .TimeUnit .MICROSECOND ), dictionary , null );
111- <#elseif minor .class == "TimeStampNano" >
112- field = new Field (name , true , new org .apache .arrow .vector .types .pojo .ArrowType .Timestamp (org .apache .arrow .vector .types .TimeUnit .NANOSECOND ), dictionary , null );
113- <#elseif minor .class == "IntervalDay" >
114- field = new Field (name , true , new Interval (org .apache .arrow .vector .types .IntervalUnit .DAY_TIME ), dictionary , null );
115- <#elseif minor .class == "IntervalYear" >
116- field = new Field (name , true , new Interval (org .apache .arrow .vector .types .IntervalUnit .YEAR_MONTH ), dictionary , null );
117- <#elseif minor .class == "VarChar" >
118- field = new Field (name , true , new Utf8 (), dictionary , null );
119- <#elseif minor .class == "VarBinary" >
120- field = new Field (name , true , new Binary (), dictionary , null );
121- <#elseif minor .class == "Bit" >
122- field = new Field (name , true , new Bool (), dictionary , null );
123- </#if >
87+ ArrowType type = Types .MinorType .$ {minor .class ?upper_case }.getType ();
88+ field = new Field (name , true , type , dictionary , null );
12489 innerVectors = Collections .unmodifiableList (Arrays .<BufferBacked >asList (
12590 bits ,
12691 <#if type .major = "VarLen" >
0 commit comments