org.hibernate.search.elasticsearch.work.impl

## Class BulkWork

- java.lang.Object
- - org.hibernate.search.elasticsearch.work.impl.BulkWork

- All Implemented Interfaces:
    ElasticsearchWork<BulkResult>

      public class BulkWork
      extends Object
      implements ElasticsearchWork<BulkResult>

  Author:
    Yoann Rodiere

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BulkWork.Builder`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `BulkWork(BulkWork.Builder builder)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `aggregate(ElasticsearchWorkAggregator aggregator)`
    `CompletableFuture<BulkResult>` | `execute(ElasticsearchWorkExecutionContext context)`
    `LuceneWork` | `getLuceneWork()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BulkWork

          protected BulkWork(BulkWork.Builder builder)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### execute

          public CompletableFuture<BulkResult> execute(ElasticsearchWorkExecutionContext context)

      Specified by:
        `execute` in interface `ElasticsearchWork<BulkResult>`

    - #### aggregate

          public void aggregate(ElasticsearchWorkAggregator aggregator)

      Specified by:
        `aggregate` in interface `ElasticsearchWork<BulkResult>`

    - #### getLuceneWork

          public LuceneWork getLuceneWork()

      Specified by:
        `getLuceneWork` in interface `ElasticsearchWork<BulkResult>`
      Returns:
        the original Lucene works from which this work was derived.

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