Package org.apache.iceberg.actions
Class RewriteManifestsAction
- java.lang.Object
- 
- org.apache.iceberg.actions.RewriteManifestsAction
 
- 
- All Implemented Interfaces:
- Action<RewriteManifestsAction,RewriteManifestsActionResult>
 
 @Deprecated public class RewriteManifestsAction extends java.lang.Object implements Action<RewriteManifestsAction,RewriteManifestsActionResult> Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteManifestsinstead.An action that rewrites manifests in a distributed manner and co-locates metadata for partitions.By default, this action rewrites all manifests for the current partition spec and writes the result to the metadata folder. The behavior can be modified by passing a custom predicate to rewriteIf(Predicate)and a custom spec id tospecId(int). In addition, there is a way to configure a custom location for new manifests viastagingLocation(java.lang.String).
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RewriteManifestsActionResultexecute()Deprecated.Executes this action.RewriteManifestsActionrewriteIf(java.util.function.Predicate<ManifestFile> newPredicate)Deprecated.Rewrites only manifests that match the given predicate.RewriteManifestsActionspecId(int specId)Deprecated.RewriteManifestsActionstagingLocation(java.lang.String newStagingLocation)Deprecated.Passes a location where the manifests should be written.RewriteManifestsActionuseCaching(boolean newUseCaching)Deprecated.Configures whether the action should cache manifest entries used in multiple jobs.
 
- 
- 
- 
Method Detail- 
specIdpublic RewriteManifestsAction specId(int specId) Deprecated.
 - 
rewriteIfpublic RewriteManifestsAction rewriteIf(java.util.function.Predicate<ManifestFile> newPredicate) Deprecated.Rewrites only manifests that match the given predicate.- Parameters:
- newPredicate- a predicate
- Returns:
- this for method chaining
 
 - 
stagingLocationpublic RewriteManifestsAction stagingLocation(java.lang.String newStagingLocation) Deprecated.Passes a location where the manifests should be written.- Parameters:
- newStagingLocation- a staging location
- Returns:
- this for method chaining
 
 - 
useCachingpublic RewriteManifestsAction useCaching(boolean newUseCaching) Deprecated.Configures whether the action should cache manifest entries used in multiple jobs.- Parameters:
- newUseCaching- a flag whether to use caching
- Returns:
- this for method chaining
 
 - 
executepublic RewriteManifestsActionResult execute() Deprecated.Description copied from interface:ActionExecutes this action.- Specified by:
- executein interface- Action<RewriteManifestsAction,RewriteManifestsActionResult>
- Returns:
- the result of this action
 
 
- 
 
-