Package org.apache.iceberg.view
Interface UpdateProperties
-
public interface UpdateProperties extends org.apache.iceberg.PendingUpdate<Map<String,String>>
API for updating table properties.Apply returns the updated table properties as a map for validation.
When committing, these changes will be applied to the current table metadata. Commit conflicts will be resolved by applying the pending changes to the new table metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdatePropertiesremove(String key)Remove the given property key from the table.UpdatePropertiesset(String key, String value)Add a key/value property to the table.
-
-
-
Method Detail
-
set
UpdateProperties set(String key, String value)
Add a key/value property to the table.- Parameters:
key- a String keyvalue- a String value- Returns:
- this for method chaining
- Throws:
NullPointerException- If either the key or value is null
-
remove
UpdateProperties remove(String key)
Remove the given property key from the table.- Parameters:
key- a String key- Returns:
- this for method chaining
- Throws:
NullPointerException- If the key is null
-
-