Class IdentityColumnSpec

Object
org.apache.spark.sql.connector.catalog.IdentityColumnSpec

@Evolving public class IdentityColumnSpec extends Object
Identity column specification.
  • Constructor Details

    • IdentityColumnSpec

      public IdentityColumnSpec(long start, long step, boolean allowExplicitInsert)
      Creates an identity column specification.
      Parameters:
      start - the start value to generate the identity values
      step - the step value to generate the identity values
      allowExplicitInsert - whether the identity column allows explicit insertion of values
  • Method Details

    • getStart

      public long getStart()
      Returns:
      the start value to generate the identity values
    • getStep

      public long getStep()
      Returns:
      the step value to generate the identity values
    • isAllowExplicitInsert

      public boolean isAllowExplicitInsert()
      Returns:
      whether the identity column allows explicit insertion of values
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object