use of org.apache.drill.exec.vector.accessor.writer.dummy.DummyDictWriter in project drill by apache.
the class ObjectDictWriter method buildDict.
public static ObjectDictWriter.DictObjectWriter buildDict(ColumnMetadata metadata, DictVector vector, List<AbstractObjectWriter> keyValueWriters) {
DictEntryWriter.DictEntryObjectWriter entryObjectWriter = DictEntryWriter.buildDictEntryWriter(metadata, keyValueWriters, vector);
DictWriter objectDictWriter;
if (vector != null) {
objectDictWriter = new ObjectDictWriter(metadata, vector.getOffsetVector(), entryObjectWriter);
} else {
objectDictWriter = new DummyDictWriter(metadata, entryObjectWriter);
}
return new ObjectDictWriter.DictObjectWriter(objectDictWriter);
}
Aggregations