Record Class JDBCEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.jdbc.JDBCEmitterConfig
public record JDBCEmitterConfig(String connection, String insert, String createTable, String alterTable, String postConnection, int maxRetries, int maxStringLength, LinkedHashMap<String,String> keys, String attachmentStrategy, String multivaluedFieldStrategy, String multivaluedFieldDelimiter)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionJDBCEmitterConfig(String connection, String insert, String createTable, String alterTable, String postConnection, int maxRetries, int maxStringLength, LinkedHashMap<String, String> keys, String attachmentStrategy, String multivaluedFieldStrategy, String multivaluedFieldDelimiter) Creates an instance of aJDBCEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealterTablerecord component.Returns the value of theattachmentStrategyrecord component.Returns the value of theconnectionrecord component.Returns the value of thecreateTablerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the effective maxStringLength, using the default of 64000 if not set or 0.final inthashCode()Returns a hash code value for this object.insert()Returns the value of theinsertrecord component.keys()Returns the value of thekeysrecord component.static JDBCEmitterConfigintReturns the value of themaxRetriesrecord component.intReturns the value of themaxStringLengthrecord component.Returns the value of themultivaluedFieldDelimiterrecord component.Returns the value of themultivaluedFieldStrategyrecord component.Returns the value of thepostConnectionrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate()
-
Constructor Details
-
JDBCEmitterConfig
public JDBCEmitterConfig(String connection, String insert, String createTable, String alterTable, String postConnection, int maxRetries, int maxStringLength, LinkedHashMap<String, String> keys, String attachmentStrategy, String multivaluedFieldStrategy, String multivaluedFieldDelimiter) Creates an instance of aJDBCEmitterConfigrecord class.- Parameters:
connection- the value for theconnectionrecord componentinsert- the value for theinsertrecord componentcreateTable- the value for thecreateTablerecord componentalterTable- the value for thealterTablerecord componentpostConnection- the value for thepostConnectionrecord componentmaxRetries- the value for themaxRetriesrecord componentmaxStringLength- the value for themaxStringLengthrecord componentkeys- the value for thekeysrecord componentattachmentStrategy- the value for theattachmentStrategyrecord componentmultivaluedFieldStrategy- the value for themultivaluedFieldStrategyrecord componentmultivaluedFieldDelimiter- the value for themultivaluedFieldDelimiterrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
getAttachmentStrategyEnum
- Throws:
TikaConfigException
-
getMultivaluedFieldStrategyEnum
public JDBCEmitterConfig.MultivaluedFieldStrategy getMultivaluedFieldStrategyEnum() throws TikaConfigException- Throws:
TikaConfigException
-
getEffectiveMaxStringLength
public int getEffectiveMaxStringLength()Returns the effective maxStringLength, using the default of 64000 if not set or 0. -
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 '=='. -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
insert
Returns the value of theinsertrecord component.- Returns:
- the value of the
insertrecord component
-
createTable
Returns the value of thecreateTablerecord component.- Returns:
- the value of the
createTablerecord component
-
alterTable
Returns the value of thealterTablerecord component.- Returns:
- the value of the
alterTablerecord component
-
postConnection
Returns the value of thepostConnectionrecord component.- Returns:
- the value of the
postConnectionrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-
maxStringLength
public int maxStringLength()Returns the value of themaxStringLengthrecord component.- Returns:
- the value of the
maxStringLengthrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
attachmentStrategy
Returns the value of theattachmentStrategyrecord component.- Returns:
- the value of the
attachmentStrategyrecord component
-
multivaluedFieldStrategy
Returns the value of themultivaluedFieldStrategyrecord component.- Returns:
- the value of the
multivaluedFieldStrategyrecord component
-
multivaluedFieldDelimiter
Returns the value of themultivaluedFieldDelimiterrecord component.- Returns:
- the value of the
multivaluedFieldDelimiterrecord component
-