Package org.apache.iceberg.actions
Interface RewriteManifests
-
- All Superinterfaces:
Action<RewriteManifests,RewriteManifests.Result>
,SnapshotUpdate<RewriteManifests,RewriteManifests.Result>
- All Known Implementing Classes:
RewriteManifestsSparkAction
public interface RewriteManifests extends SnapshotUpdate<RewriteManifests,RewriteManifests.Result>
An action that rewrites manifests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RewriteManifests.Result
The action result that contains a summary of the execution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RewriteManifests
rewriteIf(java.util.function.Predicate<ManifestFile> predicate)
Rewrites only manifests that match the given predicate.RewriteManifests
specId(int specId)
Rewrites manifests for a given spec id.RewriteManifests
stagingLocation(java.lang.String stagingLocation)
Passes a location where the staged manifests should be written.-
Methods inherited from interface org.apache.iceberg.actions.SnapshotUpdate
snapshotProperty
-
-
-
-
Method Detail
-
specId
RewriteManifests specId(int specId)
Rewrites manifests for a given spec id.If not set, defaults to the table's default spec ID.
- Parameters:
specId
- a spec id- Returns:
- this for method chaining
-
rewriteIf
RewriteManifests rewriteIf(java.util.function.Predicate<ManifestFile> predicate)
Rewrites only manifests that match the given predicate.If not set, all manifests will be rewritten.
- Parameters:
predicate
- a predicate- Returns:
- this for method chaining
-
stagingLocation
RewriteManifests stagingLocation(java.lang.String stagingLocation)
Passes a location where the staged manifests should be written.If not set, defaults to the table's metadata location.
- Parameters:
stagingLocation
- a staging location- Returns:
- this for method chaining
-
-