Package io.trino.spi.catalog
Record Class CatalogProperties
java.lang.Object
java.lang.Record
io.trino.spi.catalog.CatalogProperties
public record CatalogProperties(CatalogHandle catalogHandle, ConnectorName connectorName, Map<String,String> properties)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogProperties(CatalogHandle catalogHandle, ConnectorName connectorName, Map<String, String> properties) Creates an instance of aCatalogPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatalogHandlerecord component.Returns the value of theconnectorNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CatalogProperties
public CatalogProperties(CatalogHandle catalogHandle, ConnectorName connectorName, Map<String, String> properties) Creates an instance of aCatalogPropertiesrecord class.- Parameters:
catalogHandle- the value for thecatalogHandlerecord componentconnectorName- the value for theconnectorNamerecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
catalogHandle
Returns the value of thecatalogHandlerecord component.- Returns:
- the value of the
catalogHandlerecord component
-
connectorName
Returns the value of theconnectorNamerecord component.- Returns:
- the value of the
connectorNamerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-