Class TableChange.SetProperty

java.lang.Object
org.apache.gravitino.rel.TableChange.SetProperty
All Implemented Interfaces:
TableChange
Enclosing interface:
TableChange

public static final class TableChange.SetProperty extends Object implements TableChange
A TableChange to set a table property.

If the property already exists, it must be replaced with the new value.

  • Constructor Details

    • SetProperty

      public SetProperty(String property, String value)
      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

      public String getProperty()
      Retrieves the name of the property.
      Returns:
      The name of the property.
    • getValue

      public String getValue()
      Retrieves the value of the property.
      Returns:
      The value of the property.
    • equals

      public boolean equals(Object o)
      Compares this SetProperty instance with another object for equality. The comparison is based on both the property name and its value.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object represents the same property setting; false otherwise.
    • 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.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this property setting.
    • toString

      public String 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.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the SetProperty instance.