Class ColumnWriterFactory

java.lang.Object
org.apache.drill.exec.vector.accessor.writer.ColumnWriterFactory

public class ColumnWriterFactory extends Object
Gather generated writer classes into a set of class tables to allow rapid run-time creation of writers. Builds the writer and its object writer wrapper which binds the vector to the writer.

Compared to the reader factory, the writer factor is a bit more complex as it must handle both the projected ("real" writer) and unprojected ("dummy" writer) cases. Because of the way the various classes interact, it is cleaner to put the factory methods here rather than in the various writers, as is done in the case of the readers.