Class BulkIndexingSession
- java.lang.Object
-
- com.flowable.indexing.job.history.async.BulkIndexingSession
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,LowLevelIndexingService.BulkIndexRequestConflictHandler>bulkIndexRequestConflictHandlersprotected List<BulkIndexRequestInterceptor>bulkIndexRequestInterceptorsprotected BulkRequestbulkRequestprotected CommandContextcommandContextprotected ElasticsearchClientelasticsearchClientprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected Map<String,Set<String>>registeredFullIndexesprotected longtimestamp
-
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()LowLevelIndexingService.BulkIndexRequestConflictHandlergetConflictHandler(String type)voidindexData(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)voidindexDataWithExternalVersion(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)booleanisFullIndexRegistered(String type, String id)voidregisterFullIndex(String type, String id)voidregisterFullIndexWithExternalVersion(String type, String id, LowLevelIndexingService.BulkIndexRequestConflictHandler bulkIndexRequestConflictHandler)voidretryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode)voidupsertData(String index, String type, 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
-
bulkIndexRequestConflictHandlers
protected Map<String,LowLevelIndexingService.BulkIndexRequestConflictHandler> bulkIndexRequestConflictHandlers
-
timestamp
protected long timestamp
-
-
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 type, 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 type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
indexDataWithExternalVersion
public void indexDataWithExternalVersion(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
registerFullIndexWithExternalVersion
public void registerFullIndexWithExternalVersion(String type, String id, LowLevelIndexingService.BulkIndexRequestConflictHandler bulkIndexRequestConflictHandler)
-
getConflictHandler
public LowLevelIndexingService.BulkIndexRequestConflictHandler getConflictHandler(String type)
-
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()
-
-