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) |
com.google.gson.JsonObject |
getBulkableActionBody() |
com.google.gson.JsonObject |
getBulkableActionMetadata() |
boolean |
handleBulkResult(ElasticsearchWorkExecutionContext context,
com.google.gson.JsonObject bulkResponseItem) |
afterSuccess, beforeExecute, execute, generateResult, getLuceneWorks, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getLuceneWorksprotected 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 boolean handleBulkResult(ElasticsearchWorkExecutionContext context, com.google.gson.JsonObject bulkResponseItem)
handleBulkResult in interface BulkableElasticsearchWork<R>context - The execution contextbulkResponseItem - The part of the JSON result relevant to this worktrue if the result is considered a success, false otherwise.Copyright © 2006–2017 Hibernate. All rights reserved.