Record Class OpenSearchReporterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.reporter.opensearch.OpenSearchReporterConfig
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchReporterConfig(String openSearchUrl, Set<String> includes, Set<String> excludes, String keyPrefix, boolean includeRouting, HttpClientConfig httpClientConfig) Creates an instance of aOpenSearchReporterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.excludes()Returns the value of theexcludesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpClientConfigrecord component.booleanReturns the value of theincludeRoutingrecord component.includes()Returns the value of theincludesrecord component.Returns the value of thekeyPrefixrecord component.static OpenSearchReporterConfigReturns the value of theopenSearchUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenSearchReporterConfig
public OpenSearchReporterConfig(String openSearchUrl, Set<String> includes, Set<String> excludes, String keyPrefix, boolean includeRouting, HttpClientConfig httpClientConfig) Creates an instance of aOpenSearchReporterConfigrecord class.- Parameters:
openSearchUrl- the value for theopenSearchUrlrecord componentincludes- the value for theincludesrecord componentexcludes- the value for theexcludesrecord componentkeyPrefix- the value for thekeyPrefixrecord componentincludeRouting- the value for theincludeRoutingrecord componenthttpClientConfig- the value for thehttpClientConfigrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
openSearchUrl
Returns the value of theopenSearchUrlrecord component.- Returns:
- the value of the
openSearchUrlrecord component
-
includes
Returns the value of theincludesrecord component.- Returns:
- the value of the
includesrecord component
-
excludes
Returns the value of theexcludesrecord component.- Returns:
- the value of the
excludesrecord component
-
keyPrefix
Returns the value of thekeyPrefixrecord component.- Returns:
- the value of the
keyPrefixrecord component
-
includeRouting
public boolean includeRouting()Returns the value of theincludeRoutingrecord component.- Returns:
- the value of the
includeRoutingrecord component
-
httpClientConfig
Returns the value of thehttpClientConfigrecord component.- Returns:
- the value of the
httpClientConfigrecord component
-