Class BulkIndexingSession
java.lang.Object
com.flowable.indexing.job.history.async.BulkIndexingSession
- All Implemented Interfaces:
Session
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<BulkIndexRequestInterceptor>protected BulkRequestprotected CommandContextprotected ElasticsearchClientprotected com.fasterxml.jackson.databind.ObjectMapperprotected long -
Constructor Summary
ConstructorsConstructorDescriptionBulkIndexingSession(CommandContext commandContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchClient elasticsearchClient, List<BulkIndexRequestInterceptor> bulkIndexRequestInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidvoidflush()getConflictHandler(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 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
-