private static final MajorType DECIMAL38SPARSE_TYPE = Types.optional(MinorType.DECIMAL38SPARSE);
public Decimal38SparseWriter decimal38Sparse(String name){
FieldWriter writer = fields.get(name);
if(writer == null){
NullableDecimal38SparseVector vector = container.addOrGet(name, DECIMAL38SPARSE_TYPE, NullableDecimal38SparseVector.class);
AllocationHelper.allocate(vector, 1000, 100, 10);
writer = new NullableDecimal38SparseWriterImpl(vector, this);
writer.setPosition(currentChildIndex);
fields.put(name, writer);
}
return writer;
}