public Serializer(Configuration conf, String attemptId, List<TypeInfo> typeInfos, List<String> fieldNames) {
this.fieldTypeInfos = typeInfos;
this.fieldNames = fieldNames;
long childAllocatorLimit = HiveConf.getLongVar(conf, HIVE_ARROW_BATCH_ALLOCATOR_LIMIT);
long childAllocatorReservation = 0L;
allocator = RootAllocatorFactory.INSTANCE.getRootAllocator(conf).newChildAllocator(
attemptId,
childAllocatorReservation,
childAllocatorLimit);
rootVector = StructVector.empty(null, allocator);
vectorizedRowBatch = null;
vectorAssignRow = null;
MAX_BUFFERED_ROWS = 0;
}