Package io.trino.plugin.hive.metastore
Record Class ProtectMode
java.lang.Object
java.lang.Record
io.trino.plugin.hive.metastore.ProtectMode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProtectMode(boolean offline, boolean readOnly) Creates an instance of aProtectModerecord 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.booleanoffline()Returns the value of theofflinerecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.final StringtoString()Returns a string representation of this record class.static ProtectMode
-
Field Details
-
PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
ProtectMode
public ProtectMode(boolean offline, boolean readOnly) Creates an instance of aProtectModerecord class.- Parameters:
offline- the value for theofflinerecord componentreadOnly- the value for thereadOnlyrecord component
-
-
Method Details
-
valueOf
-
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 with '=='. -
offline
public boolean offline()Returns the value of theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-