Package org.apache.gravitino.rel
Class TableChange.SetProperty
java.lang.Object
org.apache.gravitino.rel.TableChange.SetProperty
- All Implemented Interfaces:
TableChange
- Enclosing interface:
- TableChange
A TableChange to set a table property.
If the property already exists, it must be replaced with the new value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.rel.TableChange
TableChange.AddColumn, TableChange.AddIndex, TableChange.After, TableChange.ColumnChange, TableChange.ColumnPosition, TableChange.Default, TableChange.DeleteColumn, TableChange.DeleteIndex, TableChange.First, TableChange.RemoveProperty, TableChange.RenameColumn, TableChange.RenameTable, TableChange.SetProperty, TableChange.UpdateColumnAutoIncrement, TableChange.UpdateColumnComment, TableChange.UpdateColumnDefaultValue, TableChange.UpdateColumnNullability, TableChange.UpdateColumnPosition, TableChange.UpdateColumnType, TableChange.UpdateComment
-
Constructor Summary
ConstructorsConstructorDescriptionSetProperty
(String property, String value) Creates a new SetProperty instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this SetProperty instance with another object for equality.Retrieves the name of the property.getValue()
Retrieves the value of the property.int
hashCode()
Generates a hash code for this SetProperty instance.toString()
Returns a string representation of the SetProperty instance.
-
Constructor Details
-
SetProperty
Creates a new SetProperty instance.- Parameters:
property
- The name of the property to be set.value
- The new value of the property.
-
-
Method Details
-
getProperty
Retrieves the name of the property.- Returns:
- The name of the property.
-
getValue
Retrieves the value of the property.- Returns:
- The value of the property.
-
equals
Compares this SetProperty instance with another object for equality. The comparison is based on both the property name and its value. -
hashCode
public int hashCode()Generates a hash code for this SetProperty instance. The hash code is based on both the property name and its value. -
toString
Returns a string representation of the SetProperty instance. This string format includes the class name followed by the property name and value to be set.
-