Record Class SqlTableDistribution

java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlTableDistribution
Record Components:
type - The distribution type
keyColumns - The sharding key columns of a sharded table, empty for a duplicated table
parent - The table mapping of the root table of the table family, if a sharded table is a child table
tablespace - The tablespace set of a sharded table, or the tablespace of a duplicated table, if any

@Internal public record SqlTableDistribution(SqlTableDistribution.Type type, List<String> keyColumns, @Nullable SqlTableDistribution.ParentTable parent, @Nullable String tablespace) extends Record
How a table is distributed across the shards of an Oracle Globally Distributed Database.
Since:
5.3
  • Constructor Details

  • 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.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • keyColumns

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

      public @Nullable SqlTableDistribution.ParentTable parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • tablespace

      public @Nullable String tablespace()
      Returns the value of the tablespace record component.
      Returns:
      the value of the tablespace record component