Class BulkIndexingSession
- java.lang.Object
-
- com.flowable.indexing.job.history.async.BulkIndexingSession
-
-
Field Summary
Fields Modifier and Type Field Description 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
-
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()
void
indexData(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
void
indexDataWithExternalVersion(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, long version)
boolean
isFullIndexRegistered(String type, String id)
void
registerFullIndex(String type, String id)
void
retryFailedBulkRequest(com.fasterxml.jackson.databind.node.ObjectNode actionNode, com.fasterxml.jackson.databind.node.ObjectNode sourceNode)
void
upsertData(String index, 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
-
-
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 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 id, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
indexDataWithExternalVersion
public void indexDataWithExternalVersion(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, long version)
-
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()
-
-