Package org.apache.iceberg.actions
Class FileRewritePlan<I,T extends ContentScanTask<F>,F extends ContentFile<F>,G extends RewriteGroupBase<I,T,F>>
java.lang.Object
org.apache.iceberg.actions.FileRewritePlan<I,T,F,G>
- Type Parameters:
I- the Java type of the plan info likeRewriteDataFiles.FileGroupInfoorRewritePositionDeleteFiles.FileGroupInfoT- the Java type of the input scan tasks (input)F- the Java type of the content files (input and output)G- the Java type of the rewrite file group likeRewriteFileGrouporRewritePositionDeletesGroup
public class FileRewritePlan<I,T extends ContentScanTask<F>,F extends ContentFile<F>,G extends RewriteGroupBase<I,T,F>>
extends Object
Container class holding the output of a
FileRewritePlanner.plan() call. Contains a list
of groups (See: RewriteFileGroup and RewritePositionDeletesGroup) which are used
by engines to rewrite a particular set of files.-
Method Summary
Modifier and TypeMethodDescriptiongroups()The stream of the generatedRewriteGroupBases.intgroupsInPartition(StructLike partition) The number of the generated groups in the given partition.intThe total number of the groups generated by this plan.
-
Method Details
-
groups
The stream of the generatedRewriteGroupBases. -
groupsInPartition
The number of the generated groups in the given partition. -
totalGroupCount
public int totalGroupCount()The total number of the groups generated by this plan.
-