use of org.apache.drill.exec.vector.accessor.writer.MapWriter.DummyArrayMapWriter in project drill by axbaretto.
the class ColumnWriterFactory method buildMapArray.
public static ArrayObjectWriter buildMapArray(ColumnMetadata schema, UInt4Vector offsetVector, List<AbstractObjectWriter> writers) {
MapWriter mapWriter;
if (schema.isProjected()) {
mapWriter = new ArrayMapWriter(schema, writers);
} else {
mapWriter = new DummyArrayMapWriter(schema, writers);
}
TupleObjectWriter mapArray = new TupleObjectWriter(schema, mapWriter);
AbstractArrayWriter arrayWriter;
if (schema.isProjected()) {
arrayWriter = new ObjectArrayWriter(offsetVector, mapArray);
} else {
arrayWriter = new DummyArrayWriter(mapArray);
}
return new ArrayObjectWriter(schema, arrayWriter);
}
Aggregations