org.hibernate.search.elasticsearch.work.impl

## Interface ElasticsearchWork<T>

- All Known Subinterfaces:
    BulkableElasticsearchWork<T>
  All Known Implementing Classes:
    BulkWork, ClearScrollWork, CloseIndexWork, CreateIndexWork, DeleteWork, DropIndexWork, ES2DeleteByQueryWork, ES2FlushWork, ES2OptimizeWork, ES5DeleteByQueryWork, ES5FlushWork, ES5OptimizeWork, ExplainWork, GetIndexSettingsWork, GetIndexTypeMappingsWork, IndexExistsWork, IndexWork, OpenIndexWork, PutIndexSettingsWork, PutIndexTypeMappingWork, RefreshWork, ScrollWork, SearchWork, SimpleBulkableElasticsearchWork, SimpleElasticsearchWork, WaitForIndexStatusWork

      public interface ElasticsearchWork<T>

  A unit of work to be delegated to the Elasticsearch backend.

  Classes implementing this interface know about the data to be sent (the request), but also about how to handle the response (callbacks, exception throwing).

  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `aggregate(ElasticsearchWorkAggregator aggregator)`
    `CompletableFuture<T>` | `execute(ElasticsearchWorkExecutionContext executionContext)`
    `LuceneWork` | `getLuceneWork()`

- - ### Method Detail

    - #### execute

          CompletableFuture<T> execute(ElasticsearchWorkExecutionContext executionContext)

    - #### aggregate

          void aggregate(ElasticsearchWorkAggregator aggregator)

    - #### getLuceneWork

          LuceneWork getLuceneWork()

      Returns:
        the original Lucene works from which this work was derived.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved