Package ch.so.agi.gretl.internal.duckdb
Record Class PostgresSourceSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.PostgresSourceSpec
- All Implemented Interfaces:
DuckDbSourceSpec
public record PostgresSourceSpec(String alias, DatabaseSpec database, String mode, boolean autoDetectGeometry, List<PostgresTableSpec> tables)
extends Record
implements DuckDbSourceSpec
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresSourceSpec(String alias, DatabaseSpec database, String mode, boolean autoDetectGeometry, List<PostgresTableSpec> tables) Creates an instance of aPostgresSourceSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.booleanReturns the value of theautoDetectGeometryrecord component.database()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.tables()Returns the value of thetablesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostgresSourceSpec
public PostgresSourceSpec(String alias, DatabaseSpec database, String mode, boolean autoDetectGeometry, List<PostgresTableSpec> tables) Creates an instance of aPostgresSourceSpecrecord class.- Parameters:
alias- the value for thealiasrecord componentdatabase- the value for thedatabaserecord componentmode- the value for themoderecord componentautoDetectGeometry- the value for theautoDetectGeometryrecord componenttables- the value for thetablesrecord 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
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
autoDetectGeometry
public boolean autoDetectGeometry()Returns the value of theautoDetectGeometryrecord component.- Returns:
- the value of the
autoDetectGeometryrecord component
-
tables
Returns the value of thetablesrecord component.- Returns:
- the value of the
tablesrecord component
-