public class BulkIndexingSessionFactory extends Object implements SessionFactory
Modifier and Type | Field and Description |
---|---|
protected List<BulkIndexRequestInterceptor> |
bulkIndexRequestInterceptors |
protected ElasticsearchCompatibility |
elasticsearchCompatibility |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected org.elasticsearch.client.RestHighLevelClient |
restHighLevelClient |
Constructor and Description |
---|
BulkIndexingSessionFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.elasticsearch.client.RestHighLevelClient restHighLevelClient,
ElasticsearchCompatibility elasticsearchCompatibility,
List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getSessionType() |
Session |
openSession(CommandContext commandContext) |
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected org.elasticsearch.client.RestHighLevelClient restHighLevelClient
protected ElasticsearchCompatibility elasticsearchCompatibility
protected List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors
public BulkIndexingSessionFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.elasticsearch.client.RestHighLevelClient restHighLevelClient, ElasticsearchCompatibility elasticsearchCompatibility, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors)
public Class<?> getSessionType()
getSessionType
in interface SessionFactory
public Session openSession(CommandContext commandContext)
openSession
in interface SessionFactory