Package org.apache.iceberg
Class DataFiles.Builder
- java.lang.Object
-
- org.apache.iceberg.DataFiles.Builder
-
- Enclosing class:
- DataFiles
public static class DataFiles.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(PartitionSpec spec)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(PartitionSpec spec)
-
-
Method Detail
-
clear
public void clear()
-
copy
public DataFiles.Builder copy(DataFile toCopy)
-
withStatus
public DataFiles.Builder withStatus(org.apache.hadoop.fs.FileStatus stat)
-
withInputFile
public DataFiles.Builder withInputFile(InputFile file)
-
withEncryptedOutputFile
public DataFiles.Builder withEncryptedOutputFile(EncryptedOutputFile newEncryptedFile)
-
withPath
public DataFiles.Builder withPath(java.lang.String newFilePath)
-
withFormat
public DataFiles.Builder withFormat(java.lang.String newFormat)
-
withFormat
public DataFiles.Builder withFormat(FileFormat newFormat)
-
withPartition
public DataFiles.Builder withPartition(StructLike newPartition)
-
withRecordCount
public DataFiles.Builder withRecordCount(long newRecordCount)
-
withFileSizeInBytes
public DataFiles.Builder withFileSizeInBytes(long newFileSizeInBytes)
-
withPartitionPath
public DataFiles.Builder withPartitionPath(java.lang.String newPartitionPath)
-
withPartitionValues
public DataFiles.Builder withPartitionValues(java.util.List<java.lang.String> partitionValues)
-
withMetrics
public DataFiles.Builder withMetrics(Metrics metrics)
-
withSplitOffsets
public DataFiles.Builder withSplitOffsets(java.util.List<java.lang.Long> offsets)
-
withEqualityFieldIds
@Deprecated public DataFiles.Builder withEqualityFieldIds(java.util.List<java.lang.Integer> equalityIds)
Deprecated.since 1.5.0, will be removed in 1.6.0; must not be set for data files.
-
withEncryptionKeyMetadata
public DataFiles.Builder withEncryptionKeyMetadata(java.nio.ByteBuffer newKeyMetadata)
-
withEncryptionKeyMetadata
public DataFiles.Builder withEncryptionKeyMetadata(EncryptionKeyMetadata newKeyMetadata)
-
withSortOrder
public DataFiles.Builder withSortOrder(SortOrder newSortOrder)
-
build
public DataFile build()
-
-