Search in sources :

Example 1 with DummyDictWriter

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);
}
Also used : DictWriter(org.apache.drill.exec.vector.accessor.DictWriter) DummyDictWriter(org.apache.drill.exec.vector.accessor.writer.dummy.DummyDictWriter) DummyDictWriter(org.apache.drill.exec.vector.accessor.writer.dummy.DummyDictWriter)

Aggregations

DictWriter (org.apache.drill.exec.vector.accessor.DictWriter)1 DummyDictWriter (org.apache.drill.exec.vector.accessor.writer.dummy.DummyDictWriter)1