public class OutputFileFactory
extends java.lang.Object
Constructor and Description |
---|
OutputFileFactory(PartitionSpec spec,
FileFormat format,
LocationProvider locations,
FileIO io,
EncryptionManager encryptionManager,
int partitionId,
long taskId)
Constructor where a generated UUID is used as the operationId to ensure uniqueness.
|
OutputFileFactory(PartitionSpec spec,
FileFormat format,
LocationProvider locations,
FileIO io,
EncryptionManager encryptionManager,
int partitionId,
long taskId,
java.lang.String operationId)
Constructor with specific operationId.
|
Modifier and Type | Method and Description |
---|---|
EncryptedOutputFile |
newOutputFile()
Generates EncryptedOutputFile for UnpartitionedWriter.
|
EncryptedOutputFile |
newOutputFile(PartitionKey key)
Generates EncryptedOutputFile for PartitionedWriter.
|
public OutputFileFactory(PartitionSpec spec, FileFormat format, LocationProvider locations, FileIO io, EncryptionManager encryptionManager, int partitionId, long taskId)
spec
- Partition specification used by the location providerformat
- File format used for the extensionlocations
- Location provider used for generating locationsio
- FileIO to store the filesencryptionManager
- Encryption manager used for encrypting the filespartitionId
- First part of the file nametaskId
- Second part of the file namepublic OutputFileFactory(PartitionSpec spec, FileFormat format, LocationProvider locations, FileIO io, EncryptionManager encryptionManager, int partitionId, long taskId, java.lang.String operationId)
spec
- Partition specification used by the location providerformat
- File format used for the extensionlocations
- Location provider used for generating locationsio
- FileIO to store the filesencryptionManager
- Encryption manager used for encrypting the filespartitionId
- First part of the file nametaskId
- Second part of the file nameoperationId
- Third part of the file namepublic EncryptedOutputFile newOutputFile()
public EncryptedOutputFile newOutputFile(PartitionKey key)