com.github.euler.elasticsearch.ElasticsearchExtension Maven / Gradle / Ivy
package com.github.euler.elasticsearch;
import java.util.Arrays;
import java.util.List;
import com.github.euler.configuration.ContextConfigConverter;
import com.github.euler.configuration.EulerExtension;
import com.github.euler.configuration.TaskConfigConverter;
import com.github.euler.configuration.TypeConfigConverter;
import com.github.euler.elasticsearch.req.InsertRequestFactoryConfigConverter;
import com.github.euler.elasticsearch.req.UpdateRequestFactoryConfigConverter;
import com.github.euler.elasticsearch.req.UpsertRequestFactoryConfigConverter;
public class ElasticsearchExtension implements EulerExtension {
@Override
public List taskConverters() {
return Arrays.asList(
new ElasticsearchFragmentTaskConfigConverter(),
new ElasticsearchMetadataTaskConfigConverter(),
new ElasticsearchDeleteParentChildTaskConfigConverter());
}
@Override
public List> typeConverters() {
return Arrays.asList(new ElasticsearchSourceConfigConverter(),
new ElasticsearchConfigClientConfigConverter(),
new ElasticsearchContextClientConfigConverter(),
new ExistsInIndexConditionConfigConverter(),
new InsertRequestFactoryConfigConverter(),
new UpdateRequestFactoryConfigConverter(),
new UpsertRequestFactoryConfigConverter());
}
@Override
public List pathConverters() {
return Arrays.asList(new ElasticsearchClientConfigConverter(),
new CreateIndexInitializableConfigConverter());
}
@Override
public String getDescription() {
return "Elasticsearch Extension";
}
}