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

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

The newest version!
package ru.yandex.clickhouse.response;

import ru.yandex.clickhouse.ResponseFactory;

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

import com.clickhouse.client.data.JsonStreamUtils;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy