Class ElasticsearchTextStructureClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTextStructureClient>
co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureClient
public class ElasticsearchTextStructureClient
extends ApiClient<ElasticsearchTransport,ElasticsearchTextStructureClient>
Client for the text_structure namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchTextStructureClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiontestGrokPattern
(TestGrokPatternRequest request) Tests a Grok pattern on some text.final TestGrokPatternResponse
Tests a Grok pattern on some text.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchTextStructureClient
-
ElasticsearchTextStructureClient
public ElasticsearchTextStructureClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchTextStructureClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchTextStructureClient>
-
testGrokPattern
public TestGrokPatternResponse testGrokPattern(TestGrokPatternRequest request) throws IOException, ElasticsearchException Tests a Grok pattern on some text.- Throws:
IOException
ElasticsearchException
- See Also:
-
testGrokPattern
public final TestGrokPatternResponse testGrokPattern(Function<TestGrokPatternRequest.Builder, ObjectBuilder<TestGrokPatternRequest>> fn) throws IOException, ElasticsearchExceptionTests a Grok pattern on some text.- Parameters:
fn
- a function that initializes a builder to create theTestGrokPatternRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-