Class ElasticsearchTextStructureAsyncClient

java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureAsyncClient

public class ElasticsearchTextStructureAsyncClient
extends ApiClient
Client for the text_structure namespace.
  • Constructor Details

    • ElasticsearchTextStructureAsyncClient

      public ElasticsearchTextStructureAsyncClient​(Transport transport)
  • Method Details

    • findStructure

      public <TJsonDocument> java.util.concurrent.CompletableFuture<FindStructureResponse> findStructure​(FindStructureRequest<TJsonDocument> request) throws java.io.IOException
      Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • findStructure

      public final <TJsonDocument> java.util.concurrent.CompletableFuture<FindStructureResponse> findStructure​(java.util.function.Function<FindStructureRequest.Builder<TJsonDocument>,​ObjectBuilder<FindStructureRequest<TJsonDocument>>> fn) throws java.io.IOException
      Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
      Parameters:
      fn - a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co