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 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 a PostgresExportSpec record class.
      Parameters:
      name - the value for the name record component
      target - the value for the target record component
      query - the value for the query record component
      table - the value for the table record component
      mode - the value for the mode record component
      writePath - the value for the writePath record component
      create - the value for the create record component
      geometries - the value for the geometries record component
  • Method Details

    • requiredExtensions

      public List<String> requiredExtensions()
      Specified by:
      requiredExtensions in interface DuckDbExportSpec
    • inputSignature

      public String inputSignature()
      Specified by:
      inputSignature in interface DuckDbExportSpec
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface DuckDbExportSpec
      Returns:
      the value of the name record component
    • target

      public String target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • query

      public String query()
      Returns the value of the query record component.
      Specified by:
      query in interface DuckDbExportSpec
      Returns:
      the value of the query record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • mode

      public PostgresWriteMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • writePath

      public PostgresWritePath writePath()
      Returns the value of the writePath record component.
      Returns:
      the value of the writePath record component
    • create

      public boolean create()
      Returns the value of the create record component.
      Returns:
      the value of the create record component
    • geometries

      public List<GeometryOverrideSpec> geometries()
      Returns the value of the geometries record component.
      Returns:
      the value of the geometries record component