Record Class OpenSearchEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.opensearch.OpenSearchEmitterConfig
public record OpenSearchEmitterConfig(String openSearchUrl, String idField, OpenSearchEmitterConfig.AttachmentStrategy attachmentStrategy, OpenSearchEmitterConfig.UpdateStrategy updateStrategy, int commitWithin, String embeddedFileFieldName, HttpClientConfig httpClientConfig)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchEmitterConfig(String openSearchUrl, String idField, OpenSearchEmitterConfig.AttachmentStrategy attachmentStrategy, OpenSearchEmitterConfig.UpdateStrategy updateStrategy, int commitWithin, String embeddedFileFieldName, HttpClientConfig httpClientConfig) Creates an instance of aOpenSearchEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentStrategyrecord component.intReturns the value of thecommitWithinrecord component.Returns the value of theembeddedFileFieldNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpClientConfigrecord component.idField()Returns the value of theidFieldrecord component.static OpenSearchEmitterConfigReturns the value of theopenSearchUrlrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateStrategyrecord component.
-
Constructor Details
-
OpenSearchEmitterConfig
public OpenSearchEmitterConfig(String openSearchUrl, String idField, OpenSearchEmitterConfig.AttachmentStrategy attachmentStrategy, OpenSearchEmitterConfig.UpdateStrategy updateStrategy, int commitWithin, String embeddedFileFieldName, HttpClientConfig httpClientConfig) Creates an instance of aOpenSearchEmitterConfigrecord class.- Parameters:
openSearchUrl- the value for theopenSearchUrlrecord componentidField- the value for theidFieldrecord componentattachmentStrategy- the value for theattachmentStrategyrecord componentupdateStrategy- the value for theupdateStrategyrecord componentcommitWithin- the value for thecommitWithinrecord componentembeddedFileFieldName- the value for theembeddedFileFieldNamerecord 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
-
idField
Returns the value of theidFieldrecord component.- Returns:
- the value of the
idFieldrecord component
-
attachmentStrategy
Returns the value of theattachmentStrategyrecord component.- Returns:
- the value of the
attachmentStrategyrecord component
-
updateStrategy
Returns the value of theupdateStrategyrecord component.- Returns:
- the value of the
updateStrategyrecord component
-
commitWithin
public int commitWithin()Returns the value of thecommitWithinrecord component.- Returns:
- the value of the
commitWithinrecord component
-
embeddedFileFieldName
Returns the value of theembeddedFileFieldNamerecord component.- Returns:
- the value of the
embeddedFileFieldNamerecord component
-
httpClientConfig
Returns the value of thehttpClientConfigrecord component.- Returns:
- the value of the
httpClientConfigrecord component
-