Search in sources :

Example 1 with DictColumnConverter

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);
}
Also used : ScalarColumnConverter(org.apache.drill.exec.record.ColumnConverter.ScalarColumnConverter) DummyColumnConverter(org.apache.drill.exec.record.ColumnConverter.DummyColumnConverter) DictColumnConverter(org.apache.drill.exec.record.ColumnConverter.DictColumnConverter) MapColumnConverter(org.apache.drill.exec.record.ColumnConverter.MapColumnConverter) ArrayColumnConverter(org.apache.drill.exec.record.ColumnConverter.ArrayColumnConverter) DictColumnConverter(org.apache.drill.exec.record.ColumnConverter.DictColumnConverter)

Aggregations

ArrayColumnConverter (org.apache.drill.exec.record.ColumnConverter.ArrayColumnConverter)1 DictColumnConverter (org.apache.drill.exec.record.ColumnConverter.DictColumnConverter)1 DummyColumnConverter (org.apache.drill.exec.record.ColumnConverter.DummyColumnConverter)1 MapColumnConverter (org.apache.drill.exec.record.ColumnConverter.MapColumnConverter)1 ScalarColumnConverter (org.apache.drill.exec.record.ColumnConverter.ScalarColumnConverter)1