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
  • 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 a OpenSearchEmitterConfig record class.
      Parameters:
      openSearchUrl - the value for the openSearchUrl record component
      idField - the value for the idField record component
      attachmentStrategy - the value for the attachmentStrategy record component
      updateStrategy - the value for the updateStrategy record component
      commitWithin - the value for the commitWithin record component
      embeddedFileFieldName - the value for the embeddedFileFieldName record component
      httpClientConfig - the value for the httpClientConfig record component
  • Method Details

    • load

      public static OpenSearchEmitterConfig load(String json) throws TikaConfigException
      Throws:
      TikaConfigException
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • openSearchUrl

      public String openSearchUrl()
      Returns the value of the openSearchUrl record component.
      Returns:
      the value of the openSearchUrl record component
    • idField

      public String idField()
      Returns the value of the idField record component.
      Returns:
      the value of the idField record component
    • attachmentStrategy

      public OpenSearchEmitterConfig.AttachmentStrategy attachmentStrategy()
      Returns the value of the attachmentStrategy record component.
      Returns:
      the value of the attachmentStrategy record component
    • updateStrategy

      public OpenSearchEmitterConfig.UpdateStrategy updateStrategy()
      Returns the value of the updateStrategy record component.
      Returns:
      the value of the updateStrategy record component
    • commitWithin

      public int commitWithin()
      Returns the value of the commitWithin record component.
      Returns:
      the value of the commitWithin record component
    • embeddedFileFieldName

      public String embeddedFileFieldName()
      Returns the value of the embeddedFileFieldName record component.
      Returns:
      the value of the embeddedFileFieldName record component
    • httpClientConfig

      public HttpClientConfig httpClientConfig()
      Returns the value of the httpClientConfig record component.
      Returns:
      the value of the httpClientConfig record component