Interface BulkableWork<T>

All Superinterfaces:
ElasticsearchWork
All Known Subinterfaces:
IndexingWork<T>, SingleDocumentIndexingWork
All Known Implementing Classes:
AbstractSingleDocumentIndexingWork, DeleteWork, IndexWork

public interface BulkableWork<T> extends ElasticsearchWork
  • Method Details

    • getRefreshStrategy

      DocumentRefreshStrategy getRefreshStrategy()
    • getBulkableActionMetadata

      com.google.gson.JsonObject getBulkableActionMetadata()
    • getBulkableActionBody

      com.google.gson.JsonObject getBulkableActionBody()
    • handleBulkResult

      T handleBulkResult(ElasticsearchWorkExecutionContext context, com.google.gson.JsonObject resultItem)
      Parameters:
      context - The execution context
      resultItem - A future eventually returning the part of the bulk JSON result relevant to this work
      Returns:
      the result of this work