Package ch.so.agi.gretl.internal.duckdb
Record Class PostgresExportSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.PostgresExportSpec
- All Implemented Interfaces:
DuckDbExportSpec
public record PostgresExportSpec(String name, String target, String query, String table, PostgresWriteMode mode, PostgresWritePath writePath, boolean create, List<GeometryOverrideSpec> geometries)
extends Record
implements DuckDbExportSpec
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresExportSpec(String name, String target, String query, String table, PostgresWriteMode mode, PostgresWritePath writePath, boolean create, List<GeometryOverrideSpec> geometries) Creates an instance of aPostgresExportSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()Returns the value of thecreaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeometriesrecord component.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.name()Returns the value of thenamerecord component.query()Returns the value of thequeryrecord component.table()Returns the value of thetablerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewritePathrecord component.
-
Constructor Details
-
PostgresExportSpec
public PostgresExportSpec(String name, String target, String query, String table, PostgresWriteMode mode, PostgresWritePath writePath, boolean create, List<GeometryOverrideSpec> geometries) Creates an instance of aPostgresExportSpecrecord class.- Parameters:
name- the value for thenamerecord componenttarget- the value for thetargetrecord componentquery- the value for thequeryrecord componenttable- the value for thetablerecord componentmode- the value for themoderecord componentwritePath- the value for thewritePathrecord componentcreate- the value for thecreaterecord componentgeometries- the value for thegeometriesrecord component
-
-
Method Details
-
requiredExtensions
- Specified by:
requiredExtensionsin interfaceDuckDbExportSpec
-
inputSignature
- Specified by:
inputSignaturein interfaceDuckDbExportSpec
-
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 '=='. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceDuckDbExportSpec- Returns:
- the value of the
namerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
query
Returns the value of thequeryrecord component.- Specified by:
queryin interfaceDuckDbExportSpec- Returns:
- the value of the
queryrecord 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
-
writePath
Returns the value of thewritePathrecord component.- Returns:
- the value of the
writePathrecord component
-
create
public boolean create()Returns the value of thecreaterecord component.- Returns:
- the value of the
createrecord component
-
geometries
Returns the value of thegeometriesrecord component.- Returns:
- the value of the
geometriesrecord component
-