public AvroColumnWriter(Schema s, ColumnFileMetaData meta, GenericData model)
throws IOException {
this.schema = s;
AvroColumnator columnator = new AvroColumnator(s);
meta.set(SCHEMA_KEY, s.toString()); // save schema in file
this.writer = new ColumnFileWriter(meta, columnator.getColumns());
this.arrayWidths = columnator.getArrayWidths();
this.model = model;
}