Package org.apache.iceberg.util
Class ContentFileUtil
java.lang.Object
org.apache.iceberg.util.ContentFileUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <F extends ContentFile<K>,
K>
KCopies theContentFile
with the specific stat settings.static CharSequence
referencedDataFile
(DeleteFile deleteFile)
-
Method Details
-
copy
public static <F extends ContentFile<K>,K> K copy(F file, boolean withStats, Set<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
-