Package ch.so.agi.gretl.internal.duckdb
Record Class GpkgExportSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.GpkgExportSpec
- All Implemented Interfaces:
DuckDbExportSpec,DuckDbFileExportSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.layer()Returns the value of thelayerrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of theoverwriterecord component.query()Returns the value of thequeryrecord component.srs()Returns the value of thesrsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GpkgExportSpec
public GpkgExportSpec(String name, String query, Path file, String layer, String srs, boolean overwrite) Creates an instance of aGpkgExportSpecrecord class.- Parameters:
name- the value for thenamerecord componentquery- the value for thequeryrecord componentfile- the value for thefilerecord componentlayer- the value for thelayerrecord componentsrs- the value for thesrsrecord componentoverwrite- the value for theoverwriterecord 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
-
query
Returns the value of thequeryrecord component.- Specified by:
queryin interfaceDuckDbExportSpec- Returns:
- the value of the
queryrecord component
-
file
Returns the value of thefilerecord component.- Specified by:
filein interfaceDuckDbFileExportSpec- Returns:
- the value of the
filerecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
srs
Returns the value of thesrsrecord component.- Returns:
- the value of the
srsrecord component
-
overwrite
public boolean overwrite()Returns the value of theoverwriterecord component.- Specified by:
overwritein interfaceDuckDbFileExportSpec- Returns:
- the value of the
overwriterecord component
-