private static final MajorType INTERVALYEAR_TYPE = Types.optional(MinorType.INTERVALYEAR);
public IntervalYearWriter intervalYear(String name){
FieldWriter writer = fields.get(name);
if(writer == null){
NullableIntervalYearVector vector = container.addOrGet(name, INTERVALYEAR_TYPE, NullableIntervalYearVector.class);
vector.allocateNewSafe();
writer = new NullableIntervalYearWriterImpl(vector, this);
writer.setPosition(idx());
fields.put(name, writer);
}
return writer;
}