Package ch.so.agi.gretl.internal.duckdb
Record Class CsvSourceSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.CsvSourceSpec
- All Implemented Interfaces:
DuckDbSourceSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.booleanReturns the value of theallVarcharrecord component.Returns the value of thedelimiterrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.mode()Returns the value of themoderecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CsvSourceSpec
public CsvSourceSpec(String alias, Path file, String table, String mode, Boolean header, String delimiter, boolean allVarchar) Creates an instance of aCsvSourceSpecrecord class.- Parameters:
alias- the value for thealiasrecord componentfile- the value for thefilerecord componenttable- the value for thetablerecord componentmode- the value for themoderecord componentheader- the value for theheaderrecord componentdelimiter- the value for thedelimiterrecord componentallVarchar- the value for theallVarcharrecord component
-
-
Method Details
-
requiredExtensions
- Specified by:
requiredExtensionsin interfaceDuckDbSourceSpec
-
inputSignature
- Specified by:
inputSignaturein interfaceDuckDbSourceSpec
-
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 '=='. -
alias
Returns the value of thealiasrecord component.- Specified by:
aliasin interfaceDuckDbSourceSpec- Returns:
- the value of the
aliasrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
delimiter
Returns the value of thedelimiterrecord component.- Returns:
- the value of the
delimiterrecord component
-
allVarchar
public boolean allVarchar()Returns the value of theallVarcharrecord component.- Returns:
- the value of the
allVarcharrecord component
-