Class ElasticsearchTextStructureClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureClient
public class ElasticsearchTextStructureClient extends ApiClient
Client for the text_structure namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchTextStructureClient(Transport transport)
-
Method Summary
Modifier and Type Method Description <TJsonDocument>
FindStructureResponsefindStructure(FindStructureRequest<TJsonDocument> request)
Finds the structure of a text file.<TJsonDocument>
FindStructureResponsefindStructure(java.util.function.Function<FindStructureRequest.Builder<TJsonDocument>,ObjectBuilder<FindStructureRequest<TJsonDocument>>> fn)
Finds the structure of a text file.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchTextStructureClient
-
-
Method Details
-
findStructure
public <TJsonDocument> FindStructureResponse findStructure(FindStructureRequest<TJsonDocument> request) throws java.io.IOExceptionFinds 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> FindStructureResponse findStructure(java.util.function.Function<FindStructureRequest.Builder<TJsonDocument>,ObjectBuilder<FindStructureRequest<TJsonDocument>>> fn) throws java.io.IOExceptionFinds 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
-