Package ch.so.agi.gretl.internal.duckdb
Record Class ParquetExportSpec
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.duckdb.ParquetExportSpec
- All Implemented Interfaces:
DuckDbExportSpec,DuckDbFileExportSpec
public record ParquetExportSpec(String name, String query, Path file, boolean overwrite)
extends Record
implements DuckDbFileExportSpec
-
Constructor Summary
ConstructorsConstructorDescriptionParquetExportSpec(String name, String query, Path file, boolean overwrite) Creates an instance of aParquetExportSpecrecord class. -
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.name()Returns the value of thenamerecord component.booleanReturns the value of theoverwriterecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParquetExportSpec
Creates an instance of aParquetExportSpecrecord class.- Parameters:
name- the value for thenamerecord componentquery- the value for thequeryrecord componentfile- the value for thefilerecord 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
-
overwrite
public boolean overwrite()Returns the value of theoverwriterecord component.- Specified by:
overwritein interfaceDuckDbFileExportSpec- Returns:
- the value of the
overwriterecord component
-