use of org.apache.drill.exec.record.ColumnConverter.DictColumnConverter in project drill by apache.
the class ColumnConverterFactory method getDictConverter.
private ColumnConverter getDictConverter(TupleMetadata providedSchema, TupleMetadata readerSchema, DictWriter dictWriter) {
ColumnConverter keyConverter = getScalarConverter(readerSchema.metadata(DictVector.FIELD_KEY_NAME), dictWriter.keyWriter());
ColumnConverter valueConverter = getConverter(providedSchema, readerSchema.metadata(DictVector.FIELD_VALUE_NAME), dictWriter.valueWriter());
return new DictColumnConverter(dictWriter, keyConverter, valueConverter);
}
Aggregations