Class BulkIndexingSession
- java.lang.Object
-
- com.flowable.indexing.job.history.async.BulkIndexingSession
-
-
Field Summary
Fields Modifier and Type Field Description protected List<BulkIndexRequestInterceptor>bulkIndexRequestInterceptorsprotected BulkRequestbulkRequestprotected CommandContextcommandContextprotected ElasticsearchClientelasticsearchClientprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected Map<String,Set<String>>registeredFullIndexes
-
Constructor Summary
Constructors Constructor Description BulkIndexingSession(CommandContext commandContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchClient elasticsearchClient, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidensureBulkRequestInitialized()ElasticsearchBulkResponseexecuteBulkRequest()voidflush()BulkRequestgetBulkRequest()voidindexData(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)voidindexDataWithExternalVersion(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, long version)booleanisFullIndexRegistered(String type, String id)voidregisterFullIndex(String type, String id)voidretryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode)voidupsertData(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)voidupsertDataWithScript(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode upsertDocNode, com.fasterxml.jackson.databind.node.ObjectNode scriptNode)
-
-
-
Field Detail
-
commandContext
protected CommandContext commandContext
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
elasticsearchClient
protected ElasticsearchClient elasticsearchClient
-
bulkIndexRequestInterceptors
protected List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors
-
bulkRequest
protected BulkRequest bulkRequest
-
-
Constructor Detail
-
BulkIndexingSession
public BulkIndexingSession(CommandContext commandContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchClient elasticsearchClient, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors)
-
-
Method Detail
-
upsertData
public void upsertData(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
upsertDataWithScript
public void upsertDataWithScript(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode upsertDocNode, com.fasterxml.jackson.databind.node.ObjectNode scriptNode)
-
indexData
public void indexData(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
indexDataWithExternalVersion
public void indexDataWithExternalVersion(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, long version)
-
retryFailedBulkRequest
public void retryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode)
-
executeBulkRequest
public ElasticsearchBulkResponse executeBulkRequest()
-
ensureBulkRequestInitialized
protected void ensureBulkRequestInitialized()
-
getBulkRequest
public BulkRequest getBulkRequest()
-
-