public abstract class SimpleBulkableElasticsearchWork<R> extends SimpleElasticsearchWork<R> implements BulkableElasticsearchWork<R>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleBulkableElasticsearchWork.Builder<B> |
dirtiedIndexName, markIndexDirty, request, resultAssessor| Modifier | Constructor and Description |
|---|---|
protected |
SimpleBulkableElasticsearchWork(SimpleBulkableElasticsearchWork.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(ElasticsearchWorkAggregator aggregator) |
protected CompletableFuture<?> |
beforeExecute(ElasticsearchWorkExecutionContext executionContext,
ElasticsearchRequest request) |
protected abstract R |
generateResult(ElasticsearchWorkExecutionContext context,
com.google.gson.JsonObject bulkResponseItem) |
com.google.gson.JsonObject |
getBulkableActionBody() |
com.google.gson.JsonObject |
getBulkableActionMetadata() |
CompletableFuture<R> |
handleBulkResult(ElasticsearchWorkExecutionContext context,
com.google.gson.JsonObject bulkResponseItem) |
afterSuccess, execute, generateResult, getLuceneWork, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getLuceneWorkprotected SimpleBulkableElasticsearchWork(SimpleBulkableElasticsearchWork.Builder<?> builder)
public void aggregate(ElasticsearchWorkAggregator aggregator)
aggregate in interface ElasticsearchWork<R>aggregate in class SimpleElasticsearchWork<R>public com.google.gson.JsonObject getBulkableActionMetadata()
getBulkableActionMetadata in interface BulkableElasticsearchWork<R>public com.google.gson.JsonObject getBulkableActionBody()
getBulkableActionBody in interface BulkableElasticsearchWork<R>public CompletableFuture<R> handleBulkResult(ElasticsearchWorkExecutionContext context, com.google.gson.JsonObject bulkResponseItem)
handleBulkResult in interface BulkableElasticsearchWork<R>context - The execution contextbulkResponseItem - A future eventually returning the part of the bulk JSON result relevant to this workprotected final CompletableFuture<?> beforeExecute(ElasticsearchWorkExecutionContext executionContext, ElasticsearchRequest request)
beforeExecute in class SimpleElasticsearchWork<R>protected abstract R generateResult(ElasticsearchWorkExecutionContext context, com.google.gson.JsonObject bulkResponseItem)
Copyright © 2006–2017 Hibernate. All rights reserved.