Package org.apache.gravitino.dto.policy
Class PolicyContentDTO.IcebergCompactionContentDTO
java.lang.Object
org.apache.gravitino.dto.policy.PolicyContentDTO.IcebergCompactionContentDTO
- All Implemented Interfaces:
PolicyContentDTO,PolicyContent
- Enclosing interface:
- PolicyContentDTO
public static class PolicyContentDTO.IcebergCompactionContentDTO
extends Object
implements PolicyContentDTO
Represents a typed iceberg compaction policy content DTO.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.policy.PolicyContentDTO
PolicyContentDTO.CustomContentDTO, PolicyContentDTO.IcebergCompactionContentDTO -
Method Summary
Modifier and TypeMethodDescriptionReturns the weight for custom-data-file-mse metric in score expression.Returns the weight for custom-delete-file-number metric in score expression.Returns max partition number selected for compaction.Returns the minimum threshold for custom-data-file-mse metric.Returns the minimum threshold for custom-delete-file-number metric.Returns rewrite options expanded to job.options.* during rule generation.rules()A convenience method to get all rules in the policy content.voidvalidate()Validates the policy content.
-
Method Details
-
minDataFileMse
Returns the minimum threshold for custom-data-file-mse metric.- Returns:
- minimum data file MSE threshold
-
minDeleteFileNumber
Returns the minimum threshold for custom-delete-file-number metric.- Returns:
- minimum delete file number threshold
-
dataFileMseWeight
Returns the weight for custom-data-file-mse metric in score expression.- Returns:
- data file MSE score weight
-
deleteFileNumberWeight
Returns the weight for custom-delete-file-number metric in score expression.- Returns:
- delete file number score weight
-
maxPartitionNum
Returns max partition number selected for compaction.- Returns:
- max partition number
-
rewriteOptions
Returns rewrite options expanded to job.options.* during rule generation.- Returns:
- rewrite options map
-
supportedObjectTypes
- Specified by:
supportedObjectTypesin interfacePolicyContent- Returns:
- the set of metadata object types that the policy can be applied to
-
properties
- Specified by:
propertiesin interfacePolicyContent- Returns:
- The additional properties of the policy.
-
rules
Description copied from interface:PolicyContentA convenience method to get all rules in the policy content.- Specified by:
rulesin interfacePolicyContent- Returns:
- A map of rule names to their corresponding rule objects.
-
validate
Description copied from interface:PolicyContentValidates the policy content.- Specified by:
validatein interfacePolicyContent- Throws:
IllegalArgumentException- if the content is invalid.
-