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; useRewriteManifests
instead.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 Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RewriteManifestsActionResult
execute()
Deprecated.Executes this action.RewriteManifestsAction
rewriteIf(java.util.function.Predicate<ManifestFile> newPredicate)
Deprecated.Rewrites only manifests that match the given predicate.RewriteManifestsAction
specId(int specId)
Deprecated.RewriteManifestsAction
stagingLocation(java.lang.String newStagingLocation)
Deprecated.Passes a location where the manifests should be written.RewriteManifestsAction
useCaching(boolean newUseCaching)
Deprecated.Configures whether the action should cache manifest entries used in multiple jobs.
-
-
-
Method Detail
-
specId
public RewriteManifestsAction specId(int specId)
Deprecated.
-
rewriteIf
public 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
-
stagingLocation
public 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
-
useCaching
public 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
-
execute
public RewriteManifestsActionResult execute()
Deprecated.Description copied from interface:Action
Executes this action.- Specified by:
execute
in interfaceAction<RewriteManifestsAction,RewriteManifestsActionResult>
- Returns:
- the result of this action
-
-