// Use a special Avro encoder that has special handling for int, long,
// and String types. See ColumnEncoder for more information.
if (fieldAvroSchema.getType() == Type.INT
|| fieldAvroSchema.getType() == Type.LONG
|| fieldAvroSchema.getType() == Type.STRING) {
return new ColumnEncoder(out);
} else {
return EncoderFactory.get().binaryEncoder(out, null);
}
}