![JAR search and dependency download from the Maven repository](/logo.png)
com.github.euler.elasticsearch.ElasticsearchClientConfigConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of euler-elasticsearch Show documentation
Show all versions of euler-elasticsearch Show documentation
Euler - File Processing API - Elasticsearch module.
package com.github.euler.elasticsearch;
import org.elasticsearch.client.RestHighLevelClient;
import com.github.euler.configuration.ConfigContext;
import com.github.euler.configuration.ContextConfigConverter;
import com.github.euler.configuration.TypesConfigConverter;
import com.typesafe.config.ConfigValue;
public class ElasticsearchClientConfigConverter implements ContextConfigConverter {
@Override
public String path() {
return "elasticsearch-client";
}
@Override
public ConfigContext convert(ConfigValue value, ConfigContext configContext, TypesConfigConverter typesConfigConverter) {
RestHighLevelClient client = typesConfigConverter.convert(AbstractElasticsearchClientConfigConverter.TYPE, value, configContext);
return ConfigContext.builder()
.put(RestHighLevelClient.class, client)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy