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)
-
withMetrics
public DataFiles.Builder withMetrics(Metrics metrics)
-
withSplitOffsets
public DataFiles.Builder withSplitOffsets(java.util.List<java.lang.Long> offsets)
-
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()
-
-