Record Class UpdateKeyForCatalogAndEntityType
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.metastore.mutation.UpdateKeyForCatalogAndEntityType
public record UpdateKeyForCatalogAndEntityType(@NonNull org.apache.polaris.core.entity.PolarisEntityType entityType, long catalogId, boolean catalogContent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateKeyForCatalogAndEntityType(@NonNull org.apache.polaris.core.entity.PolarisEntityType entityType, long catalogId, boolean catalogContent) Creates an instance of aUpdateKeyForCatalogAndEntityTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecatalogContentrecord component.longReturns the value of thecatalogIdrecord component.@NonNull org.apache.polaris.core.entity.PolarisEntityTypeReturns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.updateKeyForCatalogAndEntityType(org.apache.polaris.core.entity.PolarisEntityCore entity)
-
Constructor Details
-
UpdateKeyForCatalogAndEntityType
public UpdateKeyForCatalogAndEntityType(@NonNull org.apache.polaris.core.entity.PolarisEntityType entityType, long catalogId, boolean catalogContent) Creates an instance of aUpdateKeyForCatalogAndEntityTyperecord class.- Parameters:
entityType- the value for theentityTyperecord componentcatalogId- the value for thecatalogIdrecord componentcatalogContent- the value for thecatalogContentrecord component
-
-
Method Details
-
updateKeyForCatalogAndEntityType
public static UpdateKeyForCatalogAndEntityType updateKeyForCatalogAndEntityType(org.apache.polaris.core.entity.PolarisEntityCore entity) -
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. -
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. -
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 '=='. -
entityType
public @NonNull org.apache.polaris.core.entity.PolarisEntityType entityType()Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
catalogId
public long catalogId()Returns the value of thecatalogIdrecord component.- Returns:
- the value of the
catalogIdrecord component
-
catalogContent
public boolean catalogContent()Returns the value of thecatalogContentrecord component.- Returns:
- the value of the
catalogContentrecord component
-