Record Class SqlIndexMapping
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlIndexMapping
- Record Components:
name- The index nameunique- Whether the index is uniquecolumns- The column names in the indexsqlIndexDefinitionProvider- Optional vendor-specific index DDL providervectorIndexMetadata- Vector index metadata, if anyspatial- Whether the index is spatialsrid- The spatial reference identifier
@Internal
public record SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider, @Nullable VectorIndexMetadata vectorIndexMetadata, boolean spatial, @Nullable Integer srid)
extends Record
The SQL table index mapping.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlIndexMapping(String name, boolean unique, String[] columns) SqlIndexMapping(String name, boolean unique, String[] columns, boolean spatial) SqlIndexMapping(String name, boolean unique, String[] columns, boolean spatial, @Nullable Integer srid) SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider) SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider, @Nullable VectorIndexMetadata vectorIndexMetadata, boolean spatial) SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider, @Nullable VectorIndexMetadata vectorIndexMetadata, boolean spatial, @Nullable Integer srid) Creates an instance of aSqlIndexMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionString[]columns()Returns the value of thecolumnsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanspatial()Returns the value of thespatialrecord component.@Nullable SqlIndexDefinitionProviderReturns the value of thesqlIndexDefinitionProviderrecord component.@Nullable Integersrid()Returns the value of thesridrecord component.toString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.@Nullable VectorIndexMetadataReturns the value of thevectorIndexMetadatarecord component.
-
Constructor Details
-
SqlIndexMapping
-
SqlIndexMapping
-
SqlIndexMapping
-
SqlIndexMapping
public SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider, @Nullable VectorIndexMetadata vectorIndexMetadata, boolean spatial) -
SqlIndexMapping
public SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider) -
SqlIndexMapping
public SqlIndexMapping(String name, boolean unique, String[] columns, @Nullable SqlIndexDefinitionProvider sqlIndexDefinitionProvider, @Nullable VectorIndexMetadata vectorIndexMetadata, boolean spatial, @Nullable Integer srid) Creates an instance of aSqlIndexMappingrecord class.- Parameters:
name- the value for thenamerecord componentunique- the value for theuniquerecord componentcolumns- the value for thecolumnsrecord componentsqlIndexDefinitionProvider- the value for thesqlIndexDefinitionProviderrecord componentvectorIndexMetadata- the value for thevectorIndexMetadatarecord componentspatial- the value for thespatialrecord componentsrid- the value for thesridrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
name
-
unique
-
columns
-
sqlIndexDefinitionProvider
Returns the value of thesqlIndexDefinitionProviderrecord component.- Returns:
- the value of the
sqlIndexDefinitionProviderrecord component
-
vectorIndexMetadata
Returns the value of thevectorIndexMetadatarecord component.- Returns:
- the value of the
vectorIndexMetadatarecord component
-
spatial
-
srid
-