Package org.elasticsearch.client
Class TextStructureClient
java.lang.Object
org.elasticsearch.client.TextStructureClient
Text Structure API client wrapper for the
RestHighLevelClient
See the X-Pack Text Structure APIs for additional information.
-
Method Summary
Modifier and TypeMethodDescriptionfindStructure(FindStructureRequest request, org.elasticsearch.client.RequestOptions options)
Finds the structure of a fileorg.elasticsearch.client.Cancellable
findStructureAsync(FindStructureRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<FindStructureResponse> listener)
Finds the structure of a file asynchronously and notifies the listener on completion
-
Method Details
-
findStructure
public FindStructureResponse findStructure(FindStructureRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionFinds the structure of a fileFor additional info see Text Structure Find Structure documentation
- Parameters:
request
- The find file structure requestoptions
- Additional request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response containing details of the file structure
- Throws:
IOException
- when there is a serialization issue sending the request or receiving the response
-
findStructureAsync
public org.elasticsearch.client.Cancellable findStructureAsync(FindStructureRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<FindStructureResponse> listener)Finds the structure of a file asynchronously and notifies the listener on completionFor additional info see Text Structure Find Structure documentation
- Parameters:
request
- The find file structure requestoptions
- Additional request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-