Class BulkIndexingSession
java.lang.Object
com.flowable.indexing.job.history.async.BulkIndexingSession
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Session
public class BulkIndexingSession
extends Object
implements org.flowable.common.engine.impl.interceptor.Session
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<BulkIndexRequestInterceptor> protected BulkRequest
protected org.flowable.common.engine.impl.interceptor.CommandContext
protected ElasticsearchClient
protected com.fasterxml.jackson.databind.ObjectMapper
protected long
-
Constructor Summary
ConstructorsConstructorDescriptionBulkIndexingSession
(org.flowable.common.engine.impl.interceptor.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
protected org.flowable.common.engine.impl.interceptor.CommandContext 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(org.flowable.common.engine.impl.interceptor.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()- Specified by:
flush
in interfaceorg.flowable.common.engine.impl.interceptor.Session
-
close
public void close()- Specified by:
close
in interfaceorg.flowable.common.engine.impl.interceptor.Session
-
getBulkRequest
-