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>
bulkIndexRequestConflictHandlers
protected List<BulkIndexRequestInterceptor>
bulkIndexRequestInterceptors
protected BulkRequest
bulkRequest
protected CommandContext
commandContext
protected ElasticsearchClient
elasticsearchClient
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected Map<String,Set<String>>
registeredFullIndexes
protected long
timestamp
-
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 void
close()
protected void
ensureBulkRequestInitialized()
ElasticsearchBulkResponse
executeBulkRequest()
void
flush()
BulkRequest
getBulkRequest()
LowLevelIndexingService.BulkIndexRequestConflictHandler
getConflictHandler(String type)
void
indexData(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
void
indexDataWithExternalVersion(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
boolean
isFullIndexRegistered(String type, String id)
void
registerFullIndex(String type, String id)
void
registerFullIndexWithExternalVersion(String type, String id, LowLevelIndexingService.BulkIndexRequestConflictHandler bulkIndexRequestConflictHandler)
void
retryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode)
void
upsertData(String index, String type, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
void
upsertDataWithScript(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()
-
-