Record Class SqlTableDistribution
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlTableDistribution
- Record Components:
type- The distribution typekeyColumns- The sharding key columns of a sharded table, empty for a duplicated tableparent- The table mapping of the root table of the table family, if a sharded table is a child tabletablespace- 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe root table of a table family.static enumThe distribution type. -
Constructor Summary
ConstructorsConstructorDescriptionSqlTableDistribution(SqlTableDistribution.Type type, List<String> keyColumns, @Nullable SqlTableDistribution.ParentTable parent, @Nullable String tablespace) Creates an instance of aSqlTableDistributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyColumnsrecord component.@Nullable SqlTableDistribution.ParentTableparent()Returns the value of theparentrecord component.@Nullable StringReturns the value of thetablespacerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SqlTableDistribution
public SqlTableDistribution(SqlTableDistribution.Type type, List<String> keyColumns, @Nullable SqlTableDistribution.ParentTable parent, @Nullable String tablespace) Creates an instance of aSqlTableDistributionrecord class.- Parameters:
type- the value for thetyperecord componentkeyColumns- the value for thekeyColumnsrecord componentparent- the value for theparentrecord componenttablespace- the value for thetablespacerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
-
keyColumns
Returns the value of thekeyColumnsrecord component.- Returns:
- the value of the
keyColumnsrecord component
-
parent
-
tablespace
Returns the value of thetablespacerecord component.- Returns:
- the value of the
tablespacerecord component
-