public Class<?> toJavaClass(ClickHouseColumn column, Map<String, Class<?>> typeMap) {
        Class<?> clazz = getCustomJavaClass(column, typeMap);
        if (clazz != null) {
            return clazz;
        }

        ClickHouseDataType type = column.getDataType();
        switch (type) {
            case DateTime:
            case DateTime32:
            case DateTime64:
                clazz = column.getTimeZone() != null ? OffsetDateTime.class : LocalDateTime.class;
                break;
            default:
                clazz = type.getObjectClass();
                break;
        }
        return clazz;
    }
Converts {@link ClickHouseColumn} to {@link Class}.

@param column  non-null column definition
@param typeMap optional custom type mapping
@return non-null Java class
clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/JdbcTypeMapping.java