ru.yandex.clickhouse.response.ArrayToStringDeserializer Maven / Gradle / Ivy
package ru.yandex.clickhouse.response;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.type.TypeFactory;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import ru.yandex.clickhouse.Jackson;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
class ArrayToStringDeserializer extends JsonDeserializer> {
private static final LoadingCache> deserializers
= CacheBuilder.newBuilder()
.weakKeys()
.concurrencyLevel(16)
.maximumSize(10000)
.build(new CacheLoader>() {
@Override
public JsonDeserializer