Package org.apache.iceberg.util
Class ContentFileUtil
- java.lang.Object
-
- org.apache.iceberg.util.ContentFileUtil
-
public class ContentFileUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <F extends ContentFile<K>,K>
Kcopy(F file, boolean withStats, java.util.Set<java.lang.Integer> requestedColumnIds)
Copies theContentFile
with the specific stat settings.static java.lang.CharSequence
referencedDataFile(DeleteFile deleteFile)
-
-
-
Method Detail
-
copy
public static <F extends ContentFile<K>,K> K copy(F file, boolean withStats, java.util.Set<java.lang.Integer> requestedColumnIds)
Copies theContentFile
with the specific stat settings.- Parameters:
file
- a generic data file to copy.withStats
- whether to keep any statsrequestedColumnIds
- column ids for which to keep stats. Ifnull
then every column stat is kept.- Returns:
- The copied file
-
referencedDataFile
public static java.lang.CharSequence referencedDataFile(DeleteFile deleteFile)
-
-