Package org.apache.iceberg.actions
Class RewriteGroupBase<I,T extends ContentScanTask<F>,F extends ContentFile<F>>  
java.lang.Object
org.apache.iceberg.actions.RewriteGroupBase<I,T,F>  
- Type Parameters:
- I- the Java type of the plan info member like- RewriteDataFiles.FileGroupInfoor- RewritePositionDeleteFiles.FileGroupInfo
- T- the Java type of the input scan tasks (input)
- F- the Java type of the content files (input and output)
- Direct Known Subclasses:
- RewriteFileGroup,- RewritePositionDeletesGroup
public abstract class RewriteGroupBase<I,T extends ContentScanTask<F>,F extends ContentFile<F>>  
extends Object
Container class representing a set of files to be rewritten by a 
FileRewriteRunner.- 
Method SummaryModifier and TypeMethodDescriptionintThe total number of files that should be produced by the rewrite of this entire file group.Scan tasks for input files.info()Identifiers and partition information about the group.intNumber of the input files.longAccumulated size for the input files.longThe amount of bytes of data theFileRewriteRunnershould read from a single group in a single read task.longThe target file size which should be used by theFileRewriteRunner.
- 
Method Details- 
infoIdentifiers and partition information about the group.
- 
fileScanTasksScan tasks for input files.
- 
inputFilesSizeInBytespublic long inputFilesSizeInBytes()Accumulated size for the input files.
- 
inputFileNumpublic int inputFileNum()Number of the input files.
- 
maxOutputFileSizepublic long maxOutputFileSize()The target file size which should be used by theFileRewriteRunner. TheFileRewritePlannercould chose different values than defined by the table properties.- Returns:
- the target size should be used by the runner
 
- 
inputSplitSizepublic long inputSplitSize()The amount of bytes of data theFileRewriteRunnershould read from a single group in a single read task. TheFileRewritePlannerchooses a value to allow parallelization for the runners, but prevent fragmentation of the output caused by too many readers.
- 
expectedOutputFilespublic int expectedOutputFiles()The total number of files that should be produced by the rewrite of this entire file group.
 
-