Class BulkIndexingSession
java.lang.Object
com.flowable.indexing.job.history.async.BulkIndexingSession
- All Implemented Interfaces:
Session
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<BulkIndexRequestInterceptor>
protected BulkRequest
protected CommandContext
protected ElasticsearchClient
protected com.fasterxml.jackson.databind.ObjectMapper
protected long
-
Constructor Summary
ConstructorDescriptionBulkIndexingSession
(CommandContext commandContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchClient elasticsearchClient, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
void
flush()
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 Details
-
commandContext
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
elasticsearchClient
-
bulkIndexRequestInterceptors
-
bulkRequest
-
registeredFullIndexes
-
bulkIndexRequestConflictHandlers
protected Map<String,LowLevelIndexingService.BulkIndexRequestConflictHandler> bulkIndexRequestConflictHandlers -
timestamp
protected long timestamp
-
-
Constructor Details
-
BulkIndexingSession
public BulkIndexingSession(CommandContext commandContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchClient elasticsearchClient, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors)
-
-
Method Details
-
upsertData
-
upsertDataWithScript
-
indexData
-
indexDataWithExternalVersion
-
registerFullIndex
-
registerFullIndexWithExternalVersion
public void registerFullIndexWithExternalVersion(String type, String id, LowLevelIndexingService.BulkIndexRequestConflictHandler bulkIndexRequestConflictHandler) -
getConflictHandler
-
isFullIndexRegistered
-
retryFailedBulkRequest
public void retryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode) -
executeBulkRequest
-
ensureBulkRequestInitialized
protected void ensureBulkRequestInitialized() -
flush
public void flush() -
close
public void close() -
getBulkRequest
-