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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionSolrEmitterConfig(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 aSolrEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentStrategyrecord component.Returns the value of theauthSchemerecord component.intReturns the value of thecommitWithinrecord component.intReturns the value of theconnectionTimeoutMillisrecord component.Returns the value of theembeddedFileFieldNamerecord component.final booleanIndicates whether some other object is "equal to" this one.intintintfinal inthashCode()Returns a hash code value for this object.idField()Returns the value of theidFieldrecord component.static SolrEmitterConfigpassword()Returns the value of thepasswordrecord component.Returns the value of theproxyHostrecord component.Returns the value of theproxyPortrecord component.intReturns the value of thesocketTimeoutMillisrecord component.Returns the value of thesolrCollectionrecord component.solrUrls()Returns the value of thesolrUrlsrecord component.Returns the value of thesolrZkChrootrecord component.Returns the value of thesolrZkHostsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateStrategyrecord component.userName()Returns the value of theuserNamerecord component.voidvalidate()
-
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 aSolrEmitterConfigrecord class.- Parameters:
solrCollection- the value for thesolrCollectionrecord componentsolrUrls- the value for thesolrUrlsrecord componentsolrZkHosts- the value for thesolrZkHostsrecord componentsolrZkChroot- the value for thesolrZkChrootrecord componentidField- the value for theidFieldrecord componentcommitWithin- the value for thecommitWithinrecord componentconnectionTimeoutMillis- the value for theconnectionTimeoutMillisrecord componentsocketTimeoutMillis- the value for thesocketTimeoutMillisrecord componentattachmentStrategy- the value for theattachmentStrategyrecord componentupdateStrategy- the value for theupdateStrategyrecord componentembeddedFileFieldName- the value for theembeddedFileFieldNamerecord componentuserName- the value for theuserNamerecord componentpassword- the value for thepasswordrecord componentauthScheme- the value for theauthSchemerecord componentproxyHost- the value for theproxyHostrecord componentproxyPort- the value for theproxyPortrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
getAttachmentStrategyEnum
-
getUpdateStrategyEnum
-
getIdFieldOrDefault
-
getCommitWithinOrDefault
public int getCommitWithinOrDefault() -
getConnectionTimeoutMillisOrDefault
public int getConnectionTimeoutMillisOrDefault() -
getSocketTimeoutMillisOrDefault
public int getSocketTimeoutMillisOrDefault() -
getEmbeddedFileFieldNameOrDefault
-
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 '=='. -
solrCollection
Returns the value of thesolrCollectionrecord component.- Returns:
- the value of the
solrCollectionrecord component
-
solrUrls
Returns the value of thesolrUrlsrecord component.- Returns:
- the value of the
solrUrlsrecord component
-
solrZkHosts
Returns the value of thesolrZkHostsrecord component.- Returns:
- the value of the
solrZkHostsrecord component
-
solrZkChroot
Returns the value of thesolrZkChrootrecord component.- Returns:
- the value of the
solrZkChrootrecord component
-
idField
Returns the value of theidFieldrecord component.- Returns:
- the value of the
idFieldrecord component
-
commitWithin
public int commitWithin()Returns the value of thecommitWithinrecord component.- Returns:
- the value of the
commitWithinrecord component
-
connectionTimeoutMillis
public int connectionTimeoutMillis()Returns the value of theconnectionTimeoutMillisrecord component.- Returns:
- the value of the
connectionTimeoutMillisrecord component
-
socketTimeoutMillis
public int socketTimeoutMillis()Returns the value of thesocketTimeoutMillisrecord component.- Returns:
- the value of the
socketTimeoutMillisrecord 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
-
embeddedFileFieldName
Returns the value of theembeddedFileFieldNamerecord component.- Returns:
- the value of the
embeddedFileFieldNamerecord component
-
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
authScheme
Returns the value of theauthSchemerecord component.- Returns:
- the value of the
authSchemerecord component
-
proxyHost
Returns the value of theproxyHostrecord component.- Returns:
- the value of the
proxyHostrecord component
-
proxyPort
Returns the value of theproxyPortrecord component.- Returns:
- the value of the
proxyPortrecord component
-