Record Class IndexDef

java.lang.Object
java.lang.Record
org.huiche.ddl.definition.IndexDef
Record Components:
pks - 主键列名
pkIndex - 主键索引名
uniqueMap - 唯一索引列和索引名称映射

public record IndexDef(List<String> pks, String pkIndex, Map<String,String> uniqueMap) extends Record
索引定义
Author:
Maning
  • Constructor Details

    • IndexDef

      public IndexDef(List<String> pks, String pkIndex, Map<String,String> uniqueMap)
      Creates an instance of a IndexDef record class.
      Parameters:
      pks - the value for the pks record component
      pkIndex - the value for the pkIndex record component
      uniqueMap - the value for the uniqueMap record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • pks

      public List<String> pks()
      Returns the value of the pks record component.
      Returns:
      the value of the pks record component
    • pkIndex

      public String pkIndex()
      Returns the value of the pkIndex record component.
      Returns:
      the value of the pkIndex record component
    • uniqueMap

      public Map<String,String> uniqueMap()
      Returns the value of the uniqueMap record component.
      Returns:
      the value of the uniqueMap record component