All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.clickhouse.response.ClickHouseResponseFactory Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package ru.yandex.clickhouse.response;

import ru.yandex.clickhouse.Jackson;
import ru.yandex.clickhouse.ResponseFactory;

import java.io.IOException;
import java.io.InputStream;

public class ClickHouseResponseFactory implements ResponseFactory {
    @Override
    public ClickHouseResponse create(InputStream response) throws IOException {
        return Jackson.getObjectMapper().readValue(response, ClickHouseResponse.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy