Record Class SolrEmitterConfig

java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.solr.SolrEmitterConfig

public record SolrEmitterConfig(String solrCollection, List<String> solrUrls, List<String> solrZkHosts, String solrZkChroot, String idField, int commitWithin, int connectionTimeoutMillis, int socketTimeoutMillis, String attachmentStrategy, String updateStrategy, String embeddedFileFieldName, String userName, String password, String authScheme, String proxyHost, Integer proxyPort) extends Record
  • Constructor Details

    • SolrEmitterConfig

      public SolrEmitterConfig(String solrCollection, List<String> solrUrls, List<String> solrZkHosts, String solrZkChroot, String idField, int commitWithin, int connectionTimeoutMillis, int socketTimeoutMillis, String attachmentStrategy, String updateStrategy, String embeddedFileFieldName, String userName, String password, String authScheme, String proxyHost, Integer proxyPort)
      Creates an instance of a SolrEmitterConfig record class.
      Parameters:
      solrCollection - the value for the solrCollection record component
      solrUrls - the value for the solrUrls record component
      solrZkHosts - the value for the solrZkHosts record component
      solrZkChroot - the value for the solrZkChroot record component
      idField - the value for the idField record component
      commitWithin - the value for the commitWithin record component
      connectionTimeoutMillis - the value for the connectionTimeoutMillis record component
      socketTimeoutMillis - the value for the socketTimeoutMillis record component
      attachmentStrategy - the value for the attachmentStrategy record component
      updateStrategy - the value for the updateStrategy record component
      embeddedFileFieldName - the value for the embeddedFileFieldName record component
      userName - the value for the userName record component
      password - the value for the password record component
      authScheme - the value for the authScheme record component
      proxyHost - the value for the proxyHost record component
      proxyPort - the value for the proxyPort record component
  • Method Details

    • load

      public static SolrEmitterConfig load(String json) throws TikaConfigException
      Throws:
      TikaConfigException
    • validate

      public void validate() throws TikaConfigException
      Throws:
      TikaConfigException
    • getAttachmentStrategyEnum

      public SolrEmitterConfig.AttachmentStrategy getAttachmentStrategyEnum()
    • getUpdateStrategyEnum

      public SolrEmitterConfig.UpdateStrategy getUpdateStrategyEnum()
    • getIdFieldOrDefault

      public String getIdFieldOrDefault()
    • getCommitWithinOrDefault

      public int getCommitWithinOrDefault()
    • getConnectionTimeoutMillisOrDefault

      public int getConnectionTimeoutMillisOrDefault()
    • getSocketTimeoutMillisOrDefault

      public int getSocketTimeoutMillisOrDefault()
    • getEmbeddedFileFieldNameOrDefault

      public String getEmbeddedFileFieldNameOrDefault()
    • 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.
    • solrCollection

      public String solrCollection()
      Returns the value of the solrCollection record component.
      Returns:
      the value of the solrCollection record component
    • solrUrls

      public List<String> solrUrls()
      Returns the value of the solrUrls record component.
      Returns:
      the value of the solrUrls record component
    • solrZkHosts

      public List<String> solrZkHosts()
      Returns the value of the solrZkHosts record component.
      Returns:
      the value of the solrZkHosts record component
    • solrZkChroot

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

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

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

      public int connectionTimeoutMillis()
      Returns the value of the connectionTimeoutMillis record component.
      Returns:
      the value of the connectionTimeoutMillis record component
    • socketTimeoutMillis

      public int socketTimeoutMillis()
      Returns the value of the socketTimeoutMillis record component.
      Returns:
      the value of the socketTimeoutMillis record component
    • attachmentStrategy

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

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

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

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • authScheme

      public String authScheme()
      Returns the value of the authScheme record component.
      Returns:
      the value of the authScheme record component
    • proxyHost

      public String proxyHost()
      Returns the value of the proxyHost record component.
      Returns:
      the value of the proxyHost record component
    • proxyPort

      public Integer proxyPort()
      Returns the value of the proxyPort record component.
      Returns:
      the value of the proxyPort record component