Class RewriteTablePathUtil.RewriteResult<T>

java.lang.Object
org.apache.iceberg.RewriteTablePathUtil.RewriteResult<T>
Type Parameters:
T - type of file to rewrite
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RewriteTablePathSparkAction.RewriteContentFileResult
Enclosing class:
RewriteTablePathUtil

public static class RewriteTablePathUtil.RewriteResult<T> extends Object implements Serializable
Rewrite result.
See Also:
  • Constructor Details

    • RewriteResult

      public RewriteResult()
  • Method Details

    • append

    • toRewrite

      public Set<T> toRewrite()
      Returns next list of files to rewrite (discovered by rewriting this file)
    • copyPlan

      public Set<Pair<String,String>> copyPlan()
      Returns a copy plan of files whose metadata were rewritten, for each file a source and target location
    • addRewrittenManifestLength

      public void addRewrittenManifestLength(String sourceManifestPath, long length)
      Records the byte length of the manifest rewritten from the given source manifest path
    • rewrittenManifestLengths

      public Map<String,Long> rewrittenManifestLengths()
      Returns the byte length of each rewritten manifest, keyed by source manifest path