Package org.apache.iceberg.util
Class PropertyUtil
java.lang.Object
org.apache.iceberg.util.PropertyUtil
- 
Method SummaryModifier and TypeMethodDescriptionapplySchemaChanges(Map<String, String> properties, List<String> deletedColumns, Map<String, String> renamedColumns, Set<String> columnProperties) Filter the properties map by the provided key predicate.propertiesWithPrefix(Map<String, String> properties, String prefix) Returns subset of provided map with keys matching the provided prefix.static booleanpropertyAsBoolean(Map<String, String> properties, String property, boolean defaultValue) static doublepropertyAsDouble(Map<String, String> properties, String property, double defaultValue) static intpropertyAsInt(Map<String, String> properties, String property, int defaultValue) static longpropertyAsLong(Map<String, String> properties, String property, long defaultValue) static BooleanpropertyAsNullableBoolean(Map<String, String> properties, String property) static IntegerpropertyAsNullableInt(Map<String, String> properties, String property) static LongpropertyAsNullableLong(Map<String, String> properties, String property) static Stringstatic intpropertyTryAsInt(Map<String, String> properties, String property, int defaultValue) static voidvalidateCommitProperties(Map<String, String> properties) Validate the table commit related properties to have non-negative integer on table creation to prevent commit failure
- 
Method Details- 
propertyAsBoolean
- 
propertyAsNullableBoolean
- 
propertyAsDouble
- 
propertyTryAsInt
- 
propertyAsInt
- 
propertyAsNullableInt
- 
propertyAsLong
- 
propertyAsNullableLong
- 
propertyAsString
- 
validateCommitPropertiesValidate the table commit related properties to have non-negative integer on table creation to prevent commit failure
- 
propertiesWithPrefixReturns subset of provided map with keys matching the provided prefix. Matching is case-sensitive and the matching prefix is removed from the keys in returned map.- Parameters:
- properties- input map
- prefix- prefix to choose keys from input map
- Returns:
- subset of input map with keys starting with provided prefix and prefix trimmed out
 
- 
filterPropertiespublic static Map<String,String> filterProperties(Map<String, String> properties, Predicate<String> keyPredicate) Filter the properties map by the provided key predicate.- Parameters:
- properties- input map
- keyPredicate- predicate to choose keys from input map
- Returns:
- subset of input map with keys satisfying the predicate
 
- 
applySchemaChanges
 
-