Package ch.so.agi.gretl.internal.duckdb
Record Class DuckDbExecutionRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.DuckDbExecutionRequest
public record DuckDbExecutionRequest(String taskName, Path databaseFile, boolean inMemory, boolean installExtensions, List<DuckDbSourceSpec> sources, List<DuckDbTargetSpec> targets, List<Path> sqlFiles, List<Map<String,String>> parameterSets, List<DuckDbExportSpec> exports)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDuckDbExecutionRequest(String taskName, Path databaseFile, boolean inMemory, boolean installExtensions, List<DuckDbSourceSpec> sources, List<DuckDbTargetSpec> targets, List<Path> sqlFiles, List<Map<String, String>> parameterSets, List<DuckDbExportSpec> exports) Creates an instance of aDuckDbExecutionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabaseFilerecord component.final booleanIndicates whether some other object is "equal to" this one.exports()Returns the value of theexportsrecord component.final inthashCode()Returns a hash code value for this object.booleaninMemory()Returns the value of theinMemoryrecord component.booleanReturns the value of theinstallExtensionsrecord component.jdbcUrl()Returns the value of theparameterSetsrecord component.sources()Returns the value of thesourcesrecord component.sqlFiles()Returns the value of thesqlFilesrecord component.targets()Returns the value of thetargetsrecord component.taskName()Returns the value of thetaskNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DuckDbExecutionRequest
public DuckDbExecutionRequest(String taskName, Path databaseFile, boolean inMemory, boolean installExtensions, List<DuckDbSourceSpec> sources, List<DuckDbTargetSpec> targets, List<Path> sqlFiles, List<Map<String, String>> parameterSets, List<DuckDbExportSpec> exports) Creates an instance of aDuckDbExecutionRequestrecord class.- Parameters:
taskName- the value for thetaskNamerecord componentdatabaseFile- the value for thedatabaseFilerecord componentinMemory- the value for theinMemoryrecord componentinstallExtensions- the value for theinstallExtensionsrecord componentsources- the value for thesourcesrecord componenttargets- the value for thetargetsrecord componentsqlFiles- the value for thesqlFilesrecord componentparameterSets- the value for theparameterSetsrecord componentexports- the value for theexportsrecord component
-
-
Method Details
-
jdbcUrl
-
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 '=='. -
taskName
Returns the value of thetaskNamerecord component.- Returns:
- the value of the
taskNamerecord component
-
databaseFile
Returns the value of thedatabaseFilerecord component.- Returns:
- the value of the
databaseFilerecord component
-
inMemory
public boolean inMemory()Returns the value of theinMemoryrecord component.- Returns:
- the value of the
inMemoryrecord component
-
installExtensions
public boolean installExtensions()Returns the value of theinstallExtensionsrecord component.- Returns:
- the value of the
installExtensionsrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
targets
Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-
sqlFiles
Returns the value of thesqlFilesrecord component.- Returns:
- the value of the
sqlFilesrecord component
-
parameterSets
Returns the value of theparameterSetsrecord component.- Returns:
- the value of the
parameterSetsrecord component
-
exports
Returns the value of theexportsrecord component.- Returns:
- the value of the
exportsrecord component
-